feat: 포인트 내역 - 쿠폰으로 충전한 포인트 내역도 조회할 수 있도록 포인트 정책과의 조인을 leftJoin으로 변경
This commit is contained in:
		| @@ -63,11 +63,11 @@ class PointGrantLogQueryRepositoryImpl( | ||||
|                 QGetPointRewardStatusResponse( | ||||
|                     pointGrantLog.point.stringValue().concat(" 포인트"), | ||||
|                     formattedDate, | ||||
|                     pointRewardPolicy.title | ||||
|                     pointRewardPolicy.title.coalesce(pointGrantLog.couponName) | ||||
|                 ) | ||||
|             ) | ||||
|             .from(pointGrantLog) | ||||
|             .innerJoin(pointRewardPolicy).on(pointGrantLog.policyId.eq(pointRewardPolicy.id)) | ||||
|             .leftJoin(pointRewardPolicy).on(pointGrantLog.policyId.eq(pointRewardPolicy.id)) | ||||
|             .where(pointGrantLog.memberId.eq(memberId)) | ||||
|             .orderBy(pointGrantLog.id.desc()) | ||||
|             .fetch() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user