|
|
@@ -116,7 +116,7 @@ public class IotFiveDailyReportController {
|
|
|
return new IotFiveDailyReportRespVO();
|
|
|
}
|
|
|
IotFiveDailyReportRespVO dailyReportVO = BeanUtils.toBean(dailyReport, IotFiveDailyReportRespVO.class);
|
|
|
-
|
|
|
+ Long deptId = dailyReportVO.getDeptId();
|
|
|
LocalDateTime reportTime = dailyReportVO.getCreateTime();
|
|
|
// 当月计划工作量,默认0
|
|
|
BigDecimal monthPlanLayers = BigDecimal.ZERO;
|
|
|
@@ -142,12 +142,24 @@ public class IotFiveDailyReportController {
|
|
|
BigDecimal utilizationRate = wokDeviceNum.divide(mainDeviceNum, 4, RoundingMode.HALF_UP );
|
|
|
dailyReportVO.setUtilizationRate(utilizationRate);
|
|
|
}
|
|
|
- // 当前日报的 施工队伍
|
|
|
- if (ObjUtil.isNotEmpty(dailyReportVO.getDeptId())) {
|
|
|
- DeptDO dept = deptService.getDept(dailyReportVO.getDeptId());
|
|
|
+ // 当前日报的 施工队伍 队伍关联的 任务井列表
|
|
|
+ Map<Long, String> deptWellNames = new HashMap<>();
|
|
|
+ if (ObjUtil.isNotEmpty(deptId)) {
|
|
|
+ DeptDO dept = deptService.getDept(deptId);
|
|
|
if (ObjUtil.isNotEmpty(dept)) {
|
|
|
dailyReportVO.setDeptName(dept.getName());
|
|
|
}
|
|
|
+ // 查询当前日报相关的部门队伍关联的任务列表(未完工的任务)
|
|
|
+ IotProjectTaskPageReqVO taskReqVO = new IotProjectTaskPageReqVO();
|
|
|
+ taskReqVO.setCompanyId(388l);
|
|
|
+ taskReqVO.setJobFlag("Y");
|
|
|
+ taskReqVO.setDeptId(deptId);
|
|
|
+ List<IotProjectTaskDO> tasks = iotProjectTaskService.projectTasks(taskReqVO);
|
|
|
+ if (CollUtil.isNotEmpty(tasks)) {
|
|
|
+ tasks.forEach(task -> {
|
|
|
+ deptWellNames.put(task.getId(), task.getWellName());
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
// 当前日报的 项目信息
|
|
|
if (ObjUtil.isNotEmpty(dailyReportVO.getProjectId())) {
|
|
|
@@ -157,6 +169,9 @@ public class IotFiveDailyReportController {
|
|
|
dailyReportVO.setCustomer(projectInfo.getManufactureName());
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ // 当前日报相关的部门关联的任务井列表
|
|
|
+ dailyReportVO.setRelatedTasks(deptWellNames);
|
|
|
// 查询当前日报关联的 任务信息
|
|
|
if (ObjUtil.isNotEmpty(dailyReportVO.getTaskId())) {
|
|
|
IotProjectTaskDO projectTask = iotProjectTaskService.getIotProjectTask(dailyReportVO.getTaskId());
|