数据字典 查询接口 给标准类别强行换顺序 会导致bug产生
This commit is contained in:
@@ -36,7 +36,7 @@ public interface AskQuestionsDao extends BaseMapper<AskQuestions> {
|
|||||||
|
|
||||||
List<AskQuestions> getArchiveAskQuestions (String id);
|
List<AskQuestions> getArchiveAskQuestions (String id);
|
||||||
|
|
||||||
List<Reply> getAskQuestionsByakId (String id,String state);
|
List<Reply> getAskQuestionsByakId (@Param("id") String id,@Param("state") String state);
|
||||||
|
|
||||||
List<String> getUId();
|
List<String> getUId();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -187,6 +187,18 @@ public class DicTypeEOServiceImpl extends ServiceImpl<DicTypeEODao,DicTypeEO> im
|
|||||||
resultMap.put("BUSSFINECLASSSHOW",relist);
|
resultMap.put("BUSSFINECLASSSHOW",relist);
|
||||||
List<Map<String,String >> arr = new ArrayList<>();
|
List<Map<String,String >> arr = new ArrayList<>();
|
||||||
resultMap.put("STANDCLASSIFYSHOW",arr);
|
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;
|
return resultMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user