src/main/java/com/ruoyi/staff/service/impl/PersonalShiftServiceImpl.java
@@ -261,6 +261,16 @@ LocalDateTime localDateTime = LocalDateTime.parse(time, formatters); map.put("header", getMonthHeader(localDateTime)); List<List<Object>> lists = dataRequiredForProcessingIntoExcelMonth(mapIPage, personalAttendanceLocationConfigs); int maxSize = lists.stream() .mapToInt(List::size) .max() .orElse(0); for (List<Object> row : lists) { while (row.size() < maxSize) { row.add("-"); } } map.put("data", lists); return map; }