|
|
|
@ -13,7 +13,7 @@
|
|
|
|
|
, cdc.code_val AS mberTyNm
|
|
|
|
|
, uss.author_code
|
|
|
|
|
, IF(uss.scrty_setup_trget_id IS NULL, 'N', 'Y') AS regYn
|
|
|
|
|
, user_key AS uniqId
|
|
|
|
|
, USER_ID AS uniqId
|
|
|
|
|
FROM (
|
|
|
|
|
SELECT user_id
|
|
|
|
|
, user_nm user_nm
|
|
|
|
@ -21,13 +21,13 @@
|
|
|
|
|
, user_key
|
|
|
|
|
FROM tb_user ) xui
|
|
|
|
|
LEFT OUTER JOIN xit_user_scrty_setup uss
|
|
|
|
|
ON xui.user_key = uss.scrty_setup_trget_id
|
|
|
|
|
ON xui.USER_ID = uss.scrty_setup_trget_id
|
|
|
|
|
LEFT OUTER JOIN tb_cmn_code cdc
|
|
|
|
|
ON cdc.grp_id = 'XIT012'
|
|
|
|
|
AND uss.mber_ty_code = cdc.code
|
|
|
|
|
<where>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(userId)">
|
|
|
|
|
AND INSTR(xui.user_id, #{userId}) > 0
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(userAcnt)">
|
|
|
|
|
AND INSTR(xui.USER_ACNT, #{userAcnt}) > 0
|
|
|
|
|
</if>
|
|
|
|
|
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(userNm)">
|
|
|
|
|
AND INSTR(xui.user_nm, #{userNm}) > 0
|
|
|
|
|