소스 검색

内部报验-问题修复

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

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

@@ -618,14 +618,16 @@ public class ZhcxInsideInspectionServiceImpl extends ServiceImpl<ZhcxInsideInspe
             throw new CustomException(StringUtils.join(msgList, "<br>"));
         }
 
-        //批量派单
-        dispatchService.updateBatchById(dispatchList);
+        if(ObjectUtil.isNotEmpty(dispatchList)) {
+            //批量派单
+            dispatchService.updateBatchById(dispatchList);
 
-        //批量更新
-        updateBatchById(inspectionList);
+            //批量更新
+            updateBatchById(inspectionList);
 
-        //操作日志
-        operLogService.saveOperLog(req, operDto, descMap);
+            //操作日志
+            operLogService.saveOperLog(req, operDto, descMap);
+        }
     }
 
     /**