Skip to content

Commit

Permalink
Fix(#171): Order By 안들어가있는거 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
mingeun0507 committed May 25, 2023
1 parent 9f583ac commit 82e883a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ public List<ProjectRecordResponseDto> findAllRecordsByProjectId(Long projectId)
.leftJoin(projectQuestion).on(projectRecord.projectQuestion.id.eq(projectQuestion.id))
.fetchJoin()
.where(projectRecord.project.id.eq(projectId))
.orderBy(projectRecord.id.desc())
.fetch();
}

@Override
public List<ProjectRecord> findAllByProjectRecordIdList(Long userId, List<Long> projectRecordIdList) {
return jpaQueryFactory.selectFrom(projectRecord)
.where(projectRecord.id.in(projectRecordIdList), projectRecord.project.user.id.eq(userId))

.fetch();
}

Expand Down

0 comments on commit 82e883a

Please sign in to comment.