Skip to content

Commit

Permalink
Feat: fastcampus-mini#42 - 검색 결과 항목 추가
Browse files Browse the repository at this point in the history
상품의 id 도 보내줄 수 있도록 추가함.
  • Loading branch information
devSojoong committed Feb 22, 2023
1 parent 4273795 commit 361b7d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ public class MainListResponseDTO {
private Double interestRateAvg; // 평균 금리
private String interestType; // 금리 유형
private boolean favorite; // 관심상품 등록 여부
private String productId; // 상품 id

}
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,17 @@ public List<MainListResponseDTO> searchResult(String keyword, String loan, Strin
resEntityOption.getEntityFProduct().getFproduct_credit_product_type_name(),
resEntityOption.getOptions_crdt_grad_avg(),
resEntityOption.getOptions_interest_type(),
true
true,
resEntityOption.getEntityFProduct().getFproduct_id()
));
} else {
mainListResponseListDto.add(i, new MainListResponseDTO(resEntityOption.getEntityFProduct().getFproduct_company_name(),
resEntityOption.getEntityFProduct().getFproduct_name(),
resEntityOption.getEntityFProduct().getFproduct_credit_product_type_name(),
resEntityOption.getOptions_crdt_grad_avg(),
resEntityOption.getOptions_interest_type(),
false
false,
resEntityOption.getEntityFProduct().getFproduct_id()
));
}
}
Expand Down

0 comments on commit 361b7d0

Please sign in to comment.