|
|
@ -1196,10 +1196,12 @@ public class DataSyncConfigServiceImpl extends BaseServiceImpl<DataSyncConfigDao |
|
|
|
do { |
|
|
|
// 分页,一次查询1000居民,循环更新他们的核酸检测信息
|
|
|
|
resis = getNatUserInfoFromDb(p, pageNo, pageSize); |
|
|
|
yantaiHsjcByDbView(resis, jobEntity.getCustomerId(), NumConstant.ONE_STR); |
|
|
|
pageNo++; |
|
|
|
updatedResiCount += pageSize; |
|
|
|
log.info("【任务处理器同步数据】组织Id:{},同步类型:{},已完成居民数:{}", jobEntity.getOrgId(), jobEntity.getJobType(), updatedResiCount); |
|
|
|
} while (!org.springframework.util.CollectionUtils.isEmpty(resis)); |
|
|
|
if (CollectionUtils.isNotEmpty(resis)) { |
|
|
|
yantaiHsjcByDbView(resis, jobEntity.getCustomerId(), NumConstant.ONE_STR); |
|
|
|
pageNo++; |
|
|
|
updatedResiCount += resis.size(); |
|
|
|
log.info("【任务处理器同步数据】组织Id:{},同步类型:{},已完成居民数:{}", jobEntity.getOrgId(), jobEntity.getJobType(), updatedResiCount); |
|
|
|
} |
|
|
|
} while (CollectionUtils.isNotEmpty(resis)); |
|
|
|
} |
|
|
|
} |
|
|
|