调整Rooming List导出日期格式
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user