From 361b7d031eb8772d6d6dd70ee7b0e99c086411ef Mon Sep 17 00:00:00 2001 From: devSojoong Date: Wed, 22 Feb 2023 18:48:11 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20#42=20-=20=EA=B2=80=EC=83=89=20?= =?UTF-8?q?=EA=B2=B0=EA=B3=BC=20=ED=95=AD=EB=AA=A9=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 상품의 id 도 보내줄 수 있도록 추가함. --- .../creditmarket/dto/response/MainListResponseDTO.java | 1 + .../creditmarket/service/Impl/SearchServiceImpl.java | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/example/creditmarket/dto/response/MainListResponseDTO.java b/src/main/java/com/example/creditmarket/dto/response/MainListResponseDTO.java index b025a68..30b9d80 100644 --- a/src/main/java/com/example/creditmarket/dto/response/MainListResponseDTO.java +++ b/src/main/java/com/example/creditmarket/dto/response/MainListResponseDTO.java @@ -16,5 +16,6 @@ public class MainListResponseDTO { private Double interestRateAvg; // 평균 금리 private String interestType; // 금리 유형 private boolean favorite; // 관심상품 등록 여부 + private String productId; // 상품 id } diff --git a/src/main/java/com/example/creditmarket/service/Impl/SearchServiceImpl.java b/src/main/java/com/example/creditmarket/service/Impl/SearchServiceImpl.java index 3433b0d..4469bc9 100644 --- a/src/main/java/com/example/creditmarket/service/Impl/SearchServiceImpl.java +++ b/src/main/java/com/example/creditmarket/service/Impl/SearchServiceImpl.java @@ -56,7 +56,8 @@ public List 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(), @@ -64,7 +65,8 @@ public List searchResult(String keyword, String loan, Strin resEntityOption.getEntityFProduct().getFproduct_credit_product_type_name(), resEntityOption.getOptions_crdt_grad_avg(), resEntityOption.getOptions_interest_type(), - false + false, + resEntityOption.getEntityFProduct().getFproduct_id() )); } }