refactor : 유저 테이블 변경

main
이범준 1 year ago
parent 86523933fe
commit 2ecac4187f

@ -93,7 +93,7 @@ public class XitLoginVO implements Serializable{
this.orgnztNm = vo.getOrgnztNm();
this.grpId = vo.getGrpId();
this.nsttCd = vo.getNsttCd();
this.uniqId = vo.getEsntlId();
this.uniqId = vo.getUserKey();
this.jobDataAuthor = vo.getJobDataAuthor();
this.userManageAuthor = vo.getUserManageAuthor();
this.elctrnsanctnUseYn = vo.getElctrnsanctnUseYn();

@ -37,7 +37,7 @@ public class XitUserInfoChangeDtlsVO extends BaseVO {
protected String nstt_cd; //소속기관 코드
protected String stts; //사용자 상태 코드
protected String esntl_id; //고유 id
protected String user_key; //고유 id
public String getUser_id() {
return user_id;
@ -144,11 +144,11 @@ public class XitUserInfoChangeDtlsVO extends BaseVO {
public void setStts(String stts) {
this.stts = stts;
}
public String getEsntl_id() {
return esntl_id;
public String getUser_key() {
return user_key;
}
public void setEsntl_id(String esntl_id) {
this.esntl_id = esntl_id;
public void setUser_key(String user_key) {
this.user_key = user_key;
}

@ -50,7 +50,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
*
*/
XitUserInfoVO vo = new XitUserInfoVO();
vo.setEsntlId(uniqId);
vo.setUserKey(uniqId);
/**
*
@ -429,7 +429,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
*/
Map<String, Object> param = new HashMap<String, Object>();
param.put("term", term);
param.put("esntl_id", uniqId);
param.put("user_key", uniqId);
/**
*

@ -54,7 +54,7 @@ public class XitSessionMapping extends EgovUsersByUsernameMapping {
String strGrpId = rs.getString("grp_id");
String strNsttCd = rs.getString("nstt_cd");
String strOrgnztNm = rs.getString("orgnzt_nm");
String strUniqId = rs.getString("esntl_id");
String strUniqId = rs.getString("user_key");
String strJobDataAuthor = rs.getString("job_data_author");
String strUserManageAuthor = rs.getString("user_manage_author");
String strElctrnsanctnUseYn = rs.getString("elctrnsanctn_use_yn");

@ -46,7 +46,7 @@ public class XitUserInfoVO extends XitUserEtcOptionVO {
protected String grpId; //그룹 id - 업무그룹(sgg_cd)
protected String nsttCd; //소속기관 코드 - 시스템코드(sysSeCd)
protected String stts; //사용자 상태 코드
protected String esntlId; //고유 id
protected String userKey; //고유 id
protected String crtfcDn; //인증 dn 값
protected String regDt; //가입 일

@ -72,13 +72,13 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
} catch (Exception e) {
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, String.format("비밀번호 암호화 실패:: %s", e.getMessage()));
}
vo.setEsntlId(vo.getUniqId());
vo.setUserKey(vo.getUniqId());
mapper.insertUserInfo(vo);
// 사용자 권한
XitUserScrtySetupVO userScrtySetupVO = new XitUserScrtySetupVO();
userScrtySetupVO.setScrtySetupTrgetId(vo.getEsntlId());
userScrtySetupVO.setScrtySetupTrgetId(vo.getUserKey());
userScrtySetupVO.setMberTyCode("USR03");
userScrtySetupVO.setAuthorCode(this.getDefaultAuthorCode(vo.getGrpId()));
mapper.insertUserScrtySetup(userScrtySetupVO);
@ -101,10 +101,10 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
vo.setUserId(vo.getEmplyrId()); //사용자 id
vo.setUserNm(vo.getEmplyrNm()); //사용자 명
vo.setEsntlId(vo.getUniqId());
vo.setUserKey(vo.getUniqId());
Map<String,Object> userInfoCheckMap = mapper.selectCheckUserInfo(vo.getUserId());
if(Checks.isEmpty(userInfoCheckMap) || !Objects.equals(vo.getEsntlId(), userInfoCheckMap.get("esntl_id")))
if(Checks.isEmpty(userInfoCheckMap) || !Objects.equals(vo.getUserKey(), userInfoCheckMap.get("user_key")))
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "사용자 고유식별값이 일치하지 않습니다.");
// 변경이력 등록 and 사용자 정보 변경
@ -132,7 +132,7 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
//업무사용자 삭제
if (userTy.equals("USR03")){
Map<String,Object> userInfoCheckMap = mapper.selectCheckUserInfo(userId);
String scrtySetupTrgetId = String.valueOf(userInfoCheckMap.get("esntl_id"));
String scrtySetupTrgetId = String.valueOf(userInfoCheckMap.get("user_key"));
//사용자보안설정 삭제
if(Checks.isNotEmpty(mapper.selectUserScrtySetup(scrtySetupTrgetId))) {

@ -46,7 +46,7 @@
jdbcUsersByUsernameQuery="
/** 인증에 사용되는 사용자정보 조회 질의문 */
SELECT USER_ID
, ESNTL_ID AS PASSWD
, USER_KEY AS PASSWD
, 1 ENABLED
, USER_NM
, ZIP
@ -54,7 +54,7 @@
, EML_ADRS
, USER_SE
, ORG_ID
, ESNTL_ID
, USER_KEY
, GRP_ID
, NSTT_CD
, ORGNZT_NM
@ -69,7 +69,7 @@
SELECT A.SCRTY_SETUP_TRGET_ID AS USER_ID
,A.AUTHOR_CODE AS AUTHORITY
FROM XIT_USER_SCRTY_SETUP A
INNER JOIN XIT_VW_USER_MASTR B ON A.SCRTY_SETUP_TRGET_ID = B.ESNTL_ID
INNER JOIN XIT_VW_USER_MASTR B ON A.SCRTY_SETUP_TRGET_ID = B.USER_KEY
WHERE 1=1
AND B.USER_ID = ?"
jdbcMapClass="kr.xit.fims.framework.biz.cmm.service.bean.XitSessionMapping"

@ -113,7 +113,7 @@
, XBM.BBS_NM
FROM xit_bbs xb
LEFT OUTER JOIN xit_vw_user_mastr VUM
ON XB.rgtr = VUM.esntl_id
ON XB.rgtr = VUM.user_key
LEFT OUTER JOIN xit_bbs_mastr XBM
ON XB.bbs_id = XBM.bbs_id
WHERE XB.BBS_ID = #{bbsId}

@ -2082,7 +2082,7 @@
,EML_ADRS
,NSTT_CD
,STTS
,ESNTL_ID
,USER_KEY
FROM XIT_USER_INFO_CHANGE_DTLS
WHERE 1=1
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_id )">AND USER_ID = #{user_id }</if>
@ -2102,7 +2102,7 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(eml_adrs )">AND EML_ADRS = #{eml_adrs }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(nstt_cd )">AND NSTT_CD = #{nstt_cd }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(stts )">AND STTS = #{stts }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(esntl_id )">AND ESNTL_ID = #{esntl_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_key )">AND USER_KEY = #{user_key }</if>
</select>
<select id="findXitUserInfoChangeDtls" resultType="kr.xit.fims.framework.biz.cmm.XitUserInfoChangeDtlsVO">
/** findXitUserInfoChangeDtls */
@ -2124,7 +2124,7 @@
,EML_ADRS
,NSTT_CD
,STTS
,ESNTL_ID
,USER_KEY
FROM XIT_USER_INFO_CHANGE_DTLS
WHERE 1=1
AND USER_ID = #{user_id }
@ -2151,7 +2151,7 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(eml_adrs )">,EML_ADRS </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(nstt_cd )">,NSTT_CD </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(stts )">,STTS </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(esntl_id )">,ESNTL_ID </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_key )">,USER_KEY </if>
)VALUES(
#{user_id }
,DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
@ -2170,7 +2170,7 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(eml_adrs )">,#{eml_adrs }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(nstt_cd )">,#{nstt_cd }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(stts )">,#{stts }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(esntl_id )">,#{esntl_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_key )">,#{user_key }</if>
)
</insert>
<update id="modifyXitUserInfoChangeDtls">
@ -2194,7 +2194,7 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(eml_adrs )">,EML_ADRS = #{eml_adrs }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(nstt_cd )">,NSTT_CD = #{nstt_cd }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(stts )">,STTS = #{stts }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(esntl_id )">,ESNTL_ID = #{esntl_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(user_key )">,USER_KEY = #{user_key }</if>
WHERE 1=1
AND USER_ID = #{user_id }
AND CHANGE_DE = #{change_de}
@ -2242,7 +2242,7 @@
,GRP_ID
,NSTT_CD
,STTS
,ESNTL_ID
,USER_KEY
,CRTFC_DN
,REG_DT
FROM XIT_USER_INFO
@ -2268,7 +2268,7 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_id )">AND GRP_ID = #{grp_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(nstt_cd )">AND NSTT_CD = #{nstt_cd }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(stts )">AND STTS = #{stts }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(esntl_id )">AND ESNTL_ID = #{esntl_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_key )">AND USER_KEY = #{user_key }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(crtfc_dn )">AND CRTFC_DN = #{crtfc_dn }</if>
</select>
<select id="findXitUserInfo" resultType="kr.xit.fims.framework.biz.mng.user.XitUserInfoVO">
@ -2295,7 +2295,7 @@
,GRP_ID
,NSTT_CD
,STTS
,ESNTL_ID
,USER_KEY
,CRTFC_DN
,REG_DT
FROM XIT_USER_INFO
@ -2328,7 +2328,7 @@
, grp_id
, nstt_cd
, stts
, esntl_id
, user_key
, crtfc_dn
, REG_DT
) VALUES (
@ -2353,7 +2353,7 @@
, #{grpId}
, #{nsttCd}
, #{stts}
, #{esntlId}
, #{userKey}
, #{crtfcDn}
, NOW()
)
@ -2384,7 +2384,7 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(grp_id )">,GRP_ID = #{grp_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(nstt_cd )">,NSTT_CD = #{nstt_cd }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(stts )">,STTS = #{stts }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(esntl_id )">,ESNTL_ID = #{esntl_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(user_key )">,USER_KEY = #{user_key }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(crtfc_dn )">,CRTFC_DN = #{crtfc_dn }</if>
WHERE 1=1
AND USER_ID = #{user_id}
@ -2420,7 +2420,7 @@
,A.GRP_ID
,A.NSTT_CD
,A.STTS
,A.ESNTL_ID
,A.USER_KEY
,A.CRTFC_DN
,A.REG_DT
,B.JOB_DATA_AUTHOR
@ -2451,7 +2451,7 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_id )">AND A.GRP_ID = #{grp_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(nstt_cd )">AND A.NSTT_CD = #{nstt_cd }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(stts )">AND A.STTS = #{stts }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(esntl_id )">AND A.ESNTL_ID = #{esntl_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_key )">AND A.USER_KEY = #{user_key }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(crtfc_dn )">AND A.CRTFC_DN = #{crtfc_dn }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(job_data_author )">AND B.JOB_DATA_AUTHOR = #{job_data_author }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_manage_author )">AND B.USER_MANAGE_AUTHOR = #{user_manage_author }</if>
@ -2482,7 +2482,7 @@
,A.GRP_ID
,A.NSTT_CD
,A.STTS
,A.ESNTL_ID
,A.USER_KEY
,A.CRTFC_DN
,A.REG_DT
,B.JOB_DATA_AUTHOR

