修改
This commit is contained in:
parent
9f22f9c095
commit
527aa9ed9b
@ -591,6 +591,7 @@ public class BasePopulationInfoServiceImpl extends DefaultBaseService implements
|
||||
jObj.put("tableNumber", tableNumber);
|
||||
jObj.put("action", "save");
|
||||
List<BasePopulationInfoDTO> fullList = basePopulationInfoDao.listBasePopulationInfo(null);
|
||||
int forIndex = 0;
|
||||
for(BasePopulationInfoDTO item : fullList){
|
||||
jObj.put("uid", item.getBasePopulationInfoId());
|
||||
PopulationInfo info = new PopulationInfo();
|
||||
@ -646,6 +647,10 @@ 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){
|
||||
System.out.println("================= PULL_COUNT_" + forIndex + " =================");
|
||||
}
|
||||
forIndex++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user