|
@@ -98,6 +98,7 @@ import java.math.MathContext;
|
|
|
import java.math.RoundingMode;
|
|
|
import java.net.URLEncoder;
|
|
|
import java.nio.charset.StandardCharsets;
|
|
|
+import java.rmi.ServerException;
|
|
|
import java.util.*;
|
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
import java.util.function.Function;
|
|
@@ -2771,6 +2772,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("分部工程名称不能为空");
|
|
|
+ }
|
|
|
// 获取每一列的值
|
|
|
String unitCode = getCellValue(row.getCell(0)); // A列:单位工程编号
|
|
|
String unitName = getCellValue(row.getCell(1)); // B列:单位工程名称
|