|
|
|
@ -2,6 +2,9 @@
|
|
|
|
|
<!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">
|
|
|
|
|
|
|
|
|
|
<!-- *************************************************************************************************************
|
|
|
|
|
* xit_user_info : 업무사용자 정보
|
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
|
<select id="selectUsers" resultType="kr.xit.framework.biz.cmm.model.XitUserInfoVO">
|
|
|
|
|
/* user-mysql-mapper|selectUsers-사용자 목록 조회|julim */
|
|
|
|
|
SELECT xui.esntl_id AS uniqId
|
|
|
|
@ -23,12 +26,12 @@
|
|
|
|
|
AND xui.user_sttus_code = cdc.code
|
|
|
|
|
<where>
|
|
|
|
|
<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 test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(searchKeyword)">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="searchCondition eq 'userId'">
|
|
|
|
|
AND xui.user_id LIKE #{searchKeyword}
|
|
|
|
|
AND INSTR(xui.user_id, #{searchKeyword}) > 0
|
|
|
|
|
</when>
|
|
|
|
|
<when test="searchCondition eq 'userNm'">
|
|
|
|
|
AND INSTR(xui.user_nm, #{searchKeyword}) > 0
|
|
|
|
@ -39,7 +42,6 @@
|
|
|
|
|
ORDER BY sbscrb_de DESC
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectUser" parameterType="string" resultType="kr.xit.framework.biz.cmm.model.XitUserInfoVO">
|
|
|
|
|
/* user-mysql-mapper|selectUser-사용자 정보 조회|julim */
|
|
|
|
|
SELECT esntl_id AS uniqId
|
|
|
|
@ -165,12 +167,11 @@
|
|
|
|
|
WHERE user_id = #{userId}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="removeXitUserInfo">
|
|
|
|
|
/** removeXitUserInfo */
|
|
|
|
|
/** 사용자정보 삭제 */
|
|
|
|
|
DELETE FROM XIT_USER_INFO
|
|
|
|
|
WHERE 1=1
|
|
|
|
|
AND USER_ID = #{user_id}
|
|
|
|
|
<delete id="deleteUserInfo" parameterType="string">
|
|
|
|
|
/* user-mysql-mapper|deleteUserInfo-사용자정보 삭제|julim */
|
|
|
|
|
DELETE
|
|
|
|
|
FROM xit_user_info
|
|
|
|
|
WHERE user_id = #{userId}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<select id="selectCheckUserInfo" parameterType="string" resultType="caseMap">
|
|
|
|
@ -183,23 +184,50 @@
|
|
|
|
|
WHERE xui.user_id = #{userId}
|
|
|
|
|
</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">
|
|
|
|
|
/* user-mysql-mapper|selectAuthorGroupInfo-권한그룹정보 조회|julim */
|
|
|
|
|
SELECT group_id
|
|
|
|
|
, group_nm
|
|
|
|
|
, group_creat_de
|
|
|
|
|
, group_dc
|
|
|
|
|
, author_code
|
|
|
|
|
FROM xit_author_group_info
|
|
|
|
|
, group_nm
|
|
|
|
|
, group_creat_de
|
|
|
|
|
, group_dc
|
|
|
|
|
, author_code
|
|
|
|
|
FROM xit_author_group_info
|
|
|
|
|
<where>
|
|
|
|
|
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(groupId)">
|
|
|
|
|
AND group_id = #{groupId}
|
|
|
|
|
AND group_id = #{groupId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(groupNm)">
|
|
|
|
|
AND group_nm = #{groupNm}
|
|
|
|
|
AND group_nm = #{groupNm}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(groupCreatDe)">
|
|
|
|
|
AND group_creat_de = #{groupCreatDe}
|
|
|
|
|
AND group_creat_de = #{groupCreatDe}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(groupDc)">
|
|
|
|
|
AND group_dc = #{groupDc}
|
|
|
|
@ -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">
|
|
|
|
|
/* user-mysql-mapper|selectUserScrtySetups-사용자보안설정 목록 조회|julim */
|
|
|
|
|
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">
|
|
|
|
|
/* user-mysql-mapper|selectUserEtcOptions-사용자기타옵션 목록 조회|julim */
|
|
|
|
|
SELECT user_id
|
|
|
|
@ -304,7 +335,6 @@
|
|
|
|
|
|
|
|
|
|
<select id="selectUserEtcOption" parameterType="string" resultType="kr.xit.framework.biz.cmm.model.XitUserEtcOptionVO">
|
|
|
|
|
/* user-mysql-mapper|selectUserEtcOption-사용자기타옵션 조회|julim */
|
|
|
|
|
/** 사용자기타옵션 조회 */
|
|
|
|
|
SELECT user_id
|
|
|
|
|
, job_data_author
|
|
|
|
|
, user_manage_author
|
|
|
|
@ -349,8 +379,13 @@
|
|
|
|
|
WHERE user_id = #{userId}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- *************************************************************************************************************
|
|
|
|
|
* xit_user_info_change_dtls : 사용자 정보 변경 이력
|
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
|
<insert id="insertUserInfoChangeDtls" parameterType="string">
|
|
|
|
|
/* user-mysql-mapper|insertUserInfoChangeDtls-사용자정보변경내역 등록|julim */
|
|
|
|
|
/* user-mysql-mapper|insertUserInfoChangeDtls-사용자정보변경이력내역 등록|julim */
|
|
|
|
|
INSERT
|
|
|
|
|
INTO xit_user_info_change_dtls (
|
|
|
|
|
user_id
|
|
|
|
@ -397,6 +432,12 @@
|
|
|
|
|
WHERE user_id = #{userId}
|
|
|
|
|
</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 CHANGE_DE = #{change_de}
|
|
|
|
|
</delete>
|
|
|
|
|
<delete id="removeXitUserInfoChangeDtlss">
|
|
|
|
|
/** removeXitUserInfoChangeDtls */
|
|
|
|
|
/** 사용자정보변경내역 목록 삭제 */
|
|
|
|
|
DELETE FROM XIT_USER_INFO_CHANGE_DTLS
|
|
|
|
|
WHERE 1=1
|
|
|
|
|
AND USER_ID = #{user_id }
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|