Forráskód Böngészése

内部报验-问题修复

wangming 1 éve
szülő
commit
7aabf69662

+ 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);
+        }
     }
 
     /**