From 4d4f8bea1a8a8f82d51bc79d45418229ff3e9558 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Wed, 7 Jun 2023 16:11:15 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=EC=9C=A0=EC=A0=95=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../framework/cmm/XitFrameUnit-mysql-mapper.xml | 12 ++++++------ .../framework/mng/auth/auth-by-user-mysql-mapper.xml | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/resources/sql/mapper/framework/cmm/XitFrameUnit-mysql-mapper.xml b/src/main/resources/sql/mapper/framework/cmm/XitFrameUnit-mysql-mapper.xml index cf9561f4..b15f9085 100644 --- a/src/main/resources/sql/mapper/framework/cmm/XitFrameUnit-mysql-mapper.xml +++ b/src/main/resources/sql/mapper/framework/cmm/XitFrameUnit-mysql-mapper.xml @@ -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 - - AND B.USER_KEY = #{userKey} + ) B ON A.USER_ID = B.USER_ID + WHERE B.USER_ID IS NULL + + AND B.USER_ID = #{userId} diff --git a/src/main/resources/sql/mapper/framework/mng/auth/auth-by-user-mysql-mapper.xml b/src/main/resources/sql/mapper/framework/mng/auth/auth-by-user-mysql-mapper.xml index bb45c15f..a250def8 100644 --- a/src/main/resources/sql/mapper/framework/mng/auth/auth-by-user-mysql-mapper.xml +++ b/src/main/resources/sql/mapper/framework/mng/auth/auth-by-user-mysql-mapper.xml @@ -6,19 +6,19 @@ * xit_user _info : 업무사용자 정보 ********** **************************************************************************************************** --> - SELECT xui.user_id + SELECT USER_ID AS uniqId + , xui.USER_ACNT , xui.user_nm , xui.grp_id , uss.mber_ty_code , cdc.code_val AS mberTyNm , uss.author_code , IF(uss.scrty_setup_trget_id IS NULL, 'N', 'Y') AS regYn - , USER_ID AS uniqId FROM ( - SELECT user_id + SELECT USER_ID + , USER_ACNT , user_nm user_nm , grp_id - , user_key FROM tb_user ) xui LEFT OUTER JOIN xit_user_scrty_setup uss ON xui.USER_ID = uss.scrty_setup_trget_id