fix(can): 캔 사용 내역 조회 DISTINCT 오류를 수정한다

This commit is contained in:
2026-03-16 15:46:37 +09:00
parent 8cf1ef5c69
commit 9007bd6593
4 changed files with 21 additions and 1 deletions

View File

@@ -91,6 +91,7 @@ class CanQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) : CanQue
return queryFactory
.select(
QUseCanQueryDto(
useCan.id,
useCan.canUsage,
useCan.can,
useCan.rewardCan,

View File

@@ -5,6 +5,7 @@ import kr.co.vividnext.sodalive.can.use.CanUsage
import java.time.LocalDateTime
data class UseCanQueryDto @QueryProjection constructor(
val id: Long,
val canUsage: CanUsage,
val can: Int,
val rewardCan: Int,

View File

@@ -145,9 +145,11 @@ class CanServiceTest {
audioContentTitle: String? = null,
communityPostMemberNickname: String? = null,
auditionTitle: String? = null,
characterName: String? = null
characterName: String? = null,
id: Long = 1L
): UseCanQueryDto {
return UseCanQueryDto(
id = id,
canUsage = usage,
can = can,
rewardCan = rewardCan,