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