fix : 유정 관련 수정

main
이범준 1 year ago
parent c8c8c65e7c
commit 4d4f8bea1a

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

@ -6,19 +6,19 @@
* xit_user _info : 업무사용자 정보 * xit_user _info : 업무사용자 정보
********** **************************************************************************************************** --> ********** **************************************************************************************************** -->
<sql id ="sqlAuthUser"> <sql id ="sqlAuthUser">
SELECT xui.user_id SELECT USER_ID AS uniqId
, xui.USER_ACNT
, xui.user_nm , xui.user_nm
, xui.grp_id , xui.grp_id
, uss.mber_ty_code , uss.mber_ty_code
, 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
, USER_ID AS uniqId
FROM ( FROM (
SELECT user_id SELECT USER_ID
, USER_ACNT
, user_nm user_nm , user_nm user_nm
, grp_id , grp_id
, user_key
FROM tb_user ) xui FROM tb_user ) xui
LEFT OUTER JOIN xit_user_scrty_setup uss LEFT OUTER JOIN xit_user_scrty_setup uss
ON xui.USER_ID = uss.scrty_setup_trget_id ON xui.USER_ID = uss.scrty_setup_trget_id

Loading…
Cancel
Save