test #316

Merged
klaus merged 20 commits from test into main 2025-05-20 06:03:11 +00:00
2 changed files with 5 additions and 0 deletions
Showing only changes of commit affc0cc235 - Show all commits

View File

@ -2,6 +2,7 @@ package kr.co.vividnext.sodalive.admin.point
import com.querydsl.core.annotations.QueryProjection import com.querydsl.core.annotations.QueryProjection
import kr.co.vividnext.sodalive.useraction.ActionType import kr.co.vividnext.sodalive.useraction.ActionType
import kr.co.vividnext.sodalive.useraction.PolicyType
data class GetPointRewardPolicyListResponse( data class GetPointRewardPolicyListResponse(
val totalCount: Int, val totalCount: Int,
@ -11,8 +12,10 @@ data class GetPointRewardPolicyListResponse(
data class GetPointRewardPolicyListItem @QueryProjection constructor( data class GetPointRewardPolicyListItem @QueryProjection constructor(
val id: Long, val id: Long,
val title: String, val title: String,
val policyType: PolicyType,
val actionType: ActionType, val actionType: ActionType,
val threshold: Int, val threshold: Int,
val availableCount: Int,
val pointAmount: Int, val pointAmount: Int,
val startDate: String, val startDate: String,
val endDate: String, val endDate: String,

View File

@ -33,8 +33,10 @@ class PointPolicyQueryRepositoryImpl(
QGetPointRewardPolicyListItem( QGetPointRewardPolicyListItem(
pointRewardPolicy.id, pointRewardPolicy.id,
pointRewardPolicy.title, pointRewardPolicy.title,
pointRewardPolicy.policyType,
pointRewardPolicy.actionType, pointRewardPolicy.actionType,
pointRewardPolicy.threshold, pointRewardPolicy.threshold,
pointRewardPolicy.availableCount,
pointRewardPolicy.pointAmount, pointRewardPolicy.pointAmount,
getFormattedDate(pointRewardPolicy.startDate), getFormattedDate(pointRewardPolicy.startDate),
getFormattedDate(pointRewardPolicy.endDate), getFormattedDate(pointRewardPolicy.endDate),