HashMap<String, String> policeNameDict = dictService.getTypeDic(DictConst.DeptAPPDict.DICT_DEPT_POLICE_NAME); HashMap<String, String> deptIndustryDict = dictService.getTypeDic(DictConst.DeptAPPDict.DICT_INDUSTRY); HashMap<String, String> deptCategoryDict = dictService.getTypeDic(DictConst.DeptAPPDict.DICT_DEPT_CATEGORY); HashMap<String, String> deptAppStatusDict = dictService.getTypeDic(DictConst.DeptAPPDict.DICT_DEPT_APP_STATUS); Map<String, String> deptStatusDict = dictService.getTypeDic(DictConst.InfoAPPDict.DEPT_STATUS_DICT); Map<String, String> manageDeptDict = dictService.getTypeDic(DictConst.InfoAPPDict.MANAGE_DEPT_DICT); HashMap<String, String> areaDict = dictService.getTypeDic(DictConst.DeptAPPDict.DICT_DEPT_AREA); records.forEach( t -> { t.setPoliceNameDesc(policeNameDict.get(String.valueOf(t.getPoliceName()))); t.setDeptIndustryDesc(deptIndustryDict.get(String.valueOf(t.getDeptIndustry()))); t.setDeptCategoryDesc(deptCategoryDict.get(String.valueOf(t.getDeptCategory()))); t.setStatusDesc(deptAppStatusDict.get(String.valueOf(t.getStatus()))); t.setDeptAreaDesc(areaDict.get(String.valueOf(t.getDeptArea()))); t.setDeptStatusName(deptStatusDict.get(t.getDeptStatus())); t.setManageDeptName(manageDeptDict.get(t.getManageDept())); });
字典翻译1
最新推荐文章于 2024-07-13 13:55:40 发布