diff --git a/src/main/java/cokr/xit/fims/base/web/UserController.java b/src/main/java/cokr/xit/fims/base/web/UserController.java index 15ec069d..2adfdfd2 100644 --- a/src/main/java/cokr/xit/fims/base/web/UserController.java +++ b/src/main/java/cokr/xit/fims/base/web/UserController.java @@ -229,4 +229,11 @@ public class UserController extends cokr.xit.base.user.web.UserController 0); + } } diff --git a/src/main/resources/sql/mapper/base/user-mapper.xml b/src/main/resources/sql/mapper/base/user-mapper.xml index 476bab7d..7b58bad0 100644 --- a/src/main/resources/sql/mapper/base/user-mapper.xml +++ b/src/main/resources/sql/mapper/base/user-mapper.xml @@ -91,7 +91,6 @@ SELECT A.USER_ID USER_ID IN (#{userID}) - AND STTS != 'D' AND STTS = #{status} diff --git a/src/main/webapp/WEB-INF/jsp/include/top.jsp b/src/main/webapp/WEB-INF/jsp/include/top.jsp index 9908bacf..6656afea 100644 --- a/src/main/webapp/WEB-INF/jsp/include/top.jsp +++ b/src/main/webapp/WEB-INF/jsp/include/top.jsp @@ -136,7 +136,7 @@
  • - + 회원탈퇴 @@ -358,6 +358,24 @@ function fnOpenChangePassword(){ }); } +async function fnCancelAccount(){ + let ok = await confirm2("탈퇴하시겠습니까?"); + if(ok){ + ajax.get({ + url : wctx.url("/user/cancelAccount.do"), + data : { }, + success : (resp) => { + if(resp.saved){ + alert('탈퇴되었습니다.'); + var form = $("
    "); + $("").appendTo(form); + form.appendTo("body").submit(); + } + } + }); + } +} + function showHelp(){ dialog.alert({ content : "문의전화 : 070-4490-74XX" @@ -375,9 +393,7 @@ function remoteRequest(){ window.open("https://www.xit.co.kr/xit-1.exe", '_blank'); } -$("#btnCancelAccount--Top").on("click",function(){ - //TODO : 회원탈퇴 -}); + /* * 보안모드 토글 처리