| | |
| | | import com.java110.utils.constant.ServiceConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.DateUtil; |
| | | import org.apache.poi.ss.usermodel.Cell; |
| | | import org.apache.poi.ss.usermodel.CellStyle; |
| | | import org.apache.poi.ss.usermodel.Row; |
| | | import org.apache.poi.ss.usermodel.Sheet; |
| | | import org.apache.poi.ss.usermodel.Workbook; |
| | | import org.apache.poi.ss.usermodel.*; |
| | | import org.apache.poi.ss.util.CellRangeAddress; |
| | | import org.apache.poi.xssf.usermodel.XSSFWorkbook; |
| | | import org.slf4j.Logger; |
| | |
| | | //查询楼栋信息 |
| | | JSONArray rooms = this.getExistsRoomFee(pd, componentValidateResult); |
| | | if (rooms == null || rooms.size() < 1) { |
| | | CellRangeAddress region = new CellRangeAddress(0, 0, 0, 6); |
| | | CellRangeAddress region = new CellRangeAddress(0, 0, 0, 1); |
| | | sheet.addMergedRegion(region); |
| | | return; |
| | | } |
| | |
| | | } |
| | | dataKeyIndex++; |
| | | } |
| | | row.createCell(dataKeyIndex).setCellValue("备注"); |
| | | |
| | | |
| | | for (int roomIndex = 0; roomIndex < rooms.size(); roomIndex++) { |
| | | row = sheet.createRow(roomIndex + 2); |
| | |
| | | row.createCell(dataKeyIndex).setCellValue(dataObj.getString(key)); |
| | | dataKeyIndex++; |
| | | } |
| | | row.createCell(dataKeyIndex + 2).setCellValue(""); |
| | | } |
| | | |
| | | CellRangeAddress region = new CellRangeAddress(0, 0, 0, 6); |
| | | row = sheet.createRow(rooms.size() + 2); |
| | | cell0 = row.createCell(0); |
| | | cell0.setCellValue("注:此《欠费统计表》交由厦门维度智临科技有限公司进行催收"); |
| | | |
| | | CellRangeAddress region = new CellRangeAddress(0, 0, 0, dataKeyIndex); |
| | | sheet.addMergedRegion(region); |
| | | |
| | | region = new CellRangeAddress(rooms.size() + 2, rooms.size() + 2, 0, dataKeyIndex); |
| | | sheet.addMergedRegion(region); |
| | | } |
| | | |