Browse Source

考勤统计导出调整

dzx 4 days ago
parent
commit
ee681c6252

+ 3 - 1
src/main/java/com/xjrsoft/module/attendance/service/impl/AttendanceStatisticsServiceImpl.java

@@ -498,7 +498,9 @@ public class AttendanceStatisticsServiceImpl extends MPJBaseServiceImpl<Attendan
         for (ArrayList<String> rowData : dataList) {
             Row dataRow = sheet.createRow(dataRowNumber);
             for (int i = 0; i < rowData.size(); i ++){
-                sheet.autoSizeColumn(i);
+                if(i > 7){
+                    sheet.autoSizeColumn(i);
+                }
                 String content = rowData.get(i);
                 Font font = workbook.createFont();
                 font.setBold(false);// 设置为粗体