Skip to content

Commit 016c0a6

Browse files
authored
Merge pull request #363 from GTable/refactor#361-getMyWaiting
refactor: publicCode 필드 추가
2 parents c56eb39 + 821e4c5 commit 016c0a6

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

nowait-app-user-api/src/main/java/com/nowait/applicationuser/waiting/dto/GetMyWaitingInfoResponse.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
@Builder
1010
public class GetMyWaitingInfoResponse {
1111
private String reservationId;
12+
private String publicCode;
1213
private Long storeId;
1314
private String storeName;
1415
private String departmentName;

nowait-app-user-api/src/main/java/com/nowait/applicationuser/waiting/service/WaitingService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ public List<GetMyWaitingInfoResponse> getMyWaitingInfo(CustomOAuth2User oAuth2Us
180180

181181
return GetMyWaitingInfoResponse.builder()
182182
.reservationId(dto.getReservationId())
183+
.publicCode(dto.getPublicCode())
183184
.storeId(dto.getStoreId())
184185
.storeName(dto.getStoreName())
185186
.departmentName(dto.getDepartmentName())

nowait-domain/domain-core-rdb/src/main/java/com/nowait/domaincorerdb/reservation/dto/GetMyWaitingBaseDto.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
@Getter
1313
public class GetMyWaitingBaseDto {
1414
private final String reservationId;
15+
private final String publicCode;
1516
private final Long storeId;
1617
private final String storeName;
1718
private final String departmentName;
@@ -25,6 +26,7 @@ public class GetMyWaitingBaseDto {
2526
@QueryProjection
2627
public GetMyWaitingBaseDto(
2728
String reservationId,
29+
String publicCode,
2830
Long storeId,
2931
String storeName,
3032
String departmentName,
@@ -36,6 +38,7 @@ public GetMyWaitingBaseDto(
3638
String bannerImageUrl
3739
) {
3840
this.reservationId = reservationId;
41+
this.publicCode = publicCode;
3942
this.storeId = storeId;
4043
this.storeName = storeName;
4144
this.departmentName = departmentName;

nowait-domain/domain-core-rdb/src/main/java/com/nowait/domaincorerdb/reservation/repository/ReservationCustomRepositoryImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public List<GetMyWaitingBaseDto> findMyWaitingInfo(Long userId) {
4545
return queryFactory
4646
.select(new QGetMyWaitingBaseDto(
4747
reservation.reservationNumber,
48+
store.publicCode,
4849
store.storeId,
4950
store.name,
5051
department.name,

0 commit comments

Comments
 (0)