CellStyle cellStyle_tmp = workbook.createCellStyle();
cellStyle_tmp.setAlignment(HorizontalAlignment.RIGHT);
cellStyle_tmp.setVerticalAlignment(VerticalAlignment.CENTER);
cellStyle_tmp.setBorderBottom(BorderStyle.THIN);
cellStyle_tmp.setBorderLeft(BorderStyle.THIN);
cellStyle_tmp.setBorderRight(BorderStyle.THIN);
cellStyle_tmp.setBorderTop(BorderStyle.THIN);

Font fontStyle = workbook.createFont(); // 字体样式
fontStyle.setBold(true); // 加粗
cellStyle_tmp.setFont(fontStyle);

Row row_tmp = sheet.getRow(1);
Cell cell_tmp = row_tmp.getCell(4);
cell_tmp.setCellStyle(cellStyle_tmp);


//合并单位单元格,合并统计日期单元格
removeMergedRegion(sheet,1,1);
CellRangeAddress region = new CellRangeAddress(1, 1, 0, 3);
CellRangeAddress region2 = new CellRangeAddress(1, 1, 4, deptsByRule1.size()+2);
sheet.addMergedRegion(region);
sheet.addMergedRegion(region2);
RegionUtil.setBorderRight(1, region2, sheet); // 右边框