Selaa lähdekoodia

-法规项验证

jiangbiao 2 vuotta sitten
vanhempi
commit
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;