feat: 포인트 내역 - 쿠폰으로 충전한 포인트 내역도 조회할 수 있도록 포인트 정책과의 조인을 leftJoin으로 변경

This commit is contained in:
Klaus 2025-06-09 16:36:46 +09:00
parent 54c0322398
commit dcd4497315
1 changed files with 2 additions and 2 deletions

View File

@ -63,11 +63,11 @@ class PointGrantLogQueryRepositoryImpl(
QGetPointRewardStatusResponse( QGetPointRewardStatusResponse(
pointGrantLog.point.stringValue().concat(" 포인트"), pointGrantLog.point.stringValue().concat(" 포인트"),
formattedDate, formattedDate,
pointRewardPolicy.title pointRewardPolicy.title.coalesce(pointGrantLog.couponName)
) )
) )
.from(pointGrantLog) .from(pointGrantLog)
.innerJoin(pointRewardPolicy).on(pointGrantLog.policyId.eq(pointRewardPolicy.id)) .leftJoin(pointRewardPolicy).on(pointGrantLog.policyId.eq(pointRewardPolicy.id))
.where(pointGrantLog.memberId.eq(memberId)) .where(pointGrantLog.memberId.eq(memberId))
.orderBy(pointGrantLog.id.desc()) .orderBy(pointGrantLog.id.desc())
.fetch() .fetch()