|
@@ -2666,18 +2666,18 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
Row row = sheet.getRow(i);
|
|
|
if (row == null) continue;
|
|
|
// 获取每一列的值
|
|
|
- String unitName = getCellValue(row.getCell(0)); // A列:单位工程名称
|
|
|
- String unitCode = getCellValue(row.getCell(1)); // B列:单位工程编号
|
|
|
- String subUnitName = getCellValue(row.getCell(2)); // C列:子单位工程名称
|
|
|
- String subUnitCode = getCellValue(row.getCell(3)); // D列:子单位工程编号
|
|
|
- String divisionName = getCellValue(row.getCell(4)); // E列:分部工程名称
|
|
|
- String divisionCode = getCellValue(row.getCell(5)); // F列:分部工程编号
|
|
|
- String subDivisionName = getCellValue(row.getCell(6)); // G列:子分部工程名称
|
|
|
- String subDivisionCode = getCellValue(row.getCell(7)); // H列:子分部工程编号
|
|
|
- String itemName = getCellValue(row.getCell(8)); // I列:分项工程名称
|
|
|
- String itemCode = getCellValue(row.getCell(9)); // J列:分项工程编号
|
|
|
- String subItemName = getCellValue(row.getCell(10)); // K列:子分项工程名称
|
|
|
- String subItemCode = getCellValue(row.getCell(11));// L列:子分项工程编号
|
|
|
+ String unitCode = getCellValue(row.getCell(0)); // A列:单位工程编号
|
|
|
+ String unitName = getCellValue(row.getCell(1)); // B列:单位工程名称
|
|
|
+ String subUnitCode = getCellValue(row.getCell(2)); // C列:子单位工程编号
|
|
|
+ String subUnitName = getCellValue(row.getCell(3)); // D列:子单位工程名称
|
|
|
+ String divisionCode = getCellValue(row.getCell(4)); // E列:分部工程编号
|
|
|
+ String divisionName = getCellValue(row.getCell(5)); // F列:分部工程名称
|
|
|
+ String subDivisionCode = getCellValue(row.getCell(6)); // G列:子分部工程编号
|
|
|
+ String subDivisionName = getCellValue(row.getCell(7)); // H列:子分部工程名称
|
|
|
+ String itemCode = getCellValue(row.getCell(8)); // I列:分项工程编号
|
|
|
+ String itemName = getCellValue(row.getCell(9)); // J列:分项工程名称
|
|
|
+ String subItemCode = getCellValue(row.getCell(10));// K列:子分项工程编号
|
|
|
+ String subItemName = getCellValue(row.getCell(11)); // L列:子分项工程名称
|
|
|
ImportTreeDto dto=new ImportTreeDto(unitName,unitCode,1,StringUtils.isEmpty(unitName) ,subUnitName,subUnitCode,18,StringUtils.isEmpty(subUnitName),divisionName,divisionCode,2,StringUtils.isEmpty(divisionName), subDivisionName,subDivisionCode,3,StringUtils.isEmpty(subDivisionName),itemName,itemCode,4,StringUtils.isEmpty(itemName),subItemName,subItemCode,5,StringUtils.isEmpty(subItemName));
|
|
|
list.add(dto);
|
|
|
}
|