Skip to content

Commit

Permalink
Merge pull request #78 from kookmin-sw/feat/familarity2
Browse files Browse the repository at this point in the history
fix: 버그픽스
  • Loading branch information
KimChanJin97 authored May 17, 2024
2 parents edbc2ff + a84c7c2 commit a13647d
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,13 @@ public Page<ResumeHomeDetailResponse> getResumesByGoodCombi(Long memberId, Pagea
break;
}

Member member = findMemberById(memberId);

List<ResumeHomeDetailResponse> content = queryFactory
.select(new QResumeHomeDetailResponse(
resume.id.as("resumeId"),
resume.member.faceInfo.generatedS3url.as("thumbnailS3url")))
.from(resume)
.leftJoin(resume.member, QMember.member) // left join
.where(builder) // boolean builder
.where(resume.member.ne(member))
.orderBy(resume.id.desc())
.offset(pageable.getOffset())
.limit(pageable.getPageSize())
Expand All @@ -87,16 +84,13 @@ public Page<ResumeHomeDetailResponse> getResumesByGoodCombi(Long memberId, Pagea
// 카테고리별 동적 쿼리
public Page<ResumeHomeDetailResponse> getResumesByCategory(Long memberId, String category, Pageable pageable) {

Member member = findMemberById(memberId);

List<ResumeHomeDetailResponse> content = queryFactory
.select(new QResumeHomeDetailResponse(
resume.id.as("resumeId"),
resume.member.faceInfo.generatedS3url.as("thumbnailS3url")))
.from(resume)
.leftJoin(resume.member, QMember.member) // left join
.where(resume.categories.contains(Resume.Category.valueOf(category)))
.where(resume.member.ne(member))
.orderBy(resume.id.desc())
.offset(pageable.getOffset())
.limit(pageable.getPageSize())
Expand Down

0 comments on commit a13647d

Please sign in to comment.