|
|
@ -39,7 +39,8 @@
|
|
|
|
<result property="status" column="STTS"/>
|
|
|
|
<result property="status" column="STTS"/>
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectUsers"><include refid="utility.paging-prefix" />
|
|
|
|
<sql id="selectUsers">
|
|
|
|
|
|
|
|
<include refid="utility.paging-prefix" />
|
|
|
|
SELECT USER_ID
|
|
|
|
SELECT USER_ID
|
|
|
|
, USER_ACNT
|
|
|
|
, USER_ACNT
|
|
|
|
, USER_NM
|
|
|
|
, USER_NM
|
|
|
@ -83,12 +84,15 @@ SELECT USER_ID
|
|
|
|
, STTS
|
|
|
|
, STTS
|
|
|
|
, (SELECT GET_CODE_NM('CMN004', STTS) FROM DUAL) AS STTS_NM
|
|
|
|
, (SELECT GET_CODE_NM('CMN004', STTS) FROM DUAL) AS STTS_NM
|
|
|
|
FROM TB_USER A
|
|
|
|
FROM TB_USER A
|
|
|
|
<where><if test="by != null and term != null">AND ${by} LIKE CONCAT('%', #{term}, '%')</if>
|
|
|
|
<where>
|
|
|
|
|
|
|
|
<if test="by != null and term != null">AND ${by} LIKE CONCAT('%', #{term}, '%')</if>
|
|
|
|
<if test="userIDs != null">USER_ID IN (<foreach collection="userIDs" item="userID" separator=",">#{userID}</foreach>)</if>
|
|
|
|
<if test="userIDs != null">USER_ID IN (<foreach collection="userIDs" item="userID" separator=",">#{userID}</foreach>)</if>
|
|
|
|
<if test="status == null and userIDs == null">AND STTS != 'D'</if>
|
|
|
|
<if test="status == null and userIDs == null">AND STTS != 'D'</if>
|
|
|
|
<if test="status != null">AND STTS = #{status}</if></where>
|
|
|
|
<if test="status != null">AND STTS = #{status}</if>
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
</where>
|
|
|
|
<include refid="utility.paging-suffix" /></sql>
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
|
|
|
|
<include refid="utility.paging-suffix" />
|
|
|
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getUserList" parameterType="map" resultType="dataobject">/* 사용자 목록 조회(userMapper.getUserList) */
|
|
|
|
<select id="getUserList" parameterType="map" resultType="dataobject">/* 사용자 목록 조회(userMapper.getUserList) */
|
|
|
|
<include refid="selectUsers"/></select>
|
|
|
|
<include refid="selectUsers"/></select>
|
|
|
@ -179,7 +183,8 @@ INSERT INTO TB_USER (
|
|
|
|
, #{status}
|
|
|
|
, #{status}
|
|
|
|
)</insert>
|
|
|
|
)</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateUser" parameterType="cokr.xit.base.user.ManagedUser">/* 사용자 정보 수정(userMapper.updateUser) */
|
|
|
|
<update id="updateUser" parameterType="cokr.xit.base.user.ManagedUser">
|
|
|
|
|
|
|
|
/* 사용자 정보 수정(userMapper.updateUser) */
|
|
|
|
UPDATE TB_USER SET
|
|
|
|
UPDATE TB_USER SET
|
|
|
|
USER_NM = #{name}
|
|
|
|
USER_NM = #{name}
|
|
|
|
, PASSWD_HINT = #{passwordHint}
|
|
|
|
, PASSWD_HINT = #{passwordHint}
|
|
|
@ -207,7 +212,8 @@ UPDATE TB_USER SET
|
|
|
|
, MDFR = #{modifiedBy}
|
|
|
|
, MDFR = #{modifiedBy}
|
|
|
|
WHERE USER_ID = #{id}</update>
|
|
|
|
WHERE USER_ID = #{id}</update>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="changePassword" parameterType="map">/* 비밀번호 변경(userMapper.changePassword) */
|
|
|
|
<update id="changePassword" parameterType="map">
|
|
|
|
|
|
|
|
/* 비밀번호 변경(userMapper.changePassword) */
|
|
|
|
UPDATE TB_USER SET
|
|
|
|
UPDATE TB_USER SET
|
|
|
|
PASSWD = CASE USER_ID<foreach collection="userPasswords" item="userPassword" separator=" ">
|
|
|
|
PASSWD = CASE USER_ID<foreach collection="userPasswords" item="userPassword" separator=" ">
|
|
|
|
WHEN #{userPassword.userID} THEN #{userPassword.password}</foreach>
|
|
|
|
WHEN #{userPassword.userID} THEN #{userPassword.password}</foreach>
|
|
|
@ -217,7 +223,8 @@ UPDATE TB_USER SET
|
|
|
|
WHERE USER_ID IN (<foreach collection="userIDs" item="userID" separator=",">#{userID}</foreach>)
|
|
|
|
WHERE USER_ID IN (<foreach collection="userIDs" item="userID" separator=",">#{userID}</foreach>)
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="lockUsers" parameterType="map">/* 사용자 잠김 해제(userMapper.lockUsers) */
|
|
|
|
<update id="lockUsers" parameterType="map">
|
|
|
|
|
|
|
|
/* 사용자 잠김 해제(userMapper.lockUsers) */
|
|
|
|
UPDATE TB_USER SET
|
|
|
|
UPDATE TB_USER SET
|
|
|
|
<if test='lock == true'> LOCK_YN = 'Y'
|
|
|
|
<if test='lock == true'> LOCK_YN = 'Y'
|
|
|
|
, LOCK_CNT = LOCK_CNT + 1
|
|
|
|
, LOCK_CNT = LOCK_CNT + 1
|
|
|
@ -230,7 +237,8 @@ UPDATE TB_USER SET
|
|
|
|
WHERE USER_ID IN (<foreach collection="userIDs" item="userID" separator=",">#{userID}</foreach>)
|
|
|
|
WHERE USER_ID IN (<foreach collection="userIDs" item="userID" separator=",">#{userID}</foreach>)
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="setStatus" parameterType="map">/* 사용자 상태 변경(userMapper.setStatus) */
|
|
|
|
<update id="setStatus" parameterType="map">
|
|
|
|
|
|
|
|
/* 사용자 상태 변경(userMapper.setStatus) */
|
|
|
|
UPDATE TB_USER SET
|
|
|
|
UPDATE TB_USER SET
|
|
|
|
STTS = #{status}
|
|
|
|
STTS = #{status}
|
|
|
|
<if test='"D" == status'>, USE_YN = 'N'</if>
|
|
|
|
<if test='"D" == status'>, USE_YN = 'N'</if>
|
|
|
|