|
@@ -143,7 +143,7 @@ public class IotRyDailyReportServiceImpl implements IotRyDailyReportService {
|
|
|
}
|
|
}
|
|
|
// 根据日报的 施工队伍 deptId 查询队伍所在的 项目 任务
|
|
// 根据日报的 施工队伍 deptId 查询队伍所在的 项目 任务
|
|
|
// 根据日报的施工状态 更新 对应任务的 状态
|
|
// 根据日报的施工状态 更新 对应任务的 状态
|
|
|
- Long taskId = Long.MIN_VALUE;
|
|
|
|
|
|
|
+ Long taskId = null; // Long.MIN_VALUE;
|
|
|
Set<Long> deviceIds = new HashSet<>();
|
|
Set<Long> deviceIds = new HashSet<>();
|
|
|
List<IotProjectTaskDO> tasks = new ArrayList<>();
|
|
List<IotProjectTaskDO> tasks = new ArrayList<>();
|
|
|
IotProjectTaskPageReqVO reqVO = new IotProjectTaskPageReqVO();
|
|
IotProjectTaskPageReqVO reqVO = new IotProjectTaskPageReqVO();
|
|
@@ -207,7 +207,7 @@ public class IotRyDailyReportServiceImpl implements IotRyDailyReportService {
|
|
|
// (当前井深 - 前一天日报中填写的 ‘当前井深’)= 日进尺
|
|
// (当前井深 - 前一天日报中填写的 ‘当前井深’)= 日进尺
|
|
|
// 将 reportDate 减去1天 得到日期 date(yyyy-MM-dd) 查询date对应的日报记录
|
|
// 将 reportDate 减去1天 得到日期 date(yyyy-MM-dd) 查询date对应的日报记录
|
|
|
IotRyDailyReportDO lastReport = iotRyDailyReportMapper.selectLatestReportBeforeDate(
|
|
IotRyDailyReportDO lastReport = iotRyDailyReportMapper.selectLatestReportBeforeDate(
|
|
|
- createReqVO.getDeptId(), null, reportDate);
|
|
|
|
|
|
|
+ createReqVO.getDeptId(), taskId, reportDate);
|
|
|
if (ObjUtil.isNotEmpty(lastReport) && ObjUtil.isNotEmpty(lastReport.getCurrentDepth())) {
|
|
if (ObjUtil.isNotEmpty(lastReport) && ObjUtil.isNotEmpty(lastReport.getCurrentDepth())) {
|
|
|
// 当前井深-前一天日报的当前井深 = 日进尺
|
|
// 当前井深-前一天日报的当前井深 = 日进尺
|
|
|
BigDecimal dailyFootage = createReqVO.getCurrentDepth().subtract(lastReport.getCurrentDepth());
|
|
BigDecimal dailyFootage = createReqVO.getCurrentDepth().subtract(lastReport.getCurrentDepth());
|