|
@@ -156,10 +156,17 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
|
|
|
@Override
|
|
|
@Transactional
|
|
|
public void updateInspection(OutsideInspectionUpdateRequest req) {
|
|
|
+
|
|
|
+ boolean updateQcFlag = true; //更新子表
|
|
|
+
|
|
|
//修改操作
|
|
|
if(ObjectUtil.isEmpty(req.getOperType()) || "updateInspection".equals(req.getOperType())) {
|
|
|
ZhcxOutsideInspectionItpDo itpDo = this.getById(req.getId()); //报验单
|
|
|
|
|
|
+ if("10".equals(itpDo.getInspectionstatus())) { //修改前是未提交状态
|
|
|
+ updateQcFlag = false;
|
|
|
+ }
|
|
|
+
|
|
|
//报验单中编码不存在,为首次提交,不需要生成修改记录
|
|
|
if(ObjectUtil.isNotEmpty(itpDo.getInspectioncode())) {
|
|
|
saveEditHistory(itpDo, req.getUpdate()); //保存历史记录
|
|
@@ -198,8 +205,10 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
|
|
|
|
|
|
}
|
|
|
|
|
|
- dao.updateQcModifyNumber(req.getId()); //修改qc次数
|
|
|
- dao.updateNdtModifyNumber(req.getId()); //修改ndt次数
|
|
|
+ if(updateQcFlag) {
|
|
|
+ dao.updateQcModifyNumber(req.getId()); //修改qc次数
|
|
|
+ dao.updateNdtModifyNumber(req.getId()); //修改ndt次数
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|