cr 5 дней назад
Родитель
Сommit
8c4fdf9210

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

@@ -2954,15 +2954,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列:单位工程名称