From 7943581dee1962a7518af54bba0f2d6b6d90ae26 Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Wed, 26 Jan 2022 16:49:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/BasePopulationInfoServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/cn/com/tenlion/commonpopulation/service/basepopulationinfo/impl/BasePopulationInfoServiceImpl.java b/src/main/java/cn/com/tenlion/commonpopulation/service/basepopulationinfo/impl/BasePopulationInfoServiceImpl.java index d917493..e1edecc 100644 --- a/src/main/java/cn/com/tenlion/commonpopulation/service/basepopulationinfo/impl/BasePopulationInfoServiceImpl.java +++ b/src/main/java/cn/com/tenlion/commonpopulation/service/basepopulationinfo/impl/BasePopulationInfoServiceImpl.java @@ -599,7 +599,8 @@ public class BasePopulationInfoServiceImpl extends DefaultBaseService implements 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(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()); @@ -647,7 +648,7 @@ public class BasePopulationInfoServiceImpl extends DefaultBaseService implements info.setgrid_name(item.getGridName() == null ? "" : item.getGridName()); jObj.put("data", info.saveCheckToJson()); kafkaTemplate.send("tableSync", jObj.toJSONString()); - if(forIndex % 10000 == 0){ + if(forIndex != 0 && forIndex % 5000 == 0){ System.out.println("================= PULL_COUNT_" + forIndex + " ================="); } forIndex++;