修改
This commit is contained in:
parent
7943581dee
commit
17e2e6692a
@ -593,14 +593,15 @@ public class BasePopulationInfoServiceImpl extends DefaultBaseService implements
|
|||||||
List<BasePopulationInfoDTO> fullList = basePopulationInfoDao.listBasePopulationInfo(null);
|
List<BasePopulationInfoDTO> fullList = basePopulationInfoDao.listBasePopulationInfo(null);
|
||||||
int forIndex = 0;
|
int forIndex = 0;
|
||||||
for(BasePopulationInfoDTO item : fullList){
|
for(BasePopulationInfoDTO item : fullList){
|
||||||
|
try {
|
||||||
jObj.put("uid", item.getBasePopulationInfoId());
|
jObj.put("uid", item.getBasePopulationInfoId());
|
||||||
PopulationInfo info = new PopulationInfo();
|
PopulationInfo info = new PopulationInfo();
|
||||||
info.setfull_name(item.getFullName());
|
info.setfull_name(item.getFullName());
|
||||||
info.setname_used_before(item.getNameUsedBefore());
|
info.setname_used_before(item.getNameUsedBefore());
|
||||||
String gender = IdCardVerifyUtil.getIdCardGender(item.getIdCardNumber());
|
String gender = IdCardVerifyUtil.getIdCardGender(item.getIdCardNumber());
|
||||||
info.setgender("1".equals(gender) ? "男" : "女");
|
info.setgender("1".equals(gender) ? "男" : "女");
|
||||||
//info.setage(IdCardVerifyUtil.getAgeFromIdCardNumber(item.getIdCardNumber()));
|
info.setage(IdCardVerifyUtil.getAgeFromIdCardNumber(item.getIdCardNumber()));
|
||||||
info.setage(15);
|
//info.setage(15);
|
||||||
if(item.getNation() != null && !"".equals(item.getNation())){
|
if(item.getNation() != null && !"".equals(item.getNation())){
|
||||||
DataDTO dataDTO = mongoDataService.get(item.getNation());
|
DataDTO dataDTO = mongoDataService.get(item.getNation());
|
||||||
info.setnation(dataDTO == null ? "" : dataDTO.getDataName());
|
info.setnation(dataDTO == null ? "" : dataDTO.getDataName());
|
||||||
@ -652,6 +653,9 @@ public class BasePopulationInfoServiceImpl extends DefaultBaseService implements
|
|||||||
System.out.println("================= PULL_COUNT_" + forIndex + " =================");
|
System.out.println("================= PULL_COUNT_" + forIndex + " =================");
|
||||||
}
|
}
|
||||||
forIndex++;
|
forIndex++;
|
||||||
|
} catch (Exception e){
|
||||||
|
System.out.println(item);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user