@ -98,19 +98,19 @@
/** XitFrameUnitMapper.findLongTermDisconectUser */
/** 장기미접속 사용자 조회 */
SELECT A.USER_ID
,A.ESNTL_ID
,A.USER_KEY
FROM XIT_USER_INFO A
LEFT OUTER JOIN (
/** 현재일 기준 일정기간 내 접속 로그 정보 */
SELECT DISTINCT CONECT_ID AS "ESNTL_ID"
SELECT DISTINCT CONECT_ID AS "USER_KEY"
FROM XIT_CONECT_LOG
WHERE ERROR_OCCRRNC_YN = 'N'
AND CREAT_DT &gt;= DATE_ADD(NOW(), INTERVAL #{term} MONTH)
AND CONECT_ID IS NOT NULL
) B ON A.ESNTL_ID = B.ESNTL_ID
WHERE B.ESNTL_ID IS NULL
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(esntl_id)">
AND B.ESNTL_ID = #{esntl_id}
) B ON A.USER_KEY = B.USER_KEY
WHERE B.USER_KEY IS NULL
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_key)">
AND B.USER_KEY = #{user_key}
</if>
</select>

@ -15,7 +15,7 @@
, tcat.tlface
, tcat.reg_dt
, tcat.rgtr
, (SELECT SA.user_nm FROM xit_vw_user_mastr SA WHERE SA.esntl_id = tcat.rgtr) AS rgtrNm
, (SELECT SA.user_nm FROM xit_vw_user_mastr SA WHERE SA.user_key = tcat.rgtr) AS rgtrNm
, tcat.mdfcn_dt
, tcat.mdfr
, tcatd.answer_se_code

