|
@@ -584,11 +584,21 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
|
584
|
584
|
//从第一行开始第一行一般是标题
|
585
|
585
|
for (int j = 3; j <= lastRowNum; j++) {
|
586
|
586
|
Row row = sheet.getRow(j);
|
587
|
|
- String buildingInfo = row.getCell(0).getStringCellValue().trim();
|
588
|
|
- String roomNoId = row.getCell(1).getStringCellValue().trim();
|
589
|
|
- String ownerName = row.getCell(2).getStringCellValue().trim();
|
590
|
|
- String ownerTel = row.getCell(3).getStringCellValue().trim();
|
591
|
|
- String ownerRole = row.getCell(4).getStringCellValue().trim();
|
|
587
|
+ Cell cell = row.getCell(0);
|
|
588
|
+ cell.setCellType(Cell.CELL_TYPE_STRING);
|
|
589
|
+ String buildingInfo = cell.getStringCellValue().trim();
|
|
590
|
+ cell = row.getCell(1);
|
|
591
|
+ cell.setCellType(Cell.CELL_TYPE_STRING);
|
|
592
|
+ String roomNoId = cell.getStringCellValue().trim();
|
|
593
|
+ cell = row.getCell(2);
|
|
594
|
+ cell.setCellType(Cell.CELL_TYPE_STRING);
|
|
595
|
+ String ownerName = cell.getStringCellValue().trim();
|
|
596
|
+ cell = row.getCell(3);
|
|
597
|
+ cell.setCellType(Cell.CELL_TYPE_STRING);
|
|
598
|
+ String ownerTel = cell.getStringCellValue().trim();
|
|
599
|
+ cell = row.getCell(4);
|
|
600
|
+ cell.setCellType(Cell.CELL_TYPE_STRING);
|
|
601
|
+ String ownerRole = cell.getStringCellValue().trim();
|
592
|
602
|
int currentRow = j+1;
|
593
|
603
|
if (StringUtils.isEmpty(buildingInfo)){
|
594
|
604
|
responseBean.addError("第" + currentRow + "行" + "房产信息不能为空!");
|
|
@@ -908,16 +918,21 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
|
908
|
918
|
buildingOwnerInfo.getRoomNoName();
|
909
|
919
|
|
910
|
920
|
cell = row.createCell(0);
|
|
921
|
+ cell.setCellType(Cell.CELL_TYPE_STRING);
|
911
|
922
|
cell.setCellValue(address);
|
912
|
923
|
cell.setCellStyle(cellStyle);
|
913
|
924
|
cell = row.createCell(1);
|
|
925
|
+ cell.setCellType(Cell.CELL_TYPE_STRING);
|
914
|
926
|
cell.setCellValue(buildingOwnerInfo.getId());
|
915
|
927
|
cell.setCellStyle(cellStyle);
|
916
|
928
|
cell = row.createCell(2);
|
|
929
|
+ cell.setCellType(Cell.CELL_TYPE_STRING);
|
917
|
930
|
cell.setCellStyle(cellStyle);
|
918
|
931
|
cell = row.createCell(3);
|
|
932
|
+ cell.setCellType(Cell.CELL_TYPE_STRING);
|
919
|
933
|
cell.setCellStyle(cellStyle);
|
920
|
934
|
cell = row.createCell(4);
|
|
935
|
+ cell.setCellType(Cell.CELL_TYPE_STRING);
|
921
|
936
|
cell.setCellStyle(cellStyle);
|
922
|
937
|
|
923
|
938
|
currentRow ++;
|