Skip to content

Commit

Permalink
fix : 정책 조회 API 에서 applyFlag, interestFlag 고정값에서 userPolicy 테이블에서 값 가…
Browse files Browse the repository at this point in the history
…져 오도록 수정
  • Loading branch information
LHS-11 committed Jan 2, 2024
1 parent 0b21ea3 commit aa5c4d7
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,16 @@ public Page<PolicyListResponseDto> searchByPaging(User user, SupportPolicyType s
policy.cityCode.stringValue(),
policy.policyDateType,
policy.benefit,
ExpressionUtils.as(Expressions.constant(false), "applyFlag"),
ExpressionUtils.as(Expressions.constant(false), "interestFlag"),
Expressions.cases()
.when(userPolicy.applyFlag.isNull())
.then(false)
.otherwise(userPolicy.applyFlag)
.as("applyFlag"),
Expressions.cases()
.when(userPolicy.interestFlag.isNull())
.then(false)
.otherwise(userPolicy.interestFlag)
.as("interestFlag"),
policy.applicationProcedureContent.as("policyMethodTypeDescription")
)
)
Expand Down

0 comments on commit aa5c4d7

Please sign in to comment.