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