Skip to content

Commit 6094998

Browse files
committed
优化空闲错误问题
1 parent d858e6c commit 6094998

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

service-front/src/main/java/com/java110/front/smo/assetExport/impl/ExportFeeManualCollectionSMOImpl.java

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,12 @@ private Map<String, Object> generatorRoomOweFee(Sheet sheet, Workbook workbook,
214214
// 标题
215215
Row row = sheet.createRow(0 + line);
216216
Cell cell0 = row.createCell(0);
217-
cell0.setCellValue("缴费通知单totalHeight:" + totalHeight + "-totalPageHeight:" + totalPageHeight + "-curPageHeight:" + curPageHeight + "-freePageHeight:" + freePageHeight + "-line:" + line);
217+
//cell0.setCellValue("缴费通知单totalHeight:" + totalHeight + "-totalPageHeight:" + totalPageHeight + "-curPageHeight:" + curPageHeight + "-freePageHeight:" + freePageHeight + "-line:" + line);
218+
cell0.setCellValue("缴费通知单");
218219
//标题设置字体
219220
Font font = workbook.createFont();
220221
font.setFontName("黑体");
221-
font.setFontHeightInPoints((short) 12);
222+
font.setFontHeightInPoints((short) 26);
222223
CellStyle titleCellStyle = workbook.createCellStyle();
223224
titleCellStyle.setFont(font);
224225
titleCellStyle.setAlignment(HorizontalAlignment.CENTER);
@@ -231,16 +232,25 @@ private Map<String, Object> generatorRoomOweFee(Sheet sheet, Workbook workbook,
231232

232233

233234
//第一行
235+
CellStyle subTitleCellStyle = workbook.createCellStyle();
236+
subTitleCellStyle.setAlignment(HorizontalAlignment.CENTER);
237+
subTitleCellStyle.setVerticalAlignment(VerticalAlignment.BOTTOM);
234238
row = sheet.createRow(1 + line);
235-
row.createCell(0).setCellValue("收费二维码");
236-
row.createCell(1).setCellValue("房号:" + room.getString("floorNum")
239+
cell0 = row.createCell(0);
240+
cell0.setCellValue("收费二维码");
241+
cell0.setCellStyle(subTitleCellStyle);
242+
Cell cell1 = row.createCell(1);
243+
cell1.setCellValue("房号:" + room.getString("floorNum")
237244
+ "-" + room.getString("unitNum")
238245
+ "-" + room.getString("roomNum"));
246+
cell1.setCellStyle(subTitleCellStyle);
239247

240248
row.createCell(2).setCellValue("");
241249
row.createCell(3).setCellValue("");
242250
row.createCell(4).setCellValue("");
243-
row.createCell(5).setCellValue(DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_B));
251+
Cell cell5 = row.createCell(5);
252+
cell5.setCellValue(DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_B));
253+
cell5.setCellStyle(subTitleCellStyle);
244254
row.setHeight((short) (subTitleHeight));
245255
CellStyle rowCellStyle = workbook.createCellStyle();
246256
rowCellStyle.setVerticalAlignment(VerticalAlignment.BOTTOM);
@@ -256,7 +266,7 @@ private Map<String, Object> generatorRoomOweFee(Sheet sheet, Workbook workbook,
256266
cell0 = row.createCell(0);
257267
cell0.setCellValue("收费名称");
258268
cell0.setCellStyle(cellStyle);
259-
Cell cell1 = row.createCell(1);
269+
cell1 = row.createCell(1);
260270
cell1.setCellValue("收费标准");
261271
cell1.setCellStyle(cellStyle);
262272
Cell cell2 = row.createCell(2);
@@ -268,7 +278,7 @@ private Map<String, Object> generatorRoomOweFee(Sheet sheet, Workbook workbook,
268278
Cell cell4 = row.createCell(4);
269279
cell4.setCellValue("应缴金额(元)");
270280
cell4.setCellStyle(cellStyle);
271-
Cell cell5 = row.createCell(5);
281+
cell5 = row.createCell(5);
272282
cell5.setCellValue("违约金(元)");
273283
cell5.setCellStyle(cellStyle);
274284
Cell cell6 = row.createCell(6);

0 commit comments

Comments
 (0)