From 76a89d8c0c2aeaeadc620750b01129be63e19fe6 Mon Sep 17 00:00:00 2001 From: ahah525 Date: Mon, 7 Nov 2022 13:16:35 +0900 Subject: [PATCH] =?UTF-8?q?#29=20-=20Feat:=20=EC=B6=9C=EA=B8=88=20?= =?UTF-8?q?=EA=B3=84=EC=A2=8C=20=EC=A0=95=EB=B3=B4=EA=B0=80=20=EC=A1=B4?= =?UTF-8?q?=EC=9E=AC=ED=95=98=EC=A7=80=20=EC=95=8A=EC=9C=BC=EB=A9=B4=20?= =?UTF-8?q?=EC=B6=9C=EA=B8=88=20=EA=B3=84=EC=A2=8C=20=EA=B4=80=EB=A6=AC=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=EB=A1=9C=20=EB=A6=AC=EB=8B=A4?= =?UTF-8?q?=EC=9D=B4=EB=A0=89=ED=8A=B8,=20=EA=B4=80=EB=A6=AC=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=EC=97=90=20=EC=B6=9C=EA=B8=88=20=EC=8B=A0?= =?UTF-8?q?=EC=B2=AD=20=EB=B2=84=ED=8A=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mutbooks/app/withdraw/controller/WithdrawController.java | 4 ++++ .../resources/templates/member/manage_withdraw_account.html | 1 + 2 files changed, 5 insertions(+) diff --git a/3Week_Mission/mutbooks/src/main/java/com/example/mutbooks/app/withdraw/controller/WithdrawController.java b/3Week_Mission/mutbooks/src/main/java/com/example/mutbooks/app/withdraw/controller/WithdrawController.java index b409913..560945e 100644 --- a/3Week_Mission/mutbooks/src/main/java/com/example/mutbooks/app/withdraw/controller/WithdrawController.java +++ b/3Week_Mission/mutbooks/src/main/java/com/example/mutbooks/app/withdraw/controller/WithdrawController.java @@ -23,6 +23,10 @@ public class WithdrawController { @GetMapping("/apply") public String showApply(@AuthenticationPrincipal MemberContext memberContext, WithdrawApplyForm withdrawApplyForm, Model model) { Member member = memberService.findByUsername(memberContext.getUsername()); + // 출금 계좌 정보가 존재하지 않으면, 출금 계좌 관리 페이지로 리다이렉트 + if(!member.hasBankInfo()) { + return "redirect:/member/manageWithdrawAccount"; + } model.addAttribute("member", member); return "withdraw/apply"; diff --git a/3Week_Mission/mutbooks/src/main/resources/templates/member/manage_withdraw_account.html b/3Week_Mission/mutbooks/src/main/resources/templates/member/manage_withdraw_account.html index 13769bc..4f9a316 100644 --- a/3Week_Mission/mutbooks/src/main/resources/templates/member/manage_withdraw_account.html +++ b/3Week_Mission/mutbooks/src/main/resources/templates/member/manage_withdraw_account.html @@ -29,6 +29,7 @@

출금계좌 관리

출금계좌 수정 + 출금신청