From 977def942e6fa2b35ed52329004431f5e3bf6067 Mon Sep 17 00:00:00 2001 From: Soyeon-Cha <7103sy@naver.com> Date: Mon, 17 Jun 2024 17:28:07 +0900 Subject: [PATCH] =?UTF-8?q?style:=20=ED=95=84=EC=9A=94=20=EC=97=86?= =?UTF-8?q?=EB=8A=94=20=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Ingredient/service/IngredientService.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/main/java/CookSave/CookSaveback/Ingredient/service/IngredientService.java b/src/main/java/CookSave/CookSaveback/Ingredient/service/IngredientService.java index 6369ae0..fab1a44 100644 --- a/src/main/java/CookSave/CookSaveback/Ingredient/service/IngredientService.java +++ b/src/main/java/CookSave/CookSaveback/Ingredient/service/IngredientService.java @@ -87,19 +87,17 @@ public void updateIngredients(Member member, List updateReques existIngs.add(0); } - // member가 가지고 있는 ingredient들 모두에 대해서 돌아야 됨 + // member가 가지고 있는 모든 ingredient들을 dto와 비교 for (int i=0; i ingredientId가 같은 dto 존재"); // 업데이트 할 iconId, amount 값 불러오기 Integer iconId = updateRequestDtos.get(j).getIconId(); @@ -110,9 +108,6 @@ public void updateIngredients(Member member, List updateReques ingredients.get(i).updateIngredient(icon, amount); ingredientRepository.save(ingredients.get(i)); } - else{ - System.out.println("-> 다름"); - } } }