Explorar o código

-法规项验证

jiangbiao %!s(int64=2) %!d(string=hai) anos
pai
achega
c2af6338b1

+ 3 - 0
master/src/main/java/com/ruoyi/project/check/controller/TCheckCheckpointsController.java

@@ -180,6 +180,9 @@ public class TCheckCheckpointsController extends BaseController {
         List<TCheckEnvironment> tCheckEnvironments = tCheckEnvironmentMapper.selectTCheckEnvironmentListByYear();
 
         List<TCheckLawitems> tCheckLawitems = tCheckLawitemsService.selectTCheckLawitemsByLawStatus();
+        if(CollectionUtils.isEmpty(tCheckLawitems)){
+            return AjaxResult.error("未找到匹配的法规项!请检查法规项后重试!");
+        }
         AtomicInteger successNumber = new AtomicInteger();
         for (int i = 1; i < rowNum; i++) {
             int finalI = i;