wangming 11 місяців тому
батько
коміт
17144c28f7

+ 5 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxInsideInspectionServiceImpl.java

@@ -227,6 +227,11 @@ public class ZhcxInsideInspectionServiceImpl extends ServiceImpl<ZhcxInsideInspe
 
         ZhcxInsideInspectionDo inspection = this.getById(req.getId());//报验单
 
+        //非未提交状态不能暂存
+        if(!"10".equals(inspection.getInspectionstatus())) {
+            throw new CustomException("此单据已提交,不能暂存");
+        }
+
         //生成记录
         saveEditHistory(inspection, req);