어드민 대리점 명 표시

This commit is contained in:
kubo8
2023-04-24 14:41:22 +09:00
parent a26bae0ec6
commit a3fa5c763a
4 changed files with 32 additions and 13 deletions

View File

@@ -58,6 +58,9 @@
when A.EX_PROVUSERTYPE is null then '고객셀프가입'
else '직접영업'
end as CHANNEL
,CASE WHEN A.NORG_NM IS NULL THEN '-'
ELSE A.NORG_NM
END AS norgNm
, (
SELECT
PROD_NM
@@ -85,7 +88,8 @@
esi.USER_SEQ as adminSeq,
esi.ATTRCTOR_ID as attrctorId,
esi.BIND_DC_YN,
eiu.EX_PROVUSERTYPE
eiu.EX_PROVUSERTYPE,
eig.NORG_NM
FROM
hubez_common.EZ_SUBS_INFO esi
INNER JOIN hubez_common.EZ_SVC_USER esu
@@ -94,8 +98,10 @@
INNER JOIN hubez_common.EZ_CUST_INFO eci
ON eci.CUST_SEQ = esi.CUST_SEQ
AND esi.CUST_SEQ = esu.CUST_SEQ
LEFT JOIN hubez_imdb.EZ_IM_USER eiu
on eiu.LOGIN_ID = esi.ATTRCTOR_ID
LEFT OUTER JOIN hubez_imdb.EZ_IM_USER eiu
ON eiu.LOGIN_ID = esi.ATTRCTOR_ID
LEFT OUTER JOIN hubez_imdb.EZ_IM_GROUP eig
ON eiu.EX_DEPT_CD = eig.NORG_CD
WHERE 1 = 1
<include refid="subsListCondition"/>
ORDER BY esi.SUBS_DT DESC
@@ -140,6 +146,9 @@
from hubez_imdb.EZ_IM_USER
where LOGIN_ID = A.attrctorId
) , '고객셀프가입') as CHANNEL
,CASE WHEN A.NORG_NM IS NULL THEN '-'
ELSE A.NORG_NM
END AS norgNm
, (
SELECT
PROD_NM
@@ -166,7 +175,8 @@
esi.PROD_CD,
esi.USER_SEQ as adminSeq,
esi.BIND_DC_YN,
esi.ATTRCTOR_ID as attrctorId
esi.ATTRCTOR_ID as attrctorId,
eig.NORG_NM
FROM
hubez_common.EZ_SUBS_INFO esi
INNER JOIN hubez_common.EZ_SVC_USER esu
@@ -176,8 +186,10 @@
ON
eci.CUST_SEQ = esi.CUST_SEQ
AND esi.CUST_SEQ = esu.CUST_SEQ
LEFT JOIN hubez_imdb.EZ_IM_USER eiu
on eiu.LOGIN_ID = esi.ATTRCTOR_ID
LEFT OUTER JOIN hubez_imdb.EZ_IM_USER eiu
ON eiu.LOGIN_ID = esi.ATTRCTOR_ID
LEFT OUTER JOIN hubez_imdb.EZ_IM_GROUP eig
ON eiu.EX_DEPT_CD = eig.NORG_CD
WHERE 1 = 1
<include refid="subsListCondition"/>
ORDER BY esi.SUBS_DT DESC ) A, ( SELECT @ROWNUM := 0 ) AS R