|
|
|
@ -39,7 +39,8 @@
|
|
|
|
|
<result property="status" column="STTS"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectUsers"><include refid="utility.paging-prefix" />
|
|
|
|
|
<sql id="selectUsers">
|
|
|
|
|
<include refid="utility.paging-prefix" />
|
|
|
|
|
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
|
|
|
|
|
<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="status == null and userIDs == null">AND STTS != 'D'</if>
|
|
|
|
|
<if test="status != null">AND STTS = #{status}</if></where>
|
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
|
<include refid="utility.paging-suffix" /></sql>
|
|
|
|
|
<if test="status != null">AND STTS = #{status}</if>
|
|
|
|
|
</where>
|
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
|
<include refid="utility.paging-suffix" />
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="getUserList" parameterType="map" resultType="dataobject">/* 사용자 목록 조회(userMapper.getUserList) */
|
|
|
|
|
<include refid="selectUsers"/></select>
|
|
|
|
@ -179,7 +183,8 @@ INSERT INTO TB_USER (
|
|
|
|
|
, #{status}
|
|
|
|
|
)</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
|
|
|
|
|
USER_NM = #{name}
|
|
|
|
|
, PASSWD_HINT = #{passwordHint}
|
|
|
|
@ -207,7 +212,8 @@ UPDATE TB_USER SET
|
|
|
|
|
, MDFR = #{modifiedBy}
|
|
|
|
|
WHERE USER_ID = #{id}</update>
|
|
|
|
|
|
|
|
|
|
<update id="changePassword" parameterType="map">/* 비밀번호 변경(userMapper.changePassword) */
|
|
|
|
|
<update id="changePassword" parameterType="map">
|
|
|
|
|
/* 비밀번호 변경(userMapper.changePassword) */
|
|
|
|
|
UPDATE TB_USER SET
|
|
|
|
|
PASSWD = CASE USER_ID<foreach collection="userPasswords" item="userPassword" separator=" ">
|
|
|
|
|
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>)
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<update id="lockUsers" parameterType="map">/* 사용자 잠김 해제(userMapper.lockUsers) */
|
|
|
|
|
<update id="lockUsers" parameterType="map">
|
|
|
|
|
/* 사용자 잠김 해제(userMapper.lockUsers) */
|
|
|
|
|
UPDATE TB_USER SET
|
|
|
|
|
<if test='lock == true'> LOCK_YN = 'Y'
|
|
|
|
|
, 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>)
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<update id="setStatus" parameterType="map">/* 사용자 상태 변경(userMapper.setStatus) */
|
|
|
|
|
<update id="setStatus" parameterType="map">
|
|
|
|
|
/* 사용자 상태 변경(userMapper.setStatus) */
|
|
|
|
|
UPDATE TB_USER SET
|
|
|
|
|
STTS = #{status}
|
|
|
|
|
<if test='"D" == status'>, USE_YN = 'N'</if>
|
|
|
|
|