Skip to content

Commit

Permalink
Merge pull request #66 from lotteon2/refactor
Browse files Browse the repository at this point in the history
✏️ 마이페이지 문의 내역에 상품명 누락 문제 해결
  • Loading branch information
nowgnas authored Jan 18, 2024
2 parents 1fb2811 + be912de commit 44b911d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ dependencies {
implementation 'org.springframework.cloud:spring-cloud-aws-messaging:2.2.4.RELEASE'
implementation 'software.amazon.awssdk:sns:2.21.37'

implementation group: 'io.github.lotteon-maven', name: 'blooming-blooms-utils', version: '202401160417'
implementation group: 'io.github.lotteon-maven', name: 'blooming-blooms-utils', version: '202401180244'
}

dependencyManagement {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class MyQuestionInMypageDto {
private String productName;

@QueryProjection
public MyQuestionInMypageDto(Long key, Boolean isReplied, String title, String content, String nickname, LocalDateTime createdAt, String reply, LocalDateTime repliedAt) {
public MyQuestionInMypageDto(Long key, Boolean isReplied, String title, String content, String nickname, LocalDateTime createdAt, String reply, LocalDateTime repliedAt, String productName) {
this.key = key;
this.isReplied = isReplied;
this.title = title;
Expand All @@ -34,5 +34,6 @@ public MyQuestionInMypageDto(Long key, Boolean isReplied, String title, String c
this.createdAt = createdAt.toLocalDate();
this.reply = reply;
this.repliedAt = repliedAt != null ? repliedAt.toLocalDate() : null;
this.productName = productName;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ public Page<MyQuestionInMypageDto> getMyQuestionsInProductWithPaging(Long userId
question.nickname,
question.createdAt,
answer.content,
answer.createdAt
answer.createdAt,
question.productName
))
.from(answer)
.rightJoin(answer.question, question)
Expand Down Expand Up @@ -151,7 +152,8 @@ public Page<MyQuestionInMypageDto> getMyQuestionsWithPaging(Long userId, Boolean
question.nickname,
question.createdAt,
answer.content,
answer.createdAt
answer.createdAt,
question.productName
))
.from(answer)
.rightJoin(answer.question, question)
Expand Down

0 comments on commit 44b911d

Please sign in to comment.