测试修改

This commit is contained in:
wans 2022-01-26 16:49:16 +08:00
parent 527aa9ed9b
commit 7943581dee

View File

@ -599,7 +599,8 @@ public class BasePopulationInfoServiceImpl extends DefaultBaseService implements
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);
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());
@ -647,7 +648,7 @@ public class BasePopulationInfoServiceImpl extends DefaultBaseService implements
info.setgrid_name(item.getGridName() == null ? "" : item.getGridName()); info.setgrid_name(item.getGridName() == null ? "" : item.getGridName());
jObj.put("data", info.saveCheckToJson()); jObj.put("data", info.saveCheckToJson());
kafkaTemplate.send("tableSync", jObj.toJSONString()); kafkaTemplate.send("tableSync", jObj.toJSONString());
if(forIndex % 10000 == 0){ if(forIndex != 0 && forIndex % 5000 == 0){
System.out.println("================= PULL_COUNT_" + forIndex + " ================="); System.out.println("================= PULL_COUNT_" + forIndex + " =================");
} }
forIndex++; forIndex++;