数据字典 查询接口 给标准类别强行换顺序 会导致bug产生

This commit is contained in:
yuezhihang
2022-06-21 13:56:48 +08:00
parent 2e239defed
commit 2a837925ab
2 changed files with 13 additions and 1 deletions
@@ -187,6 +187,18 @@ public class DicTypeEOServiceImpl extends ServiceImpl<DicTypeEODao,DicTypeEO> im
resultMap.put("BUSSFINECLASSSHOW",relist);
List<Map<String,String >> arr = new ArrayList<>();
resultMap.put("STANDCLASSIFYSHOW",arr);
List<Map<String,String >> standclassify= (List<Map<String, String>>) resultMap.get("STANDCLASSIFY");
List<String> arrayList=new ArrayList<>();
Map<String,Map<String,String>> data=new HashMap<>();
standclassify.forEach(stringStringMap -> {
arrayList.add(stringStringMap.get("label"));
data.put(stringStringMap.get("label"),stringStringMap);
});
Collections.sort(arrayList);
List<Map<String,String >> res=new ArrayList<>();
arrayList.forEach(s -> res.add(data.get(s)));
resultMap.put("STANDCLASSIFY",res);
return resultMap;
}