调整Rooming List导出日期格式

This commit is contained in:
andy
2026-07-22 17:43:23 +07:00
parent 0de960372b
commit 76d253afc4
6 changed files with 16 additions and 14 deletions

View File

@@ -21,6 +21,8 @@ import org.springframework.stereotype.Component;
@Component
public class RoomingListExcelRenderer {
private static final DateTimeFormatter TARGET_DATE_FORMATTER =
DateTimeFormatter.ofPattern("yyyy/MM/dd");
private static final String[] HEADERS = {
"Line",
"Name",
@@ -98,8 +100,8 @@ public class RoomingListExcelRenderer {
row.createCell(1).setCellValue(room.primaryGuest().lastName());
row.createCell(2).setCellValue(room.primaryGuest().firstName());
row.createCell(3).setCellValue("");
row.createCell(4).setCellValue(arrival.format(DateTimeFormatter.ISO_LOCAL_DATE));
row.createCell(5).setCellValue(departure.format(DateTimeFormatter.ISO_LOCAL_DATE));
row.createCell(4).setCellValue(arrival.format(TARGET_DATE_FORMATTER));
row.createCell(5).setCellValue(departure.format(TARGET_DATE_FORMATTER));
row.createCell(6).setCellValue(defaultString(request.roomType()));
row.createCell(7).setCellValue("");
row.createCell(8).setCellValue(1);