数据字典
This commit is contained in:
+2
-1
@@ -81,9 +81,9 @@ public class DictAspect {
|
||||
* @param result
|
||||
*/
|
||||
private void parseDictText(Object result) {
|
||||
String cut = ((Result) result).getCut();
|
||||
if (result instanceof Result) {
|
||||
if (((Result) result).getResult() instanceof IPage) {
|
||||
String cut = ((Result) result).getCut();
|
||||
List<JSONObject> items = new ArrayList<>();
|
||||
for (Object record : ((IPage) ((Result) result).getResult()).getRecords()) {
|
||||
JSONObject item = getJsonObject(record,cut);
|
||||
@@ -91,6 +91,7 @@ public class DictAspect {
|
||||
}
|
||||
((IPage) ((Result) result).getResult()).setRecords(items);
|
||||
}else if(((Result) result).getResult() instanceof List){
|
||||
String cut = ((Result) result).getCut();
|
||||
//返回结果中只处理实体对象的不处理map
|
||||
String name = ((ArrayList) ((Result) result).getResult()).get(0).getClass().getName();
|
||||
if(!"java.util.LinkedHashMap".equals(name) && !"java.util.HashMap".equals(name)){
|
||||
|
||||
Reference in New Issue
Block a user