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