Skip to content

Commit

Permalink
feat : DenialReasonType 의 null 값 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
LHS-11 committed Dec 26, 2023
1 parent 6a96b92 commit ba2148f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public Page<PolicyListResponseDto> getPolicyList(User user, PolicyListRequestDto
return policyQueryRepository.searchByPaging(user, policyListRequestDto.getSupportPolicyType(), policyListRequestDto.getPolicyType(), null, pageable)
.map(dto -> {
Policy findPolicy = policyRepository.findById(dto.getPolicyId()).get();
dto.updatePolicyApplyDenialReason(PolicyDenialReasonClassifier.getDenialReasonType(user, findPolicy).getText());
DenialReasonType denialReasonType = PolicyDenialReasonClassifier.getDenialReasonType(user, findPolicy);
dto.updatePolicyApplyDenialReason(denialReasonType != null ? denialReasonType.getText() : null);
dto.updatePolicyDateTypeDescription(dto.getPolicyDateType());
dto.updateAreaCode(dto.getAreaCode());
dto.updateCityCode(dto.getCityCode());
Expand Down

0 comments on commit ba2148f

Please sign in to comment.