refactor : 유저 테이블 변경

main
이범준 1 year ago
parent 2ecac4187f
commit 454ef46f43

@ -222,7 +222,6 @@ public interface XitFrameCrudMapper {
public int removeXitUserInfo(XitUserInfoVO vo) throws SQLException; public int removeXitUserInfo(XitUserInfoVO vo) throws SQLException;
/** /**
* <pre> : . * <pre> : .
* -XIT_USER_INFO XitFrameCrudService.findXitUserInfos .
* > JOB_DATA_AUTHOR //업무 데이터 권한 * > JOB_DATA_AUTHOR //업무 데이터 권한
* > USER_MANAGE_AUTHOR //사용자 관리 권한 * > USER_MANAGE_AUTHOR //사용자 관리 권한
* > ELCTRNSANCTN_USE_YN //전자결재 사용 여부 * > ELCTRNSANCTN_USE_YN //전자결재 사용 여부
@ -237,7 +236,6 @@ public interface XitFrameCrudMapper {
public List<XitUserInfoVO> findsXitUserInfoWithEtcOption(XitUserInfoVO vo) throws SQLException; public List<XitUserInfoVO> findsXitUserInfoWithEtcOption(XitUserInfoVO vo) throws SQLException;
/** /**
* <pre> : . * <pre> : .
* -XIT_USER_INFO XitFrameCrudService.findXitUserInfo .
* > JOB_DATA_AUTHOR //업무 데이터 권한 * > JOB_DATA_AUTHOR //업무 데이터 권한
* > USER_MANAGE_AUTHOR //사용자 관리 권한 * > USER_MANAGE_AUTHOR //사용자 관리 권한
* > ELCTRNSANCTN_USE_YN //전자결재 사용 여부 * > ELCTRNSANCTN_USE_YN //전자결재 사용 여부

@ -4450,7 +4450,6 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
/** /**
* 2020.11.05. * 2020.11.05.
* or * or
* -: XIT_USER_INFO
* > JOB_DATA_AUTHOR //업무 데이터 권한 * > JOB_DATA_AUTHOR //업무 데이터 권한
* > USER_MANAGE_AUTHOR //사용자 관리 권한 * > USER_MANAGE_AUTHOR //사용자 관리 권한
* > ELCTRNSANCTN_USE_YN //전자결재 사용 여부 * > ELCTRNSANCTN_USE_YN //전자결재 사용 여부
@ -4492,7 +4491,6 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
/** /**
* 2020.11.05. * 2020.11.05.
* or * or
* -: XIT_USER_INFO
* > JOB_DATA_AUTHOR //업무 데이터 권한 * > JOB_DATA_AUTHOR //업무 데이터 권한
* > USER_MANAGE_AUTHOR //사용자 관리 권한 * > USER_MANAGE_AUTHOR //사용자 관리 권한
* > ELCTRNSANCTN_USE_YN //전자결재 사용 여부 * > ELCTRNSANCTN_USE_YN //전자결재 사용 여부
@ -4600,7 +4598,6 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
/** /**
* 2020.11.05. * 2020.11.05.
* or * or
* -: XIT_USER_INFO "사용자기타옵션" .
* > JOB_DATA_AUTHOR //업무 데이터 권한 * > JOB_DATA_AUTHOR //업무 데이터 권한
* > USER_MANAGE_AUTHOR //사용자 관리 권한 * > USER_MANAGE_AUTHOR //사용자 관리 권한
* > ELCTRNSANCTN_USE_YN //전자결재 사용 여부 * > ELCTRNSANCTN_USE_YN //전자결재 사용 여부

@ -2245,7 +2245,7 @@
,USER_KEY ,USER_KEY
,CRTFC_DN ,CRTFC_DN
,REG_DT ,REG_DT
FROM XIT_USER_INFO FROM tb_user
WHERE 1=1 WHERE 1=1
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_id )">AND USER_ID = #{user_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_id )">AND USER_ID = #{user_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(org_id )">AND ORG_ID = #{org_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(org_id )">AND ORG_ID = #{org_id }</if>
@ -2298,7 +2298,7 @@
,USER_KEY ,USER_KEY
,CRTFC_DN ,CRTFC_DN
,REG_DT ,REG_DT
FROM XIT_USER_INFO FROM tb_user
WHERE 1=1 WHERE 1=1
AND USER_ID = #{user_id} AND USER_ID = #{user_id}
</select> </select>
@ -2306,7 +2306,7 @@
/** addXitUserInfo */ /** addXitUserInfo */
/** 사용자정보 등록 */ /** 사용자정보 등록 */
INSERT INSERT
INTO xit_user_info( INTO tb_user(
user_id user_id
, org_id , org_id
, user_nm , user_nm
@ -2330,6 +2330,9 @@
, stts , stts
, user_key , user_key
, crtfc_dn , crtfc_dn
, lock_yn
, lock_cnt
, use_yn
, REG_DT , REG_DT
) VALUES ( ) VALUES (
#{userId} #{userId}
@ -2355,13 +2358,16 @@
, #{stts} , #{stts}
, #{userKey} , #{userKey}
, #{crtfcDn} , #{crtfcDn}
, 'N'
, 0
, 'Y'
, NOW() , NOW()
) )
</insert> </insert>
<update id="modifyXitUserInfo"> <update id="modifyXitUserInfo">
/** modifyXitUserInfo */ /** modifyXitUserInfo */
/** 사용자정보 수정 */ /** 사용자정보 수정 */
UPDATE XIT_USER_INFO UPDATE tb_user
SET SET
REG_DT = REG_DT REG_DT = REG_DT
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(org_id )">,ORG_ID = #{org_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(org_id )">,ORG_ID = #{org_id }</if>
@ -2392,7 +2398,7 @@
<delete id="removeXitUserInfo"> <delete id="removeXitUserInfo">
/** removeXitUserInfo */ /** removeXitUserInfo */
/** 사용자정보 삭제 */ /** 사용자정보 삭제 */
DELETE FROM XIT_USER_INFO DELETE FROM tb_user
WHERE 1=1 WHERE 1=1
AND USER_ID = #{user_id} AND USER_ID = #{user_id}
</delete> </delete>
@ -2427,7 +2433,7 @@
,B.USER_MANAGE_AUTHOR ,B.USER_MANAGE_AUTHOR
,B.ELCTRNSANCTN_USE_YN ,B.ELCTRNSANCTN_USE_YN
,B.JOB_CONFM_AUTHOR_YN ,B.JOB_CONFM_AUTHOR_YN
FROM XIT_USER_INFO A FROM tb_user A
LEFT JOIN XIT_USER_ETC_OPTION B ON A.USER_ID=B.USER_ID LEFT JOIN XIT_USER_ETC_OPTION B ON A.USER_ID=B.USER_ID
WHERE 1=1 WHERE 1=1
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_id )">AND A.USER_ID = #{user_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_id )">AND A.USER_ID = #{user_id }</if>
@ -2489,7 +2495,7 @@
,B.USER_MANAGE_AUTHOR ,B.USER_MANAGE_AUTHOR
,B.ELCTRNSANCTN_USE_YN ,B.ELCTRNSANCTN_USE_YN
,B.JOB_CONFM_AUTHOR_YN ,B.JOB_CONFM_AUTHOR_YN
FROM XIT_USER_INFO A FROM tb_user A
LEFT JOIN XIT_USER_ETC_OPTION B ON A.USER_ID=B.USER_ID LEFT JOIN XIT_USER_ETC_OPTION B ON A.USER_ID=B.USER_ID
WHERE 1=1 WHERE 1=1
AND A.USER_ID = #{userId } AND A.USER_ID = #{userId }

