问答查询 标准号字段 查询修复

This commit is contained in:
yuezhihang
2022-06-21 14:03:27 +08:00
parent 2a837925ab
commit 4ddea28670
@@ -188,17 +188,6 @@ public class DicTypeEOServiceImpl extends ServiceImpl<DicTypeEODao,DicTypeEO> im
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;
}