|
@@ -334,9 +334,16 @@ public class AppPersonBasicInfoController {
|
|
|
if ("200".equals(otherEdit.get("code").toString())){
|
|
|
RedisService redisService = SpringUtils.getBean(RedisService.class);
|
|
|
List<Map<String,Object>> cacheObject = redisService.getCacheObject("sys_dict:" + DictKeys.COMPREHENSIVE_CITY_CODE);//2260
|
|
|
- HashMap data = (HashMap) otherEdit.get("data");
|
|
|
- data.put("householdRegistrationLabel", cacheObject.get(0).get(data.get("householdRegistration")));//户籍地 2260
|
|
|
- data.put("nativePlaceLabel", cacheObject.get(0).get(data.get("nativePlace")));//籍贯 2260
|
|
|
+ HashMap<String,HashMap<String,Object>> data = (HashMap<String,HashMap<String,Object>>) otherEdit.get("data");
|
|
|
+ for (Map<String, Object> map : cacheObject) {
|
|
|
+ if (map.containsKey("id") && (map.get("id")).toString().equals(data.get("basicInfo").get("householdRegistration"))) {
|
|
|
+ Object value = map.get("label"); // 获取householdRegistration的id的值
|
|
|
+ // 执行您需要的操作
|
|
|
+ data.get("basicInfo").put("householdRegistrationLabel", value);//户籍地 2260
|
|
|
+ data.get("basicInfo").put("nativePlaceLabel", value);//籍贯 2260
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
return AjaxResult.success(otherEdit);
|
|
|
}
|