@ -99,7 +99,7 @@
/** 장기미접속 사용자 조회 */ /** 장기미접속 사용자 조회 */
SELECT A.USER_ID SELECT A.USER_ID
,A.USER_KEY ,A.USER_KEY
FROM XIT_USER_INFO A FROM tb_user A
LEFT OUTER JOIN ( LEFT OUTER JOIN (
/** 현재일 기준 일정기간 내 접속 로그 정보 */ /** 현재일 기준 일정기간 내 접속 로그 정보 */
SELECT DISTINCT CONECT_ID AS "USER_KEY" SELECT DISTINCT CONECT_ID AS "USER_KEY"

@ -19,7 +19,7 @@
, user_nm user_nm , user_nm user_nm
, grp_id , grp_id
, user_key , user_key
FROM xit_user_info ) xui FROM tb_user ) xui
LEFT OUTER JOIN xit_user_scrty_setup uss LEFT OUTER JOIN xit_user_scrty_setup uss
ON xui.user_key = uss.scrty_setup_trget_id ON xui.user_key = uss.scrty_setup_trget_id
LEFT OUTER JOIN tb_cmn_code cdc LEFT OUTER JOIN tb_cmn_code cdc

@ -3,7 +3,7 @@
<mapper namespace="kr.xit.fims.framework.biz.mng.auth.dao.AuthHierarchyMgtMapper"> <mapper namespace="kr.xit.fims.framework.biz.mng.auth.dao.AuthHierarchyMgtMapper">
<!-- ************************************************************************************************************* <!-- *************************************************************************************************************
* xit_user_info : 업무사용자 정보 * xit_author_info : 권한 정보
************************************************************************************************************** --> ************************************************************************************************************** -->
<select id="selectAuthHierarchies" resultType="kr.xit.fims.framework.biz.mng.auth.XitAuthHierarchyMngVO"> <select id="selectAuthHierarchies" resultType="kr.xit.fims.framework.biz.mng.auth.XitAuthHierarchyMngVO">
SELECT author_code SELECT author_code

@ -32,7 +32,7 @@
AS REG_YN AS REG_YN
,MDFR ,MDFR
,MDFCN_DT ,MDFCN_DT
FROM XIT_USER_INFO A FROM tb_user A
LEFT OUTER JOIN XIT_USER_ABSNCE B ON A.USER_ID = B.USER_ID LEFT OUTER JOIN XIT_USER_ABSNCE B ON A.USER_ID = B.USER_ID
) X ) X
</sql> </sql>

@ -20,7 +20,7 @@
,B.JOB_CONFM_AUTHOR_YN AS "jobConfmAuthorYn" ,B.JOB_CONFM_AUTHOR_YN AS "jobConfmAuthorYn"
</sql> </sql>
<sql id="findList_FROM"> <sql id="findList_FROM">
FROM XIT_USER_INFO A FROM tb_user A
LEFT JOIN XIT_USER_ETC_OPTION B ON A.USER_ID=B.USER_ID LEFT JOIN XIT_USER_ETC_OPTION B ON A.USER_ID=B.USER_ID
</sql> </sql>
<sql id="findList_WHERE"> <sql id="findList_WHERE">

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

Loading…
Cancel
Save