Skip to content

Commit

Permalink
Merge pull request #56 from Modagbul/feat/mission
Browse files Browse the repository at this point in the history
fix : 반복 미션 조회 수정
  • Loading branch information
seungueonn authored Nov 5, 2023
2 parents 25e5562 + a6ac5e8 commit da75d36
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,18 +172,19 @@ public Optional<List<RepeatMissionBoardRes>> findRepeatMissionArchivesByMemberId
.select(Projections.constructor(RepeatMissionBoardRes.class,
mission.id,
mission.title,
missionArchive.count().coalesce(0L).as("done"),
missionArchive.count.coalesce(0L).as("done"),
mission.number,
mission.way.stringValue()
))
.from(mission)
.leftJoin(mission.missionArchiveList,missionArchive)
.on( missionArchive.member.memberId.eq(memberId),
missionArchive.mission.status.eq(status))
.on( missionArchive.member.memberId.eq(memberId))
.where(
mission.team.teamId.eq(teamId),
mission.type.eq(MissionType.REPEAT)
mission.type.eq(MissionType.REPEAT),
mission.status.eq(MissionStatus.ONGOING)
)

// .groupBy(missionArchive.mission)
.fetch());

Expand Down

0 comments on commit da75d36

Please sign in to comment.