数据字典

This commit is contained in:
zhn
2022-04-15 16:22:47 +08:00
parent 3b495047e2
commit 8ccc7d7f40
@@ -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)){