@ -22,7 +22,7 @@
</sql>
<sql id="findList_FROM">
FROM XIT_CONECT_LOG A
LEFT OUTER JOIN XIT_VW_USER_MASTR B ON A.CONECT_ID = B.ESNTL_ID
LEFT OUTER JOIN XIT_VW_USER_MASTR B ON A.CONECT_ID = B.USER_KEY
</sql>
<sql id="findList_WHERE">
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(searchWrd)">

@ -13,15 +13,15 @@
, cdc.code_val AS mberTyNm
, uss.author_code
, IF(uss.scrty_setup_trget_id IS NULL, 'N', 'Y') AS regYn
, esntl_id AS uniqId
, user_key AS uniqId
FROM (
SELECT user_id
, user_nm user_nm
, grp_id
, esntl_id
, user_key
FROM xit_user_info ) xui
LEFT OUTER JOIN xit_user_scrty_setup uss
ON xui.esntl_id = uss.scrty_setup_trget_id
ON xui.user_key = uss.scrty_setup_trget_id
LEFT OUTER JOIN tb_cmn_code cdc
ON cdc.grp_id = 'XIT012'
AND uss.mber_ty_code = cdc.code

@ -41,7 +41,7 @@
</sql>
<sql id="findList_FROM">
FROM XIT_BBS A
LEFT OUTER JOIN XIT_VW_USER_MASTR B ON A.RGTR = B.ESNTL_ID
LEFT OUTER JOIN XIT_VW_USER_MASTR B ON A.RGTR = B.USER_KEY
LEFT OUTER JOIN XIT_BBS_MASTR C ON A.BBS_ID = C.BBS_ID
</sql>
<sql id="findList_WHERE">

