refactor : 유저 테이블 변경

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

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

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

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

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

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

@ -3,7 +3,7 @@
<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 author_code

@ -32,7 +32,7 @@
AS REG_YN
,MDFR
,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
) X
</sql>

@ -20,7 +20,7 @@
,B.JOB_CONFM_AUTHOR_YN AS "jobConfmAuthorYn"
</sql>
<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
</sql>
<sql id="findList_WHERE">

@ -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>

Loading…
Cancel
Save