|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
<mapper namespace="kr.xit.fims.framework.biz.mng.user.dao.UserMgtMapper">
|
|
|
|
|
|
|
|
|
|
<!-- *************************************************************************************************************
|
|
|
|
|
* xit_user_info : 업무사용자 정보
|
|
|
|
|
* tb_user : 업무사용자 정보
|
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
|
<select id="selectUsers" resultType="kr.xit.fims.framework.biz.mng.user.XitUserInfoVO">
|
|
|
|
|
/* user-mysql-mapper|selectUsers-사용자 목록 조회|julim */
|
|
|
|
@ -18,7 +18,7 @@
|
|
|
|
|
, xui.stts
|
|
|
|
|
, xui.REG_DT
|
|
|
|
|
, cdc.code_val AS sttsNm
|
|
|
|
|
FROM xit_user_info xui
|
|
|
|
|
FROM tb_user xui
|
|
|
|
|
LEFT OUTER JOIN tb_cmn_code cdc
|
|
|
|
|
ON cdc.grp_id = 'XIT013'
|
|
|
|
|
AND xui.stts = cdc.code
|
|
|
|
@ -63,14 +63,14 @@
|
|
|
|
|
, stts
|
|
|
|
|
, REG_DT
|
|
|
|
|
, crtfc_dn
|
|
|
|
|
FROM xit_user_info
|
|
|
|
|
FROM tb_user
|
|
|
|
|
WHERE user_key = #{uniqId}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertUserInfo" parameterType="kr.xit.fims.framework.biz.mng.user.XitUserInfoVO">
|
|
|
|
|
/* user-mysql-mapper|insertUserInfo-사용자정보 등록|julim */
|
|
|
|
|
INSERT
|
|
|
|
|
INTO xit_user_info(
|
|
|
|
|
INTO tb_user(
|
|
|
|
|
user_id
|
|
|
|
|
, org_id
|
|
|
|
|
, user_nm
|
|
|
|
@ -94,6 +94,9 @@
|
|
|
|
|
, stts
|
|
|
|
|
, user_key
|
|
|
|
|
, crtfc_dn
|
|
|
|
|
, LOCK_YN
|
|
|
|
|
, LOCK_CNT
|
|
|
|
|
, USE_YN
|
|
|
|
|
, REG_DT
|
|
|
|
|
) VALUES (
|
|
|
|
|
#{userId}
|
|
|
|
@ -119,13 +122,16 @@
|
|
|
|
|
, #{stts}
|
|
|
|
|
, #{userKey}
|
|
|
|
|
, #{crtfcDn}
|
|
|
|
|
, 'N'
|
|
|
|
|
, 0
|
|
|
|
|
, 'Y'
|
|
|
|
|
, NOW()
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<update id="updateUserInfo" parameterType="kr.xit.fims.framework.biz.mng.user.XitUserInfoVO">
|
|
|
|
|
/* user-mysql-mapper|updateUserInfo-사용자정보 변경|julim */
|
|
|
|
|
UPDATE xit_user_info
|
|
|
|
|
UPDATE tb_user
|
|
|
|
|
<set>
|
|
|
|
|
org_id = IF(org_id = #{orgId}, org_id, #{orgId})
|
|
|
|
|
, user_nm = IF(user_nm = #{userNm}, user_nm, #{userNm})
|
|
|
|
@ -152,7 +158,7 @@
|
|
|
|
|
<delete id="deleteUserInfo" parameterType="string">
|
|
|
|
|
/* user-mysql-mapper|deleteUserInfo-사용자정보 삭제|julim */
|
|
|
|
|
DELETE
|
|
|
|
|
FROM xit_user_info
|
|
|
|
|
FROM tb_user
|
|
|
|
|
WHERE user_id = #{userId}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
@ -164,7 +170,7 @@
|
|
|
|
|
, xui.nstt_cd
|
|
|
|
|
, ueo.user_manage_author
|
|
|
|
|
, ueo.elctrnsanctn_use_yn
|
|
|
|
|
FROM xit_user_info xui
|
|
|
|
|
FROM tb_user xui
|
|
|
|
|
JOIN xit_user_etc_option ueo
|
|
|
|
|
ON xui.user_id = ueo.user_id
|
|
|
|
|
WHERE xui.user_id = #{userId}
|
|
|
|
@ -389,7 +395,7 @@
|
|
|
|
|
, nstt_cd
|
|
|
|
|
, stts
|
|
|
|
|
, user_key
|
|
|
|
|
FROM xit_user_info
|
|
|
|
|
FROM tb_user
|
|
|
|
|
WHERE user_id = #{userId}
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|