This commit is contained in:
wans 2022-01-26 16:59:06 +08:00
parent 7943581dee
commit 17e2e6692a

View File

@ -593,14 +593,15 @@ public class BasePopulationInfoServiceImpl extends DefaultBaseService implements
List<BasePopulationInfoDTO> fullList = basePopulationInfoDao.listBasePopulationInfo(null);
int forIndex = 0;
for(BasePopulationInfoDTO item : fullList){
try {
jObj.put("uid", item.getBasePopulationInfoId());
PopulationInfo info = new PopulationInfo();
info.setfull_name(item.getFullName());
info.setname_used_before(item.getNameUsedBefore());
String gender = IdCardVerifyUtil.getIdCardGender(item.getIdCardNumber());
info.setgender("1".equals(gender) ? "" : "");
//info.setage(IdCardVerifyUtil.getAgeFromIdCardNumber(item.getIdCardNumber()));
info.setage(15);
info.setage(IdCardVerifyUtil.getAgeFromIdCardNumber(item.getIdCardNumber()));
//info.setage(15);
if(item.getNation() != null && !"".equals(item.getNation())){
DataDTO dataDTO = mongoDataService.get(item.getNation());
info.setnation(dataDTO == null ? "" : dataDTO.getDataName());
@ -652,6 +653,9 @@ public class BasePopulationInfoServiceImpl extends DefaultBaseService implements
System.out.println("================= PULL_COUNT_" + forIndex + " =================");
}
forIndex++;
} catch (Exception e){
System.out.println(item);
}
}
}