Quellcode durchsuchen

同步-表单同步-错误提示

LHB vor 1 Monat
Ursprung
Commit
5319117b40

+ 3 - 0
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/WbsSynchronousServiceImpl.java

@@ -129,6 +129,9 @@ public class WbsSynchronousServiceImpl {
         if (StringUtil.isBlank(initTableName)) {
             throw new ServiceException("表单未绑定实体表");
         }
+        if (wbsTreePrivate.getExcelId() == null) {
+            throw new ServiceException("表单未绑定清表");
+        }
         //在指定项目下指定实体表相同的数据
         List<WbsTreePrivate> wbsTreePrivates = wbsTreePrivateMapper.selectList(Wrappers.<WbsTreePrivate>lambdaQuery()
                 .eq(WbsTreePrivate::getProjectId, wbsTreePrivate.getProjectId())