From 49030cf4c58f344c87cd223391bcbdfb87d68740 Mon Sep 17 00:00:00 2001 From: leebj Date: Tue, 25 Jun 2024 10:13:10 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B9=84=EB=B0=80=EB=B2=88=ED=98=B8=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20=ED=99=94=EB=A9=B4jsp=EB=AA=85=20=EC=88=98?= =?UTF-8?q?=EC=A0=95,=20FimsUserBean=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/base/UserController.java | 20 ------------------ .../fims/base/service/bean/FimsUserBean.java | 15 ------------- .../resources/sql/mapper/base/user-mapper.xml | 8 +++++-- .../user/password.jsp} | 21 ++++++------------- .../WEB-INF/jsp/fims/user/user-info.jsp | 2 +- src/main/webapp/WEB-INF/jsp/include/top.jsp | 2 +- 6 files changed, 14 insertions(+), 54 deletions(-) delete mode 100644 src/main/java/cokr/xit/fims/base/service/bean/FimsUserBean.java rename src/main/webapp/WEB-INF/jsp/{fims/user/password-info.jsp => base/user/password.jsp} (86%) diff --git a/src/main/java/cokr/xit/fims/base/UserController.java b/src/main/java/cokr/xit/fims/base/UserController.java index 0d9abacb..60ecae9e 100644 --- a/src/main/java/cokr/xit/fims/base/UserController.java +++ b/src/main/java/cokr/xit/fims/base/UserController.java @@ -23,9 +23,6 @@ public class UserController extends cokr.xit.base.user.web.UserController/* 사용자 계정 가져오기(userMapper.getUser) */ SELECT * FROM TB_USER - WHERE USER_ACNT = #{account} - AND NSTT_CD = #{institute} + +AND USER_ID = #{userID} +AND USER_ACNT = #{account} + AND NSTT_CD = #{institute} + + SELECT LPAD(NVL(MAX(USER_ID) + 1, 1), 10, '0') NEW_ID FROM TB_USER diff --git a/src/main/webapp/WEB-INF/jsp/fims/user/password-info.jsp b/src/main/webapp/WEB-INF/jsp/base/user/password.jsp similarity index 86% rename from src/main/webapp/WEB-INF/jsp/fims/user/password-info.jsp rename to src/main/webapp/WEB-INF/jsp/base/user/password.jsp index 60126945..b85daa90 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/user/password-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/base/user/password.jsp @@ -72,26 +72,18 @@ return; } - ajax.get({ - url : wctx.url("/user/confirmPassword.do"), - data : { password : $("#password-form input[name='currentPassword']").val() }, - success : (resp) => { - if(resp.result){ - savePassword(); - } else { - dialog.alert("현재 비밀번호가 일치하지 않습니다."); - } - } - }); - + savePassword(); } function savePassword(){ + ajax.post({ url : wctx.url("/user/changePassword.do"), data : { - userID : MY_INFO.id, - password : $("#password-form input[name='password']").val() + userIDs : MY_INFO.id, + password : $("#password-form input[name='password']").val(), + currentPassword : $("#password-form input[name='currentPassword']").val(), + init : false }, success : (resp) => { if(resp.saved){ @@ -102,6 +94,5 @@ } } }); - } \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/fims/user/user-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/user/user-info.jsp index 3050023a..3129827b 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/user/user-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/user/user-info.jsp @@ -112,7 +112,7 @@ -