From a7ad153373c18897ed4bf30cf8f8391ff7e045fd Mon Sep 17 00:00:00 2001 From: SEOB Date: Tue, 23 Jul 2024 17:08:10 +0900 Subject: [PATCH] =?UTF-8?q?SB-203=20(!HOTFIX)=20:=20=EC=83=81=ED=92=88=20I?= =?UTF-8?q?D=20=EB=A6=AC=EC=8A=A4=ED=8A=B8=EB=A1=9C=20=EC=83=81=ED=83=9C?= =?UTF-8?q?=20=ED=99=95=EC=9D=B8=ED=95=98=EB=8A=94=20=EB=A9=94=EC=84=9C?= =?UTF-8?q?=EB=93=9C=20=ED=98=B8=EC=B6=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SB-203 (!HOTFIX) : 상품 ID 리스트로 상태 확인하는 메서드 호출 수정 1. 잘못된 메서드 호출을 checkStoredGoodsAndStatusWithThrowBy(Long, GoodsStatus)에서 checkStoredGoodsAndStatusWithThrowBy(List, GoodsStatus)로 수정. - checkStoredGoodsAndStatusWithThrowBy(Long, GoodsStatus) 는 receivingId 로 조회하는 메서드다. --- .../warehouse/domain/usedgoods/business/UsedGoodsBusiness.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warehouse/src/main/java/warehouse/domain/usedgoods/business/UsedGoodsBusiness.java b/warehouse/src/main/java/warehouse/domain/usedgoods/business/UsedGoodsBusiness.java index fa37f618..d2110656 100644 --- a/warehouse/src/main/java/warehouse/domain/usedgoods/business/UsedGoodsBusiness.java +++ b/warehouse/src/main/java/warehouse/domain/usedgoods/business/UsedGoodsBusiness.java @@ -39,7 +39,7 @@ public class UsedGoodsBusiness { public TransformUsedGoodsResponse transformUsedGoods(Long goodsId) { // GoodsStatus 가 STORAGE 가 아닌 경우 예외 - goodsService.checkStoredGoodsAndStatusWithThrowBy(goodsId, GoodsStatus.STORAGE); + goodsService.checkStoredGoodsAndStatusWithThrowBy(List.of(goodsId), GoodsStatus.STORAGE); // GoodsStatus 를 USED 로 변경 goodsService.setGoodsStatusBy(List.of(goodsId), GoodsStatus.USED);