From af1eaa7db381563d0d25228ca8a30e45deed61eb Mon Sep 17 00:00:00 2001 From: leebj Date: Wed, 26 Jun 2024 18:46:41 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EC=8A=A4=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/sql/mapper/base/user-mapper.xml | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/src/main/resources/sql/mapper/base/user-mapper.xml b/src/main/resources/sql/mapper/base/user-mapper.xml index a0121f28..aafeedb9 100644 --- a/src/main/resources/sql/mapper/base/user-mapper.xml +++ b/src/main/resources/sql/mapper/base/user-mapper.xml @@ -39,7 +39,8 @@ - + + SELECT USER_ID , USER_ACNT , USER_NM @@ -83,12 +84,15 @@ SELECT USER_ID , STTS , (SELECT GET_CODE_NM('CMN004', STTS) FROM DUAL) AS STTS_NM FROM TB_USER A -AND ${by} LIKE CONCAT('%', #{term}, '%') + + AND ${by} LIKE CONCAT('%', #{term}, '%') USER_ID IN (#{userID}) AND STTS != 'D' - AND STTS = #{status} - - + AND STTS = #{status} + + + + @@ -179,7 +183,8 @@ INSERT INTO TB_USER ( , #{status} ) -/* 사용자 정보 수정(userMapper.updateUser) */ + +/* 사용자 정보 수정(userMapper.updateUser) */ UPDATE TB_USER SET USER_NM = #{name} , PASSWD_HINT = #{passwordHint} @@ -207,7 +212,8 @@ UPDATE TB_USER SET , MDFR = #{modifiedBy} WHERE USER_ID = #{id} -/* 비밀번호 변경(userMapper.changePassword) */ + +/* 비밀번호 변경(userMapper.changePassword) */ UPDATE TB_USER SET PASSWD = CASE USER_ID WHEN #{userPassword.userID} THEN #{userPassword.password} @@ -217,7 +223,8 @@ UPDATE TB_USER SET WHERE USER_ID IN (#{userID}) -/* 사용자 잠김 해제(userMapper.lockUsers) */ + +/* 사용자 잠김 해제(userMapper.lockUsers) */ UPDATE TB_USER SET LOCK_YN = 'Y' , LOCK_CNT = LOCK_CNT + 1 @@ -230,7 +237,8 @@ UPDATE TB_USER SET WHERE USER_ID IN (#{userID}) -/* 사용자 상태 변경(userMapper.setStatus) */ + +/* 사용자 상태 변경(userMapper.setStatus) */ UPDATE TB_USER SET STTS = #{status} , USE_YN = 'N'