From ab10e9715d37733ba326a11e49af2a3870f06191 Mon Sep 17 00:00:00 2001 From: saewoo1 Date: Fri, 25 Oct 2024 16:04:15 +0900 Subject: [PATCH] =?UTF-8?q?REFACTOR:=20=EC=9D=BC=EA=B4=84=20=EC=A7=80?= =?UTF-8?q?=EA=B8=89=20=EC=84=9C=EB=B9=84=EC=8A=A4=EB=AA=85=20addBulkCoin?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cabinet/admin/item/service/AdminItemFacadeService.java | 2 +- .../org/ftclub/cabinet/user/service/UserCommandService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/org/ftclub/cabinet/admin/item/service/AdminItemFacadeService.java b/backend/src/main/java/org/ftclub/cabinet/admin/item/service/AdminItemFacadeService.java index 1726c01f5..09d7514fc 100644 --- a/backend/src/main/java/org/ftclub/cabinet/admin/item/service/AdminItemFacadeService.java +++ b/backend/src/main/java/org/ftclub/cabinet/admin/item/service/AdminItemFacadeService.java @@ -67,7 +67,7 @@ public void assignItem(List userIds, Sku sku) { public void assignCoin(List userIds, Sku sku, Long amount) { Item item = itemQueryService.getBySku(sku); LocalDateTime now = LocalDateTime.now(); - userCommandService.addBulkUserCoin(userIds, amount); + userCommandService.addBulkCoin(userIds, amount); itemHistoryCommandService.createCoinAssignHistory(userIds, item.getId(), now, amount); } diff --git a/backend/src/main/java/org/ftclub/cabinet/user/service/UserCommandService.java b/backend/src/main/java/org/ftclub/cabinet/user/service/UserCommandService.java index 54b1f545a..c94c56710 100644 --- a/backend/src/main/java/org/ftclub/cabinet/user/service/UserCommandService.java +++ b/backend/src/main/java/org/ftclub/cabinet/user/service/UserCommandService.java @@ -117,7 +117,7 @@ public void updateCoinAmount(Long userId, Long reward) { user.addCoin(reward); } - public void addBulkUserCoin(List userIds, Long amount) { + public void addBulkCoin(List userIds, Long amount) { userRepository.updateBulkUserCoin(userIds, amount); } }