|
|
@ -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>
|
|
|
|
|
|
|
|
|
|
|
|