|
|
@ -102,6 +102,7 @@ public class BizDataStatsServiceImpl implements BizDataStatsService { |
|
|
|
} |
|
|
|
|
|
|
|
private void reloadStaffPatrolStatsData(StaffPatrolStatsFormDTO formDTO, List<CustomerGridStaffDTO> allGridMembers) { |
|
|
|
log.info("reloadStaffPatrolStatsData param:{}",JSON.toJSONString(formDTO)); |
|
|
|
//获取昨日的巡查统计记录
|
|
|
|
String yesterdayStr = getYesterdayString(formDTO); |
|
|
|
StaffPatrolStatsFormDTO yesterdayParam = ConvertUtils.sourceToTarget(formDTO, StaffPatrolStatsFormDTO.class); |
|
|
@ -183,6 +184,7 @@ public class BizDataStatsServiceImpl implements BizDataStatsService { |
|
|
|
} |
|
|
|
|
|
|
|
private void initStaffPatrolTodayData(StaffPatrolStatsFormDTO formDTO, List<CustomerGridStaffDTO> allGridMembers) { |
|
|
|
log.info("initStaffPatrolTodayData param:{}",JSON.toJSONString(formDTO)); |
|
|
|
List<StatsStaffPatrolRecordDailyDTO> insertList = buildInitPatrolStatsData(formDTO, allGridMembers); |
|
|
|
Integer effectRow = statsStaffPatrolService.delAndInsertBatch(formDTO, insertList); |
|
|
|
log.debug("initStaffPatrolStats insert rows:{}", effectRow); |
|
|
|