소스 검색

内部报验取消校验

wangming 1 년 전
부모
커밋
85dee660c3
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxInsideInspectionServiceImpl.java

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

@@ -1479,6 +1479,11 @@ public class ZhcxInsideInspectionServiceImpl extends ServiceImpl<ZhcxInsideInspe
      */
     private String checkParam4Cancel(InsideOperDto operDto, InsideInspectionRequest dto) {
         SysUserVo currUser = zhcxCommon.getCurrentUser();
+
+        if("execute".equals(dto.getPageType()) && ObjectUtil.isEmpty(operDto.getDispatch().getSupervisionid())) {
+            return "单据号:".concat(operDto.getInspection().getInspectioncode()).concat("未派单,请先派单再执行");
+        }
+
         //报验完成
         if("30".equals(operDto.getInspection().getInspectionstatus())) {
             return "单据号:".concat(operDto.getInspection().getInspectioncode()).concat("检验员已提交报验结论不能取消,请刷新数据查看");