Explorar el Código

pms 瑞鹰 瑞都 日报 生产动态拆分明细 修改bug

zhangcl hace 4 días
padre
commit
12c991e90f

+ 8 - 3
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotrddailyreport/IotRdDailyReportServiceImpl.java

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

+ 1 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotrydailyreport/IotRyDailyReportServiceImpl.java

@@ -903,6 +903,7 @@ public class IotRyDailyReportServiceImpl implements IotRyDailyReportService {
         IotRyDailyReportDO dailyReport = validateIotRyDailyReportExists(updateReqVO.getId());
         dailyReport.setAuditStatus(updateReqVO.getAuditStatus());
         dailyReport.setOpinion(updateReqVO.getOpinion());
+        dailyReport.setConstructionBrief(updateReqVO.getConstructionBrief());
         if (SupplierAuditStatusEnum.REJECT.getStatus().equals(updateReqVO.getAuditStatus())) {
             dailyReport.setStatus(0);
             // 审批拒绝后需要向 日报填报人 发送消息提醒 驳回到日报创建人