From 2b9c0bcec60aff656818dfe63f7d898e1b2ec8ae Mon Sep 17 00:00:00 2001 From: Seo Chanhyeok Date: Thu, 23 Nov 2023 01:51:06 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20"=EC=B6=94=EA=B0=80=20=EC=98=B7?= =?UTF-8?q?=EC=9E=A5=20=EC=A0=95=EB=A6=AC=20=EC=A3=BC=EB=AC=B8=20=EC=B7=A8?= =?UTF-8?q?=EC=86=8C=20=EC=8B=9C=20=EC=8A=AC=EB=9E=99=20=EC=95=8C=EB=A6=BC?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/sellorder/application/SellOrderService.java | 2 ++ .../repick/repickserver/infra/slack/mapper/SlackMapper.java | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/main/java/repick/repickserver/domain/sellorder/application/SellOrderService.java b/src/main/java/repick/repickserver/domain/sellorder/application/SellOrderService.java index 43cb648..193ae79 100644 --- a/src/main/java/repick/repickserver/domain/sellorder/application/SellOrderService.java +++ b/src/main/java/repick/repickserver/domain/sellorder/application/SellOrderService.java @@ -243,6 +243,8 @@ public Boolean cancelSellOrder(String token, SellOrderUpdateRequest request) { SellOrder sellOrder = findByOrderNumber(request.getOrderNumber()); sellOrderValidator.validateIsSellOrderStateRequested(sellOrder); sellOrderValidator.validateSellOrderMatchesMemberId(sellOrder, member.getId()); + + slackNotifier.sendSellOrderSlackNotification(slackMapper.toSellOrderCancelSlackNoticeString(sellOrder)); sellOrderStateRepository.save(SellOrderState.of(sellOrder, CANCELLED)); return true; diff --git a/src/main/java/repick/repickserver/infra/slack/mapper/SlackMapper.java b/src/main/java/repick/repickserver/infra/slack/mapper/SlackMapper.java index 3943609..eccbc27 100644 --- a/src/main/java/repick/repickserver/infra/slack/mapper/SlackMapper.java +++ b/src/main/java/repick/repickserver/infra/slack/mapper/SlackMapper.java @@ -55,4 +55,7 @@ public String toSellOrderBagReadySlackNoticeString(SellOrder sellOrder) { "리픽백 수량: " + sellOrder.getBagQuantity(); } + public String toSellOrderCancelSlackNoticeString(SellOrder sellOrder) { + return "옷장 정리 주문 신청 취소 : " + sellOrder.getOrderNumber(); + } }