|
@@ -81,7 +81,7 @@ public class IotRhDailyReportServiceImpl implements IotRhDailyReportService {
|
|
iotRhDailyReport.setProjectId(task.getProjectId());
|
|
iotRhDailyReport.setProjectId(task.getProjectId());
|
|
iotRhDailyReport.setTaskId(task.getId());
|
|
iotRhDailyReport.setTaskId(task.getId());
|
|
taskId = task.getId();
|
|
taskId = task.getId();
|
|
- // 根据日报状态 查新 日报所属任务的状态
|
|
|
|
|
|
+ // 根据日报状态 查询 日报所属任务的状态
|
|
if (ObjUtil.isNotEmpty(createReqVO.getConstructionStatus())) {
|
|
if (ObjUtil.isNotEmpty(createReqVO.getConstructionStatus())) {
|
|
task.setStatus(createReqVO.getConstructionStatus());
|
|
task.setStatus(createReqVO.getConstructionStatus());
|
|
// 更新任务状态
|
|
// 更新任务状态
|
|
@@ -121,9 +121,9 @@ public class IotRhDailyReportServiceImpl implements IotRhDailyReportService {
|
|
if (ObjUtil.isNotEmpty(createReqVO.getDailyGasInjection()) && (capacity.get().compareTo(BigDecimal.ZERO)>0)) {
|
|
if (ObjUtil.isNotEmpty(createReqVO.getDailyGasInjection()) && (capacity.get().compareTo(BigDecimal.ZERO)>0)) {
|
|
// 将当日注气量单位 换算成 万方
|
|
// 将当日注气量单位 换算成 万方
|
|
// 将当日注气量单位由"方"换算成"万方"
|
|
// 将当日注气量单位由"方"换算成"万方"
|
|
- BigDecimal dailyGasInjectionInTenThousand = createReqVO.getDailyGasInjection()
|
|
|
|
- .divide(new BigDecimal(10000), 2, RoundingMode.HALF_UP);
|
|
|
|
- iotRhDailyReport.setTransitTime(dailyGasInjectionInTenThousand.divide(capacity.get(), 2, RoundingMode.HALF_UP));
|
|
|
|
|
|
+ /* BigDecimal dailyGasInjectionInTenThousand = createReqVO.getDailyGasInjection()
|
|
|
|
+ .divide(new BigDecimal(10000), 2, RoundingMode.HALF_UP); */
|
|
|
|
+ iotRhDailyReport.setTransitTime(createReqVO.getDailyGasInjection().divide(capacity.get(), 2, RoundingMode.HALF_UP));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -168,6 +168,7 @@ public class IotRhDailyReportServiceImpl implements IotRhDailyReportService {
|
|
devices.forEach(device -> {
|
|
devices.forEach(device -> {
|
|
device.setDeviceStatus(deviceNewStatus.get());
|
|
device.setDeviceStatus(deviceNewStatus.get());
|
|
});
|
|
});
|
|
|
|
+ iotDeviceMapper.updateBatch(devices);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|