|
|
@ -2097,19 +2097,21 @@ public class DataStatsServiceImpl implements DataStatsService, ResultDataResolve |
|
|
|
} |
|
|
|
//例行工作次数累加
|
|
|
|
int patrolRoutineWorkTimes = NumConstant.ZERO; |
|
|
|
workCountListTemp = workCountMap.get(org.getOrgId()); |
|
|
|
if (CollectionUtils.isNotEmpty(workCountListTemp)) { |
|
|
|
if (OrgLevelEnum.COMMUNITY.getCode().equals(agencyGrid.getLevel())) { |
|
|
|
for (CustomerDataManageResultDTO.CustomerDataManage work : workCountListTemp) { |
|
|
|
patrolRoutineWorkTimes += work.getPatrolRoutineWorkTimes(); |
|
|
|
set.add(work.getStaffId()); |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (!OrgLevelEnum.COMMUNITY.getCode().equals(agencyGrid.getLevel())) { |
|
|
|
if (workCountMap != null){ |
|
|
|
workCountListTemp = workCountMap.get(org.getOrgId()); |
|
|
|
if (CollectionUtils.isNotEmpty(workCountListTemp)) { |
|
|
|
if (OrgLevelEnum.COMMUNITY.getCode().equals(agencyGrid.getLevel())) { |
|
|
|
for (CustomerDataManageResultDTO.CustomerDataManage work : workCountListTemp) { |
|
|
|
patrolRoutineWorkTimes += work.getPatrolRoutineWorkTimes(); |
|
|
|
set.add(work.getStaffId()); |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (!OrgLevelEnum.COMMUNITY.getCode().equals(agencyGrid.getLevel())) { |
|
|
|
for (CustomerDataManageResultDTO.CustomerDataManage work : workCountListTemp) { |
|
|
|
patrolRoutineWorkTimes += work.getPatrolRoutineWorkTimes(); |
|
|
|
set.add(work.getStaffId()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|