refactor : 유저 테이블 변경

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

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

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

@ -50,7 +50,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
* *
*/ */
XitUserInfoVO vo = new XitUserInfoVO(); 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>(); Map<String, Object> param = new HashMap<String, Object>();
param.put("term", term); 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 strGrpId = rs.getString("grp_id");
String strNsttCd = rs.getString("nstt_cd"); String strNsttCd = rs.getString("nstt_cd");
String strOrgnztNm = rs.getString("orgnzt_nm"); 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 strJobDataAuthor = rs.getString("job_data_author");
String strUserManageAuthor = rs.getString("user_manage_author"); String strUserManageAuthor = rs.getString("user_manage_author");
String strElctrnsanctnUseYn = rs.getString("elctrnsanctn_use_yn"); String strElctrnsanctnUseYn = rs.getString("elctrnsanctn_use_yn");

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

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

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

@ -113,7 +113,7 @@
, XBM.BBS_NM , XBM.BBS_NM
FROM xit_bbs xb FROM xit_bbs xb
LEFT OUTER JOIN xit_vw_user_mastr VUM 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 LEFT OUTER JOIN xit_bbs_mastr XBM
ON XB.bbs_id = XBM.bbs_id ON XB.bbs_id = XBM.bbs_id
WHERE XB.BBS_ID = #{bbsId} WHERE XB.BBS_ID = #{bbsId}

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

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

@ -15,7 +15,7 @@
, tcat.tlface , tcat.tlface
, tcat.reg_dt , tcat.reg_dt
, tcat.rgtr , 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.mdfcn_dt
, tcat.mdfr , tcat.mdfr
, tcatd.answer_se_code , tcatd.answer_se_code

@ -22,7 +22,7 @@
</sql> </sql>
<sql id="findList_FROM"> <sql id="findList_FROM">
FROM XIT_CONECT_LOG A 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>
<sql id="findList_WHERE"> <sql id="findList_WHERE">
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(searchWrd)"> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(searchWrd)">

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

@ -41,7 +41,7 @@
</sql> </sql>
<sql id="findList_FROM"> <sql id="findList_FROM">
FROM XIT_BBS A 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 LEFT OUTER JOIN XIT_BBS_MASTR C ON A.BBS_ID = C.BBS_ID
</sql> </sql>
<sql id="findList_WHERE"> <sql id="findList_WHERE">

@ -27,7 +27,7 @@
,A.ATCH_POSBL_FILE_SIZE AS "posblAtchFileSize" ,A.ATCH_POSBL_FILE_SIZE AS "posblAtchFileSize"
,A.REPLY_POSBL_YN AS "replyPosblYn" ,A.REPLY_POSBL_YN AS "replyPosblYn"
,A.RGTR AS "rgtr" ,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" ,A.USE_YN AS "useYn"
,DATE_FORMAT(A.REG_DT, '%Y-%m-%d') AS "regDt" ,DATE_FORMAT(A.REG_DT, '%Y-%m-%d') AS "regDt"
,(SELECT IFNULL (SA.USE_YN, 'N') ,(SELECT IFNULL (SA.USE_YN, 'N')

@ -23,8 +23,8 @@
,A.MDFR AS "mdfr" ,A.MDFR AS "mdfr"
,A.MDFCN_DT AS "mdfcnDt" ,A.MDFCN_DT AS "mdfcnDt"
,B.CODE_VAL AS "tmplatSeCodeNm" ,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.USER_KEY=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.MDFR) AS "lastMdfrNm"
</sql> </sql>
<sql id="findList_FROM"> <sql id="findList_FROM">
FROM XIT_TMPLAT_INFO A FROM XIT_TMPLAT_INFO A

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

@ -24,7 +24,7 @@
, xbm.rgtr , xbm.rgtr
, (SELECT sa.user_nm , (SELECT sa.user_nm
FROM XIT_VW_USER_MASTR SA 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 , xbm.use_yn AS useYn
, DATE_FORMAT(xbm.reg_dt, '%Y-%m-%d') AS regDt , DATE_FORMAT(xbm.reg_dt, '%Y-%m-%d') AS regDt
, (SELECT IFNULL(sa.use_yn, 'N') , (SELECT IFNULL(sa.use_yn, 'N')

@ -17,8 +17,8 @@
, xti.mdfr , xti.mdfr
, xti.mdfcn_dt , xti.mdfcn_dt
, cdc.code_val AS tmplatSeCodeNm , 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.user_key = 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.mdfr) AS lastMdfrNm
FROM xit_tmplat_info xti FROM xit_tmplat_info xti
LEFT OUTER JOIN tb_cmn_code cdc LEFT OUTER JOIN tb_cmn_code cdc
ON xti.tmplat_se_code = cdc.code ON xti.tmplat_se_code = cdc.code

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

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

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

Loading…
Cancel
Save