|
|
@ -537,9 +537,9 @@ public class AreaMonthReportServiceImpl implements IAreaMonthReportService { |
|
|
|
// 预测
|
|
|
|
// 预测
|
|
|
|
this.getPredictPlanPower(oldActualMap,oldOldActualMap,areaStationList,areaMonthReport); |
|
|
|
this.getPredictPlanPower(oldActualMap,oldOldActualMap,areaStationList,areaMonthReport); |
|
|
|
// 安全生产会议次数、月度检查报告、技能培训、安全大检查
|
|
|
|
// 安全生产会议次数、月度检查报告、技能培训、安全大检查
|
|
|
|
this.getSecurityCheck(areaStationList,areaMonthReport,mon + "-01 00:00:00", getStrEndTime(mon)); |
|
|
|
this.getSecurityCheck(Collections.singletonList(area.getId()),areaMonthReport,mon + "-01 00:00:00", getStrEndTime(mon)); |
|
|
|
// 设备试验
|
|
|
|
// 设备试验
|
|
|
|
this.getDeviceTry(mon + "-01 00:00:00", getStrEndTime(mon), areaStationList,areaMonthReport); |
|
|
|
this.getDeviceTry(mon + "-01 00:00:00", getStrEndTime(mon), Collections.singletonList(area.getId()),areaMonthReport); |
|
|
|
areaMonthReportVoList.add(areaMonthReport); |
|
|
|
areaMonthReportVoList.add(areaMonthReport); |
|
|
|
}); |
|
|
|
}); |
|
|
|
return areaMonthReportVoList; |
|
|
|
return areaMonthReportVoList; |
|
|
@ -853,20 +853,21 @@ public class AreaMonthReportServiceImpl implements IAreaMonthReportService { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 安全检查 |
|
|
|
* 安全检查 |
|
|
|
* @param areaStationList |
|
|
|
* @param areas |
|
|
|
* @param areaMonthReport |
|
|
|
* @param areaMonthReport |
|
|
|
|
|
|
|
* @param startTime |
|
|
|
|
|
|
|
* @param endTime |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void getSecurityCheck(List<StationEntity> areaStationList, AreaMonthReportVo areaMonthReport,String startTime,String endTime) { |
|
|
|
private void getSecurityCheck(List<Long> areas, AreaMonthReportVo areaMonthReport,String startTime,String endTime) { |
|
|
|
areaMonthReport.setSafetyMeeting(0); |
|
|
|
areaMonthReport.setSafetyMeeting(0); |
|
|
|
areaMonthReport.setSelfReport(0); |
|
|
|
areaMonthReport.setSelfReport(0); |
|
|
|
areaMonthReport.setSkillTrainy(0); |
|
|
|
areaMonthReport.setSkillTrainy(0); |
|
|
|
areaMonthReport.setSecurityCheck(0); |
|
|
|
areaMonthReport.setSecurityCheck(0); |
|
|
|
// 站点归属机构集合
|
|
|
|
// 站点归属机构集合
|
|
|
|
List<Long> deptList = areaStationList.stream().filter(o-> null != o.getRefDept()).map(StationEntity::getRefDept).collect(Collectors.toList()); |
|
|
|
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("startDate", startTime); |
|
|
|
map.put("startDate", startTime); |
|
|
|
map.put("endDate", endTime); |
|
|
|
map.put("endDate", endTime); |
|
|
|
map.put("deptList", deptList); |
|
|
|
map.put("deptList", areas); |
|
|
|
// 调用安全大检查fegin接口
|
|
|
|
// 调用安全大检查fegin接口
|
|
|
|
R<Map<String, Object>> R = safeCheckClient.getCount(map); |
|
|
|
R<Map<String, Object>> R = safeCheckClient.getCount(map); |
|
|
|
if(!R.isSuccess() || MapUtils.isEmpty(R.getData())){ |
|
|
|
if(!R.isSuccess() || MapUtils.isEmpty(R.getData())){ |
|
|
@ -884,17 +885,15 @@ public class AreaMonthReportServiceImpl implements IAreaMonthReportService { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取设备试验数据 |
|
|
|
* 获取设备试验数据 |
|
|
|
* @param stationList |
|
|
|
* @param startTime |
|
|
|
* @return |
|
|
|
* @param endTime |
|
|
|
|
|
|
|
* @param areas |
|
|
|
|
|
|
|
* @param areaMonthReport |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void getDeviceTry(String startTime,String endTime,List<StationEntity> stationList,AreaMonthReportVo areaMonthReport) { |
|
|
|
private void getDeviceTry(String startTime,String endTime,List<Long> areas,AreaMonthReportVo areaMonthReport) { |
|
|
|
areaMonthReport.setDeviceTry(0); |
|
|
|
areaMonthReport.setDeviceTry(0); |
|
|
|
List<Long> deptIdList = stationList.stream().map(StationEntity::getRefDept).collect(Collectors.toList()); |
|
|
|
|
|
|
|
if(CollectionUtil.isEmpty(deptIdList)){ |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
SafeEquipmentTrialDTO request = new SafeEquipmentTrialDTO(); |
|
|
|
SafeEquipmentTrialDTO request = new SafeEquipmentTrialDTO(); |
|
|
|
request.setDeptList(deptIdList); |
|
|
|
request.setDeptList(areas); |
|
|
|
request.setStartTime(startTime); |
|
|
|
request.setStartTime(startTime); |
|
|
|
request.setEndTime(endTime); |
|
|
|
request.setEndTime(endTime); |
|
|
|
R<Integer> R = safeEquipmentTrialClient.getCount(request); |
|
|
|
R<Integer> R = safeEquipmentTrialClient.getCount(request); |
|
|
|