Skip to content

Commit

Permalink
Merge pull request #101 from Modagbul/feat/mission-closing
Browse files Browse the repository at this point in the history
fix : 소모임 메인 미션 인증물 사진 조회
  • Loading branch information
seungueonn authored Nov 30, 2023
2 parents 0bd7e3c + 25a0073 commit 3666a73
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.moing.backend.domain.mission.application.dto.res.SingleMissionBoardRes;
import com.moing.backend.domain.mission.domain.entity.constant.MissionStatus;
import com.moing.backend.domain.mission.domain.entity.constant.MissionType;
import com.moing.backend.domain.mission.domain.entity.constant.MissionWay;
import com.moing.backend.domain.missionArchive.application.dto.res.MissionArchivePhotoRes;
import com.moing.backend.domain.missionArchive.domain.entity.MissionArchive;
import com.moing.backend.domain.missionArchive.domain.entity.MissionArchiveStatus;
Expand Down Expand Up @@ -226,7 +227,8 @@ public Optional<List<MissionArchivePhotoRes>> findTop5ArchivesByTeam(List<Long>
List<Tuple> queryResults = queryFactory
.select(missionArchive.mission.team.teamId, missionArchive.archive)
.from(missionArchive)
.where(missionArchive.mission.team.teamId.in(teamIds))
.where(missionArchive.member.memberId.in(teamIds),
missionArchive.mission.way.eq(MissionWay.PHOTO))
.orderBy(missionArchive.createdDate.desc())
.limit(14)
.fetch();
Expand Down

0 comments on commit 3666a73

Please sign in to comment.