|
|
|
@ -1464,34 +1464,34 @@
|
|
|
|
|
<select id="findXitOrgnztInfos" resultType="kr.xit.fims.framework.biz.cmm.XitOrgnztInfoVO">
|
|
|
|
|
/** findXitOrgnztInfos */
|
|
|
|
|
/** 조직정보 다건 조회 */
|
|
|
|
|
SELECT ORGNZT_ID
|
|
|
|
|
SELECT ORG_ID
|
|
|
|
|
,ORGNZT_NM
|
|
|
|
|
,DSCRP
|
|
|
|
|
FROM XIT_ORGNZT_INFO
|
|
|
|
|
WHERE 1=1
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(orgnztId)">AND ORGNZT_ID = #{orgnztId}</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(orgId)">AND ORG_ID = #{orgId}</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(orgnztNm)">AND ORGNZT_NM = #{orgnztNm}</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">AND DSCRP = #{dscrp}</if>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="findXitOrgnztInfo" resultType="kr.xit.fims.framework.biz.cmm.XitOrgnztInfoVO">
|
|
|
|
|
/** findXitOrgnztInfo */
|
|
|
|
|
/** 조직정보 조회 */
|
|
|
|
|
SELECT ORGNZT_ID
|
|
|
|
|
SELECT ORG_ID
|
|
|
|
|
,ORGNZT_NM
|
|
|
|
|
,DSCRP
|
|
|
|
|
FROM XIT_ORGNZT_INFO
|
|
|
|
|
WHERE 1=1
|
|
|
|
|
AND ORGNZT_ID = #{orgnztId}
|
|
|
|
|
AND ORG_ID = #{orgId}
|
|
|
|
|
</select>
|
|
|
|
|
<insert id="addXitOrgnztInfo">
|
|
|
|
|
/** addXitOrgnztInfo */
|
|
|
|
|
/** 조직정보 등록 */
|
|
|
|
|
INSERT INTO XIT_ORGNZT_INFO(
|
|
|
|
|
ORGNZT_ID
|
|
|
|
|
ORG_ID
|
|
|
|
|
,ORGNZT_NM
|
|
|
|
|
,DSCRP
|
|
|
|
|
)VALUES(
|
|
|
|
|
#{orgnzt_id }
|
|
|
|
|
#{org_id }
|
|
|
|
|
,#{orgnzt_nm}
|
|
|
|
|
,#{dscrp}
|
|
|
|
|
)
|
|
|
|
@ -1504,14 +1504,14 @@
|
|
|
|
|
ORGNZT_NM = IFNULL(#{orgnztNm}, ORGNZT_NM)
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(dscrp)">,DSCRP = #{dscrp}</if>
|
|
|
|
|
WHERE 1=1
|
|
|
|
|
AND ORGNZT_ID = #{orgnztId}
|
|
|
|
|
AND ORG_ID = #{orgId}
|
|
|
|
|
</update>
|
|
|
|
|
<delete id="removeXitOrgnztInfo">
|
|
|
|
|
/** removeXitOrgnztInfo */
|
|
|
|
|
/** 조직정보 삭제 */
|
|
|
|
|
DELETE FROM XIT_ORGNZT_INFO
|
|
|
|
|
WHERE 1=1
|
|
|
|
|
AND ORGNZT_ID = #{orgnztId}
|
|
|
|
|
AND ORG_ID = #{orgId}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2067,7 +2067,7 @@
|
|
|
|
|
/** 사용자정보변경내역 다건 조회 */
|
|
|
|
|
SELECT USER_ID
|
|
|
|
|
,CHANGE_DE
|
|
|
|
|
,ORGNZT_ID
|
|
|
|
|
,ORG_ID
|
|
|
|
|
,GROUP_ID
|
|
|
|
|
,EMPL_NO
|
|
|
|
|
,SEXDSTN_CODE
|
|
|
|
@ -2087,7 +2087,7 @@
|
|
|
|
|
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(change_de )">AND CHANGE_DE = #{change_de }</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(orgnzt_id )">AND ORGNZT_ID = #{orgnzt_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(group_id )">AND GROUP_ID = #{group_id }</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(empl_no )">AND EMPL_NO = #{empl_no }</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(sexdstn_code )">AND SEXDSTN_CODE = #{sexdstn_code }</if>
|
|
|
|
@ -2109,7 +2109,7 @@
|
|
|
|
|
/** 사용자정보변경내역 조회 */
|
|
|
|
|
SELECT USER_ID
|
|
|
|
|
,CHANGE_DE
|
|
|
|
|
,ORGNZT_ID
|
|
|
|
|
,ORG_ID
|
|
|
|
|
,GROUP_ID
|
|
|
|
|
,EMPL_NO
|
|
|
|
|
,SEXDSTN_CODE
|
|
|
|
@ -2136,7 +2136,7 @@
|
|
|
|
|
INSERT INTO XIT_USER_INFO_CHANGE_DTLS(
|
|
|
|
|
USER_ID
|
|
|
|
|
,CHANGE_DE
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(orgnzt_id )">,ORGNZT_ID </if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(org_id )">,ORG_ID </if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(group_id )">,GROUP_ID </if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(empl_no )">,EMPL_NO </if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(sexdstn_code )">,SEXDSTN_CODE </if>
|
|
|
|
@ -2155,7 +2155,7 @@
|
|
|
|
|
)VALUES(
|
|
|
|
|
#{user_id }
|
|
|
|
|
,DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(orgnzt_id )">,#{orgnzt_id }</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(org_id )">,#{org_id }</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(group_id )">,#{group_id }</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(empl_no )">,#{empl_no }</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(sexdstn_code )">,#{sexdstn_code }</if>
|
|
|
|
@ -2179,7 +2179,7 @@
|
|
|
|
|
UPDATE XIT_USER_INFO_CHANGE_DTLS
|
|
|
|
|
SET
|
|
|
|
|
CHANGE_DE = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(orgnzt_id )">,ORGNZT_ID = #{orgnzt_id }</if>
|
|
|
|
|
<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(group_id )">,GROUP_ID = #{group_id }</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(empl_no )">,EMPL_NO = #{empl_no }</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(sexdstn_code )">,SEXDSTN_CODE = #{sexdstn_code }</if>
|
|
|
|
@ -2222,7 +2222,7 @@
|
|
|
|
|
/** findXitUserInfos */
|
|
|
|
|
/** 사용자정보 다건 조회 */
|
|
|
|
|
SELECT USER_ID
|
|
|
|
|
,ORGNZT_ID
|
|
|
|
|
,ORG_ID
|
|
|
|
|
,USER_NM
|
|
|
|
|
,PASSWORD
|
|
|
|
|
,EMPL_NO
|
|
|
|
@ -2248,7 +2248,7 @@
|
|
|
|
|
FROM XIT_USER_INFO
|
|
|
|
|
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(orgnzt_id )">AND ORGNZT_ID = #{orgnzt_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(user_nm )">AND USER_NM = #{user_nm }</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(password )">AND PASSWORD = #{password }</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(empl_no )">AND EMPL_NO = #{empl_no }</if>
|
|
|
|
@ -2275,7 +2275,7 @@
|
|
|
|
|
/** findXitUserInfo */
|
|
|
|
|
/** 사용자정보 조회 */
|
|
|
|
|
SELECT USER_ID
|
|
|
|
|
,ORGNZT_ID
|
|
|
|
|
,ORG_ID
|
|
|
|
|
,USER_NM
|
|
|
|
|
,PASSWORD
|
|
|
|
|
,EMPL_NO
|
|
|
|
@ -2308,7 +2308,7 @@
|
|
|
|
|
INSERT
|
|
|
|
|
INTO xit_user_info(
|
|
|
|
|
user_id
|
|
|
|
|
, orgnzt_id
|
|
|
|
|
, org_id
|
|
|
|
|
, user_nm
|
|
|
|
|
, password
|
|
|
|
|
, empl_no
|
|
|
|
@ -2333,7 +2333,7 @@
|
|
|
|
|
, REG_DT
|
|
|
|
|
) VALUES (
|
|
|
|
|
#{userId}
|
|
|
|
|
, #{orgnztId}
|
|
|
|
|
, #{orgId}
|
|
|
|
|
, #{userNm}
|
|
|
|
|
, #{password}
|
|
|
|
|
, #{emplNo}
|
|
|
|
@ -2364,7 +2364,7 @@
|
|
|
|
|
UPDATE XIT_USER_INFO
|
|
|
|
|
SET
|
|
|
|
|
REG_DT = REG_DT
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(orgnzt_id )">,ORGNZT_ID = #{orgnzt_id }</if>
|
|
|
|
|
<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(user_nm )">,USER_NM = #{user_nm }</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(password )">,PASSWORD = #{password }</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(empl_no )">,EMPL_NO = #{empl_no }</if>
|
|
|
|
@ -2400,7 +2400,7 @@
|
|
|
|
|
/** findsXitUserInfoWithEtcOption */
|
|
|
|
|
/** 사용자의 정보 및 기타옵션 정보 목록 조회 */
|
|
|
|
|
SELECT A.USER_ID
|
|
|
|
|
,A.ORGNZT_ID
|
|
|
|
|
,A.ORG_ID
|
|
|
|
|
,A.USER_NM
|
|
|
|
|
,A.PASSWORD
|
|
|
|
|
,A.EMPL_NO
|
|
|
|
@ -2431,7 +2431,7 @@
|
|
|
|
|
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>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(orgnzt_id )">AND A.ORGNZT_ID = #{orgnzt_id }</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(org_id )">AND A.ORG_ID = #{org_id }</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_nm )">AND A.USER_NM = #{user_nm }</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(password )">AND A.PASSWORD = #{password }</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(empl_no )">AND A.EMPL_NO = #{empl_no }</if>
|
|
|
|
@ -2462,7 +2462,7 @@
|
|
|
|
|
/** findXitUserInfoWithEtcOption */
|
|
|
|
|
/** 사용자의 정보 및 기타옵션 정보 조회 */
|
|
|
|
|
SELECT A.USER_ID
|
|
|
|
|
,A.ORGNZT_ID
|
|
|
|
|
,A.ORG_ID
|
|
|
|
|
,A.USER_NM
|
|
|
|
|
,A.PASSWORD
|
|
|
|
|
,A.EMPL_NO
|
|
|
|
|