@ -27,7 +27,7 @@
,A.ATCH_POSBL_FILE_SIZE AS "posblAtchFileSize"
,A.REPLY_POSBL_YN AS "replyPosblYn"
,A.RGTR AS "rgtr"
,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.ESNTL_ID = A.RGTR) AS "frstRgtrNm"
,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.USER_KEY = A.RGTR) AS "frstRgtrNm"
,A.USE_YN AS "useYn"
,DATE_FORMAT(A.REG_DT, '%Y-%m-%d') AS "regDt"
,(SELECT IFNULL (SA.USE_YN, 'N')

@ -23,8 +23,8 @@
,A.MDFR AS "mdfr"
,A.MDFCN_DT AS "mdfcnDt"
,B.CODE_VAL AS "tmplatSeCodeNm"
,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.ESNTL_ID=A.RGTR) AS "frstRgtrNm"
,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.ESNTL_ID=A.MDFR) AS "lastMdfrNm"
,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.USER_KEY=A.RGTR) AS "frstRgtrNm"
,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.USER_KEY=A.MDFR) AS "lastMdfrNm"
</sql>
<sql id="findList_FROM">
FROM XIT_TMPLAT_INFO A

@ -40,7 +40,7 @@
<include refid="sqlBoardMaster"/>
FROM xit_bbs xb
LEFT OUTER JOIN xit_vw_user_mastr xvum
ON xb.rgtr = xvum.esntl_id
ON xb.rgtr = xvum.user_key
LEFT OUTER JOIN xit_bbs_mastr xbm
ON xb.bbs_id = xbm.bbs_id
</sql>

