|
|
@ -2,6 +2,9 @@
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="kr.xit.framework.biz.mng.user.mapper.UserMgtMapper">
|
|
|
|
<mapper namespace="kr.xit.framework.biz.mng.user.mapper.UserMgtMapper">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- *************************************************************************************************************
|
|
|
|
|
|
|
|
* xit_user_info : 업무사용자 정보
|
|
|
|
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
<select id="selectUsers" resultType="kr.xit.framework.biz.cmm.model.XitUserInfoVO">
|
|
|
|
<select id="selectUsers" resultType="kr.xit.framework.biz.cmm.model.XitUserInfoVO">
|
|
|
|
/* user-mysql-mapper|selectUsers-사용자 목록 조회|julim */
|
|
|
|
/* user-mysql-mapper|selectUsers-사용자 목록 조회|julim */
|
|
|
|
SELECT xui.esntl_id AS uniqId
|
|
|
|
SELECT xui.esntl_id AS uniqId
|
|
|
@ -23,12 +26,12 @@
|
|
|
|
AND xui.user_sttus_code = cdc.code
|
|
|
|
AND xui.user_sttus_code = cdc.code
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(sbscrbSttus)">
|
|
|
|
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(sbscrbSttus)">
|
|
|
|
AND xui.user_sttus_code LIKE #{sbscrbSttus}||'%'
|
|
|
|
AND xui.user_sttus_code = #{sbscrbSttus}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeyword)">
|
|
|
|
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeyword)">
|
|
|
|
<choose>
|
|
|
|
<choose>
|
|
|
|
<when test="searchCondition eq 'userId'">
|
|
|
|
<when test="searchCondition eq 'userId'">
|
|
|
|
AND xui.user_id LIKE #{searchKeyword}
|
|
|
|
AND INSTR(xui.user_id, #{searchKeyword}) > 0
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<when test="searchCondition eq 'userNm'">
|
|
|
|
<when test="searchCondition eq 'userNm'">
|
|
|
|
AND INSTR(xui.user_nm, #{searchKeyword}) > 0
|
|
|
|
AND INSTR(xui.user_nm, #{searchKeyword}) > 0
|
|
|
@ -39,7 +42,6 @@
|
|
|
|
ORDER BY sbscrb_de DESC
|
|
|
|
ORDER BY sbscrb_de DESC
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectUser" parameterType="string" resultType="kr.xit.framework.biz.cmm.model.XitUserInfoVO">
|
|
|
|
<select id="selectUser" parameterType="string" resultType="kr.xit.framework.biz.cmm.model.XitUserInfoVO">
|
|
|
|
/* user-mysql-mapper|selectUser-사용자 정보 조회|julim */
|
|
|
|
/* user-mysql-mapper|selectUser-사용자 정보 조회|julim */
|
|
|
|
SELECT esntl_id AS uniqId
|
|
|
|
SELECT esntl_id AS uniqId
|
|
|
@ -165,12 +167,11 @@
|
|
|
|
WHERE user_id = #{userId}
|
|
|
|
WHERE user_id = #{userId}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="removeXitUserInfo">
|
|
|
|
<delete id="deleteUserInfo" parameterType="string">
|
|
|
|
/** removeXitUserInfo */
|
|
|
|
/* user-mysql-mapper|deleteUserInfo-사용자정보 삭제|julim */
|
|
|
|
/** 사용자정보 삭제 */
|
|
|
|
DELETE
|
|
|
|
DELETE FROM XIT_USER_INFO
|
|
|
|
FROM xit_user_info
|
|
|
|
WHERE 1=1
|
|
|
|
WHERE user_id = #{userId}
|
|
|
|
AND USER_ID = #{user_id}
|
|
|
|
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectCheckUserInfo" parameterType="string" resultType="caseMap">
|
|
|
|
<select id="selectCheckUserInfo" parameterType="string" resultType="caseMap">
|
|
|
@ -183,6 +184,33 @@
|
|
|
|
WHERE xui.user_id = #{userId}
|
|
|
|
WHERE xui.user_id = #{userId}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- *************************************************************************************************************
|
|
|
|
|
|
|
|
* xit_gnrl_mber : 일반사용자 정보
|
|
|
|
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
|
|
|
|
<delete id="deleteGnrlMber" parameterType="string">
|
|
|
|
|
|
|
|
/* user-mysql-mapper|deleteGnrlMber-일반사용자정보 삭제|julim */
|
|
|
|
|
|
|
|
DELETE
|
|
|
|
|
|
|
|
FROM xit_gnrl_mber
|
|
|
|
|
|
|
|
WHERE mber_id = #{userId}
|
|
|
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- *************************************************************************************************************
|
|
|
|
|
|
|
|
* xit_entrprs_mber : 기업사용자 정보
|
|
|
|
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
|
|
|
|
<delete id="delectEntrprsMber" parameterType="string">
|
|
|
|
|
|
|
|
/* user-mysql-mapper|delectEntrprsMber-기업사용자정보 삭제|julim */
|
|
|
|
|
|
|
|
DELETE
|
|
|
|
|
|
|
|
FROM xit_entrprs_mber
|
|
|
|
|
|
|
|
WHERE entrprs_mber_id = #{userId}
|
|
|
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- *************************************************************************************************************
|
|
|
|
|
|
|
|
* xit_author_group_info : 권한그룹 정보
|
|
|
|
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
<select id="selectAuthorGroupInfo" parameterType="map" resultType="caseMap">
|
|
|
|
<select id="selectAuthorGroupInfo" parameterType="map" resultType="caseMap">
|
|
|
|
/* user-mysql-mapper|selectAuthorGroupInfo-권한그룹정보 조회|julim */
|
|
|
|
/* user-mysql-mapper|selectAuthorGroupInfo-권한그룹정보 조회|julim */
|
|
|
|
SELECT group_id
|
|
|
|
SELECT group_id
|
|
|
@ -212,9 +240,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- *************************************************************************************************************
|
|
|
|
|
|
|
|
* xit_user_scrty_setup : 사용자 보안 설정
|
|
|
|
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
<select id="selectUserScrtySetups" parameterType="kr.xit.framework.biz.cmm.model.XitUserScrtySetupVO" resultType="kr.xit.framework.biz.cmm.model.XitUserScrtySetupVO">
|
|
|
|
<select id="selectUserScrtySetups" parameterType="kr.xit.framework.biz.cmm.model.XitUserScrtySetupVO" resultType="kr.xit.framework.biz.cmm.model.XitUserScrtySetupVO">
|
|
|
|
/* user-mysql-mapper|selectUserScrtySetups-사용자보안설정 목록 조회|julim */
|
|
|
|
/* user-mysql-mapper|selectUserScrtySetups-사용자보안설정 목록 조회|julim */
|
|
|
|
SELECT scrty_setup_trget_id
|
|
|
|
SELECT scrty_setup_trget_id
|
|
|
@ -274,6 +302,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- *************************************************************************************************************
|
|
|
|
|
|
|
|
* xit_user_etc_option : 사용자 기타 옵션
|
|
|
|
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
<select id="selectUserEtcOptions" parameterType="kr.xit.framework.biz.cmm.model.XitUserEtcOptionVO" resultType="kr.xit.framework.biz.cmm.model.XitUserEtcOptionVO">
|
|
|
|
<select id="selectUserEtcOptions" parameterType="kr.xit.framework.biz.cmm.model.XitUserEtcOptionVO" resultType="kr.xit.framework.biz.cmm.model.XitUserEtcOptionVO">
|
|
|
|
/* user-mysql-mapper|selectUserEtcOptions-사용자기타옵션 목록 조회|julim */
|
|
|
|
/* user-mysql-mapper|selectUserEtcOptions-사용자기타옵션 목록 조회|julim */
|
|
|
|
SELECT user_id
|
|
|
|
SELECT user_id
|
|
|
@ -304,7 +335,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectUserEtcOption" parameterType="string" resultType="kr.xit.framework.biz.cmm.model.XitUserEtcOptionVO">
|
|
|
|
<select id="selectUserEtcOption" parameterType="string" resultType="kr.xit.framework.biz.cmm.model.XitUserEtcOptionVO">
|
|
|
|
/* user-mysql-mapper|selectUserEtcOption-사용자기타옵션 조회|julim */
|
|
|
|
/* user-mysql-mapper|selectUserEtcOption-사용자기타옵션 조회|julim */
|
|
|
|
/** 사용자기타옵션 조회 */
|
|
|
|
|
|
|
|
SELECT user_id
|
|
|
|
SELECT user_id
|
|
|
|
, job_data_author
|
|
|
|
, job_data_author
|
|
|
|
, user_manage_author
|
|
|
|
, user_manage_author
|
|
|
@ -349,8 +379,13 @@
|
|
|
|
WHERE user_id = #{userId}
|
|
|
|
WHERE user_id = #{userId}
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- *************************************************************************************************************
|
|
|
|
|
|
|
|
* xit_user_info_change_dtls : 사용자 정보 변경 이력
|
|
|
|
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
<insert id="insertUserInfoChangeDtls" parameterType="string">
|
|
|
|
<insert id="insertUserInfoChangeDtls" parameterType="string">
|
|
|
|
/* user-mysql-mapper|insertUserInfoChangeDtls-사용자정보변경내역 등록|julim */
|
|
|
|
/* user-mysql-mapper|insertUserInfoChangeDtls-사용자정보변경이력내역 등록|julim */
|
|
|
|
INSERT
|
|
|
|
INSERT
|
|
|
|
INTO xit_user_info_change_dtls (
|
|
|
|
INTO xit_user_info_change_dtls (
|
|
|
|
user_id
|
|
|
|
user_id
|
|
|
@ -397,6 +432,12 @@
|
|
|
|
WHERE user_id = #{userId}
|
|
|
|
WHERE user_id = #{userId}
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteUserInfoChangeDtlsList">
|
|
|
|
|
|
|
|
/* user-mysql-mapper|deleteUserInfoChangeDtlsList-사용자정보변경이력 내역 목록 삭제|julim */
|
|
|
|
|
|
|
|
DELETE
|
|
|
|
|
|
|
|
FROM xit_user_info_change_dtls
|
|
|
|
|
|
|
|
WHERE user_id = #{userId}
|
|
|
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -533,11 +574,5 @@
|
|
|
|
AND USER_ID = #{user_id }
|
|
|
|
AND USER_ID = #{user_id }
|
|
|
|
AND CHANGE_DE = #{change_de}
|
|
|
|
AND CHANGE_DE = #{change_de}
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
<delete id="removeXitUserInfoChangeDtlss">
|
|
|
|
|
|
|
|
/** removeXitUserInfoChangeDtls */
|
|
|
|
|
|
|
|
/** 사용자정보변경내역 목록 삭제 */
|
|
|
|
|
|
|
|
DELETE FROM XIT_USER_INFO_CHANGE_DTLS
|
|
|
|
|
|
|
|
WHERE 1=1
|
|
|
|
|
|
|
|
AND USER_ID = #{user_id }
|
|
|
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|