|
@@ -46,7 +46,7 @@ public class AppPersonBasicInfoController {
|
|
Map<String, Object> comprehensiveReligiousBeliefMap = DictUtils.getDictCacheToMap(DictKeys.COMPREHENSIVE_RELIGIOUS_BELIEF);//宗教信仰字典值
|
|
Map<String, Object> comprehensiveReligiousBeliefMap = DictUtils.getDictCacheToMap(DictKeys.COMPREHENSIVE_RELIGIOUS_BELIEF);//宗教信仰字典值
|
|
Map<String, Object> comprehensivePoliticalStatusMap = DictUtils.getDictCacheToMap(DictKeys.COMPREHENSIVE_POLITICAL_STATUS);//政治面貌字典值
|
|
Map<String, Object> comprehensivePoliticalStatusMap = DictUtils.getDictCacheToMap(DictKeys.COMPREHENSIVE_POLITICAL_STATUS);//政治面貌字典值
|
|
Map<String, Object> comprehensiveOccupationalCategoryMap = DictUtils.getDictCacheToMap(DictKeys.COMPREHENSIVE_OCCUPATIONAL_CATEGORY);//职业类别字典值
|
|
Map<String, Object> comprehensiveOccupationalCategoryMap = DictUtils.getDictCacheToMap(DictKeys.COMPREHENSIVE_OCCUPATIONAL_CATEGORY);//职业类别字典值
|
|
-// Map<String, Object> comprehensiveCityCodeMap = DictUtils.getDictCacheToMap(DictKeys.COMPREHENSIVE_CITY_CODE);//2260
|
|
|
|
|
|
+ Map<String, Object> comprehensiveCityCodeMap = DictUtils.getComprehensiveDictCacheToMap(DictKeys.COMPREHENSIVE_CITY_CODE);//2260
|
|
for (HashMap<String, Object> row : rows) {
|
|
for (HashMap<String, Object> row : rows) {
|
|
row.put("genderLabel", comprehensiveSexMap.get(row.get("gender")));//性别字典值
|
|
row.put("genderLabel", comprehensiveSexMap.get(row.get("gender")));//性别字典值
|
|
row.put("nationLabel", comprehensiveNationMap.get(row.get("nation")));//民族字典值
|
|
row.put("nationLabel", comprehensiveNationMap.get(row.get("nation")));//民族字典值
|
|
@@ -55,8 +55,8 @@ public class AppPersonBasicInfoController {
|
|
row.put("religiousBeliefLabel", null == row.get("religiousBelief") ? null : comprehensiveReligiousBeliefMap.get(row.get("religiousBelief")));//宗教信仰字典值
|
|
row.put("religiousBeliefLabel", null == row.get("religiousBelief") ? null : comprehensiveReligiousBeliefMap.get(row.get("religiousBelief")));//宗教信仰字典值
|
|
row.put("politicalOutlookLabel", comprehensivePoliticalStatusMap.get(row.get("politicalOutlook")));//政治面貌字典值
|
|
row.put("politicalOutlookLabel", comprehensivePoliticalStatusMap.get(row.get("politicalOutlook")));//政治面貌字典值
|
|
row.put("occupationalCategoryLabel", comprehensiveOccupationalCategoryMap.get(row.get("occupationalCategory")));//职业类别字典值
|
|
row.put("occupationalCategoryLabel", comprehensiveOccupationalCategoryMap.get(row.get("occupationalCategory")));//职业类别字典值
|
|
-// row.put("householdRegistrationLabel", comprehensiveCityCodeMap.get(row.get("householdRegistration")));//户籍地 2260
|
|
|
|
-// row.put("nativePlaceLabel", comprehensiveCityCodeMap.get(row.get("nativePlace")));//籍贯 2260
|
|
|
|
|
|
+ row.put("householdRegistrationLabel", comprehensiveCityCodeMap.get(row.get("householdRegistration")));//户籍地 2260
|
|
|
|
+ row.put("nativePlaceLabel", comprehensiveCityCodeMap.get(row.get("nativePlace")));//籍贯 2260
|
|
}
|
|
}
|
|
return AjaxResult.success(rows);
|
|
return AjaxResult.success(rows);
|
|
}
|
|
}
|
|
@@ -348,7 +348,17 @@ public class AppPersonBasicInfoController {
|
|
|
|
|
|
@GetMapping("/PersonBasicInfo/getAllUserInfo")
|
|
@GetMapping("/PersonBasicInfo/getAllUserInfo")
|
|
public AjaxResult getAllUserInfo(PersonBasicInfo personBasicInfo){
|
|
public AjaxResult getAllUserInfo(PersonBasicInfo personBasicInfo){
|
|
- return personBasicInfoService.getAllUserInfo(personBasicInfo.getName());
|
|
|
|
|
|
+ AjaxResult allUserInfo = personBasicInfoService.getAllUserInfo(personBasicInfo.getName());
|
|
|
|
+ if ("200".equals(allUserInfo.get("code").toString())){
|
|
|
|
+ Map<String, Object> comprehensiveDictCacheToMap = getComprehensiveDictCacheToMap(DictKeys.COMPREHENSIVE_CITY_CODE);// 2260
|
|
|
|
+ List<Map<String, Object>> data = (List<Map<String, Object>>) allUserInfo.get("data");
|
|
|
|
+ for (Map<String, Object> map : data) {
|
|
|
|
+ map.put("householdRegistrationLabel", comprehensiveDictCacheToMap.get(map.get("householdRegistration")));// 户籍地 2260
|
|
|
|
+ map.put("nativePlaceLabel", comprehensiveDictCacheToMap.get(map.get("nativePlace")));// 籍贯 2260
|
|
|
|
+ map.put("currentResidencePlaceLabel", comprehensiveDictCacheToMap.get(map.get("currentResidencePlace")));// 2260
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return allUserInfo;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|