Skip to content

Commit

Permalink
[PDS-73] fix: 관리자 예약 내역 전체 조회 시, 이용목적 res 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sojungpp committed Dec 3, 2023
1 parent 337dcca commit 22e1feb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public class AdminBookingRes {
private String reservatorName;
@Schema(type = "String", description = "예약자 전화번호", example = "010-4158-8124")
private String reservatorPhone;
@Schema(type = "String", description = "이용목적", example = "드라마 촬영")
private String memo;
@Schema(type = "String", description = "상태", example = "'예약중' / '사용중'")
private String status;

Expand All @@ -39,6 +41,7 @@ public static AdminBookingRes toDto(OfficeBooking officeBooking){
.endDateTime(DateTimeUtil.dateAndTimeToString(officeBooking.getDate(),officeBooking.getEndTime()))
.reservatorName(officeBooking.getUser().getName())
.reservatorPhone(officeBooking.getUser().getPhone())
.memo(officeBooking.getMemo())
.status(officeBooking.getStatus().getValue())
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public class AdminProductRes {
private String reservatorName;
@Schema(type = "String", description = "예약자 전화번호", example = "010-0000-0000")
private String reservatorPhone;
@Schema(type = "String", description = "이용목적", example = "드라마 촬영")
private String memo;
@Schema(type = "String", description = "상태", example = "'예약중' / '사용중'")
private String status;

Expand All @@ -39,6 +41,7 @@ public static AdminProductRes toDto(ResourceBooking resourceBooking){
.endDateTime(DateTimeUtil.dateTimeToString(resourceBooking.getEndDate()))
.reservatorName(resourceBooking.getUser().getName())
.reservatorPhone(resourceBooking.getUser().getPhone())
.memo(resourceBooking.getMemo())
.status(resourceBooking.getStatus().getValue())
.build();
}
Expand All @@ -53,6 +56,7 @@ public static AdminProductRes toDto(CarBooking carBooking){
.endDateTime(DateTimeUtil.dateTimeToString(carBooking.getEndDate()))
.reservatorName(carBooking.getUser().getName())
.reservatorPhone(carBooking.getUser().getPhone())
.memo(carBooking.getMemo())
.status(carBooking.getStatus().getValue())
.build();
}
Expand Down

0 comments on commit 22e1feb

Please sign in to comment.