@ -24,7 +24,7 @@
, xbm.rgtr
, (SELECT sa.user_nm
FROM XIT_VW_USER_MASTR SA
WHERE sa.esntl_id = xbm.rgtr) AS frstRgtrNm
WHERE sa.user_key = xbm.rgtr) AS frstRgtrNm
, xbm.use_yn AS useYn
, DATE_FORMAT(xbm.reg_dt, '%Y-%m-%d') AS regDt
, (SELECT IFNULL(sa.use_yn, 'N')

@ -17,8 +17,8 @@
, xti.mdfr
, xti.mdfcn_dt
, cdc.code_val AS tmplatSeCodeNm
, (SELECT SA.user_nm FROM xit_vw_user_mastr SA WHERE SA.esntl_id = xti.rgtr) AS frstRgtrNm
, (SELECT SA.user_nm FROM xit_vw_user_mastr SA WHERE SA.esntl_id = xti.mdfr) AS lastMdfrNm
, (SELECT SA.user_nm FROM xit_vw_user_mastr SA WHERE SA.user_key = xti.rgtr) AS frstRgtrNm
, (SELECT SA.user_nm FROM xit_vw_user_mastr SA WHERE SA.user_key = xti.mdfr) AS lastMdfrNm
FROM xit_tmplat_info xti
LEFT OUTER JOIN tb_cmn_code cdc
ON xti.tmplat_se_code = cdc.code

@ -159,7 +159,7 @@
SELECT AUTHOR_CODE AS "authorCode"
FROM XIT_USER_SCRTY_SETUP
WHERE SCRTY_SETUP_TRGET_ID = (
SELECT ESNTL_ID
SELECT USER_KEY
FROM XIT_VW_USER_MASTR
WHERE USER_ID = #{searchKeyword}
)

@ -73,7 +73,7 @@
<select id="findView" resultType="kr.xit.fims.framework.biz.mng.user.XitUserEtcOptMngVO">
/** XitUserEtcOptMngMapper.findView */
/** 사용자기타옵션관리 상세정보 조회 */
SELECT ESNTL_ID AS "uniqId"
SELECT USER_KEY AS "uniqId"
,'USR03' AS "userTy"
,A.USER_ID AS "emplyrId"
,A.USER_NM AS "emplyrNm"
@ -103,7 +103,7 @@
,B.ELCTRNSANCTN_USE_YN AS "elctrnsanctnUseYn"
,B.JOB_CONFM_AUTHOR_YN AS "jobConfmAuthorYn"
<include refid="findList_FROM"/>
WHERE A.ESNTL_ID = #{uniqId}
WHERE A.USER_KEY = #{uniqId}
</select>

@ -7,7 +7,7 @@
************************************************************************************************************** -->
<select id="selectUsers" resultType="kr.xit.fims.framework.biz.mng.user.XitUserInfoVO">
/* user-mysql-mapper|selectUsers-사용자 목록 조회|julim */
SELECT xui.esntl_id AS uniqId
SELECT xui.user_key AS uniqId
, 'USR03' AS userTy
, xui.user_id
, xui.user_nm
@ -38,7 +38,7 @@
<select id="selectUser" resultType="kr.xit.fims.framework.biz.mng.user.XitUserInfoVO">
/* user-mysql-mapper|selectUser-사용자 정보 조회|julim */
SELECT esntl_id AS uniqId
SELECT user_key AS uniqId
, 'USR03' AS userTy
, user_id AS emplyrId
, user_nm AS emplyrNm
@ -64,7 +64,7 @@
, REG_DT
, crtfc_dn
FROM xit_user_info
WHERE esntl_id = #{uniqId}
WHERE user_key = #{uniqId}
</select>
<insert id="insertUserInfo" parameterType="kr.xit.fims.framework.biz.mng.user.XitUserInfoVO">
@ -92,7 +92,7 @@
, grp_id
, nstt_cd
, stts
, esntl_id
, user_key
, crtfc_dn
, REG_DT
) VALUES (
@ -117,7 +117,7 @@
, #{grpId}
, #{nsttCd}
, #{stts}
, #{esntlId}
, #{userKey}
, #{crtfcDn}
, NOW()
)
@ -157,8 +157,8 @@
</delete>
<select id="selectCheckUserInfo" parameterType="string" resultType="caseMap">
/* user-mysql-mapper|selectCheckUserInfo-사용자정보 esntl_id, grp_id 조회|julim */
SELECT xui.esntl_id
/* user-mysql-mapper|selectCheckUserInfo-사용자정보 user_key, grp_id 조회|julim */
SELECT xui.user_key
, xui.org_id
, xui.grp_id
, xui.nstt_cd
@ -370,7 +370,7 @@
, eml_adrs
, nstt_cd
, stts
, esntl_id
, user_key
) SELECT user_id
, DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, org_id
@ -388,7 +388,7 @@
, eml_adrs
, nstt_cd
, stts
, esntl_id
, user_key
FROM xit_user_info
WHERE user_id = #{userId}
</insert>

Loading…
Cancel
Save