|
@@ -144,10 +144,13 @@ public class IotRdDailyReportServiceImpl implements IotRdDailyReportService {
|
|
|
IotRdDailyReportDO updateObj = BeanUtils.toBean(updateReqVO, IotRdDailyReportDO.class);
|
|
IotRdDailyReportDO updateObj = BeanUtils.toBean(updateReqVO, IotRdDailyReportDO.class);
|
|
|
// 如果是修改 非生产时间 ,则不必再发起审批
|
|
// 如果是修改 非生产时间 ,则不必再发起审批
|
|
|
if (StrUtil.isBlank(updateReqVO.getNonProduct())) {
|
|
if (StrUtil.isBlank(updateReqVO.getNonProduct())) {
|
|
|
- // 设置 日报填写状态 保存 已完成
|
|
|
|
|
- updateObj.setStatus(1);
|
|
|
|
|
|
|
+ // 正常填写4小时周报 不必设置日报状态为 已完成 可以每4小时填报1闪
|
|
|
|
|
+ // updateObj.setStatus(1);
|
|
|
// 设置 日报审批状态为 审批中 auditStatus = 10
|
|
// 设置 日报审批状态为 审批中 auditStatus = 10
|
|
|
updateObj.setAuditStatus(10);
|
|
updateObj.setAuditStatus(10);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ // 生产运营部填写了 非生产时间 施工简报 可以设置 日报状态为 已完成 不允许再次填报
|
|
|
|
|
+ updateObj.setStatus(1);
|
|
|
}
|
|
}
|
|
|
// 如果 修改 了时效 只要保存 不管是否 填写了 非生产时间 都确认为已经 维护了 非生产时间
|
|
// 如果 修改 了时效 只要保存 不管是否 填写了 非生产时间 都确认为已经 维护了 非生产时间
|
|
|
if (StrUtil.isNotBlank(updateReqVO.getNonProduct())) {
|
|
if (StrUtil.isNotBlank(updateReqVO.getNonProduct())) {
|
|
@@ -2610,9 +2613,11 @@ public class IotRdDailyReportServiceImpl implements IotRdDailyReportService {
|
|
|
// 设置 日报审批状态为 审批中 auditStatus = 10
|
|
// 设置 日报审批状态为 审批中 auditStatus = 10
|
|
|
mainWellReport.setAuditStatus(10);
|
|
mainWellReport.setAuditStatus(10);
|
|
|
// 设置 日报填写状态 保存 已完成
|
|
// 设置 日报填写状态 保存 已完成
|
|
|
- mainWellReport.setStatus(1);
|
|
|
|
|
|
|
+ // mainWellReport.setStatus(1);
|
|
|
} else {
|
|
} else {
|
|
|
mainWellReport.setProcessInstanceId("2");
|
|
mainWellReport.setProcessInstanceId("2");
|
|
|
|
|
+ // 设置 日报填写状态 保存 已完成
|
|
|
|
|
+ mainWellReport.setStatus(1);
|
|
|
}
|
|
}
|
|
|
iotRdDailyReportMapper.updateById(mainWellReport);
|
|
iotRdDailyReportMapper.updateById(mainWellReport);
|
|
|
}
|
|
}
|