Skip to content

Commit

Permalink
add Oracle multi user authority table shows
Browse files Browse the repository at this point in the history
  • Loading branch information
baisui1981 committed Jan 14, 2022
1 parent 77aa882 commit f06cb57
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 369 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ public TableAlias() {
public TableAlias(String from) {
this.from = from;
// 如果使用oracle的表,表名中可能出现点,所以要将它去掉
this.to = StringUtils.substringAfterLast(from, ".");
int indexOfCommon = StringUtils.indexOf(from, ".");
this.to = indexOfCommon > -1 ? StringUtils.substring(from, indexOfCommon + 1) : from;
}

public String getFrom() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,24 @@ private void addFieldRequiredError(IFieldErrorHandler msgHandler, Context contex
msgHandler.addFieldError(context, attrKey, ValidatorCommons.MSG_EMPTY_INPUT_ERROR);
}

public ParseDescribable<T> newInstance(
String appName, //
FormData formData //
) {
return newInstance(IPluginContext.namedContext(appName), formData.body, Optional.empty());
}

public static class FormData {
final HashMap<String, JSONObject> body = Maps.newHashMap();

public JSONObject addProp(String key, String val) {
JSONObject o = new JSONObject();
o.put(Descriptor.KEY_primaryVal, val);
body.put(key, o);
return o;
}
}

// @Override
public ParseDescribable<T> newInstance(
IPluginContext pluginContext, //
Expand Down
Loading

0 comments on commit f06cb57

Please sign in to comment.