|
@@ -104,7 +104,7 @@ public class IotRhDailyReportServiceImpl implements IotRhDailyReportService {
|
|
|
deviceIds = task.getDeviceIds();
|
|
|
} else {
|
|
|
// 当前队伍没有关联任务 不生成日报
|
|
|
- throw exception(IOT_PROJECT_TASK_NOT_RELATED);
|
|
|
+ // throw exception(IOT_PROJECT_TASK_NOT_RELATED);
|
|
|
}
|
|
|
|
|
|
// 查询当前任务下关联的所有设备 查询这些设备的当日注气量 进而计算累计注气量
|
|
@@ -181,7 +181,7 @@ public class IotRhDailyReportServiceImpl implements IotRhDailyReportService {
|
|
|
|
|
|
// 当天如果已经有此小队的记录 新增 当天如果没有此小队的日报记录 修改
|
|
|
// deptId - taskId - createTime(yyyy-MM-dd) 确定唯一一条记录 不能使用 LocalDateTime.now() 来查询,应该使用 运行记录工单的创建日期查询
|
|
|
- IotRhDailyReportDO existReport = iotRhDailyReportMapper.selectExistReport(createReqVO.getDeptId(), taskId, reportDate);
|
|
|
+ IotRhDailyReportDO existReport = iotRhDailyReportMapper.selectExistReport(createReqVO.getDeptId(), null, reportDate);
|
|
|
if (ObjUtil.isEmpty(existReport)) {
|
|
|
// 今天下午4点
|
|
|
LocalDateTime today4pm = reportDate.withHour(16).withMinute(0).withSecond(0).withNano(0);
|