|
@@ -222,10 +222,21 @@ public class IotRdDailyReportController {
|
|
|
IotRdDailyReportPageReqVO reportReqVO = new IotRdDailyReportPageReqVO();
|
|
IotRdDailyReportPageReqVO reportReqVO = new IotRdDailyReportPageReqVO();
|
|
|
reportReqVO.setPlatformGroup(dailyReport.getPlatformGroup());
|
|
reportReqVO.setPlatformGroup(dailyReport.getPlatformGroup());
|
|
|
List<IotRdDailyReportDO> reports = iotRdDailyReportService.dailyReports(reportReqVO);
|
|
List<IotRdDailyReportDO> reports = iotRdDailyReportService.dailyReports(reportReqVO);
|
|
|
|
|
+ // key任务id value日报id
|
|
|
Map<Long, Long> reportPair = new HashMap<>();
|
|
Map<Long, Long> reportPair = new HashMap<>();
|
|
|
|
|
+ // key任务id value平台井日报已经设置的多种属性
|
|
|
|
|
+ Map<Long, IotProjectTaskPlatformVO> platformPair = new HashMap<>();
|
|
|
if (CollUtil.isNotEmpty(reports)) {
|
|
if (CollUtil.isNotEmpty(reports)) {
|
|
|
reports.forEach(report -> {
|
|
reports.forEach(report -> {
|
|
|
|
|
+ // 保养平台井关联的多个日报使用
|
|
|
reportPair.put(report.getTaskId(), report.getId());
|
|
reportPair.put(report.getTaskId(), report.getId());
|
|
|
|
|
+ // 设置 平台关联井 已经设置的 属性 施工状态 施工工艺 工作量属性
|
|
|
|
|
+ // 查询 平台关联井详情使用
|
|
|
|
|
+ IotProjectTaskPlatformVO platformVO = new IotProjectTaskPlatformVO();
|
|
|
|
|
+ platformVO.setRdStatus(report.getRdStatus());
|
|
|
|
|
+ platformVO.setTechniqueIds(report.getTechniqueIds());
|
|
|
|
|
+ platformVO.setExtProperty(report.getExtProperty());
|
|
|
|
|
+ platformPair.put(report.getTaskId(), platformVO);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
List<IotProjectTaskPlatformVO> platforms = new ArrayList<>();
|
|
List<IotProjectTaskPlatformVO> platforms = new ArrayList<>();
|
|
@@ -238,6 +249,12 @@ public class IotRdDailyReportController {
|
|
|
if (reportPair.containsKey(task.getId())) {
|
|
if (reportPair.containsKey(task.getId())) {
|
|
|
platform.setReportId(reportPair.get(task.getId()));
|
|
platform.setReportId(reportPair.get(task.getId()));
|
|
|
}
|
|
}
|
|
|
|
|
+ if (platformPair.containsKey(task.getId())) {
|
|
|
|
|
+ IotProjectTaskPlatformVO tempPlatform = platformPair.get(task.getId());
|
|
|
|
|
+ platform.setRdStatus(tempPlatform.getRdStatus());
|
|
|
|
|
+ platform.setTechniqueIds(tempPlatform.getTechniqueIds());
|
|
|
|
|
+ platform.setExtProperty(tempPlatform.getExtProperty());
|
|
|
|
|
+ }
|
|
|
platforms.add(platform);
|
|
platforms.add(platform);
|
|
|
});
|
|
});
|
|
|
dailyReportVO.setPlatforms(platforms);
|
|
dailyReportVO.setPlatforms(platforms);
|