Explorar o código

节点导入取消限制

cr hai 5 días
pai
achega
47d11148d5

+ 9 - 9
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/WbsTreeContractServiceImpl.java

@@ -2820,15 +2820,15 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
             for (int i = 2; i <= sheet.getLastRowNum(); i++) {
                 Row row = sheet.getRow(i);
                 if (row == null) continue;
-                if(StringUtils.isEmpty(getCellValue(row.getCell(1)))){
-                    throw new ServerException("单位工程类型名称不能为空");
-                }
-                if(StringUtils.isEmpty(getCellValue(row.getCell(3)))){
-                    throw new ServerException("单位工程名称不能为空");
-                }
-                if(StringUtils.isEmpty(getCellValue(row.getCell(5)))){
-                    throw new ServerException("分部工程名称不能为空");
-                }
+//                if(StringUtils.isEmpty(getCellValue(row.getCell(1)))){
+//                    throw new ServerException("单位工程类型名称不能为空");
+//                }
+//                if(StringUtils.isEmpty(getCellValue(row.getCell(3)))){
+//                    throw new ServerException("单位工程名称不能为空");
+//                }
+//                if(StringUtils.isEmpty(getCellValue(row.getCell(5)))){
+//                    throw new ServerException("分部工程名称不能为空");
+//                }
                 // 获取每一列的值
                 String unitCode = getCellValue(row.getCell(0)); // A列:单位工程编号
                 String unitName = getCellValue(row.getCell(1)); // B列:单位工程名称