mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 06:38:22 +09:00
TC 수정사항 반영
This commit is contained in:
@@ -32,8 +32,10 @@
|
||||
, A.CUST_NM
|
||||
, A.BIZRNO
|
||||
, A.USER_NM
|
||||
, (SELECT DTL_CD_NM FROM hubez_common.EZ_CD_DTL WHERE GRP_CD = 'SUBS_STTUS_CD' AND DTL_CD = A.SUBS_STTUS_CD) as SUBS_STTUS_CD
|
||||
, (SELECT DTL_CD_NM FROM hubez_common.EZ_CD_DTL WHERE GRP_CD = 'CUST_KD_CD' AND DTL_CD = A.CUST_TY_CD) as CUST_TY_CD
|
||||
, A.SUBS_STTUS_CD
|
||||
, (SELECT DTL_CD_NM FROM hubez_common.EZ_CD_DTL WHERE GRP_CD = 'SUBS_STTUS_CD' AND DTL_CD = A.SUBS_STTUS_CD) as SUBS_STTUS_NM
|
||||
, A.CUST_TY_CD
|
||||
, (SELECT DTL_CD_NM FROM hubez_common.EZ_CD_DTL WHERE GRP_CD = 'CUST_KD_CD' AND DTL_CD = A.CUST_TY_CD) as CUST_TY_NM
|
||||
, (
|
||||
SELECT
|
||||
sum(IFNULL(ecm.SND_CNT,0) + IFNULL(ecm.FBACK_CNT,0))
|
||||
@@ -46,7 +48,7 @@
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
ifnull(DATE_FORMAT(esi.OPN_DT, '%Y-%m-%d'), DATE_FORMAT(esi.SUBS_DT , '%Y-%m-%d')) AS SUBS_DT
|
||||
DATE_FORMAT(esi.SUBS_DT , '%Y-%m-%d') AS SUBS_DT
|
||||
, eig.NORG_NM
|
||||
, esi.USER_SEQ
|
||||
, eiu.LOGIN_ID
|
||||
@@ -83,8 +85,8 @@
|
||||
, A.CUST_NM
|
||||
, A.BIZRNO
|
||||
, A.USER_NM
|
||||
, (SELECT DTL_CD_NM FROM hubez_common.EZ_CD_DTL WHERE GRP_CD = 'SUBS_STTUS_CD' AND DTL_CD = A.SUBS_STTUS_CD) as SUBS_STTUS_CD
|
||||
, (SELECT DTL_CD_NM FROM hubez_common.EZ_CD_DTL WHERE GRP_CD = 'CUST_KD_CD' AND DTL_CD = A.CUST_TY_CD) as CUST_TY_CD
|
||||
, (SELECT DTL_CD_NM FROM hubez_common.EZ_CD_DTL WHERE GRP_CD = 'SUBS_STTUS_CD' AND DTL_CD = A.SUBS_STTUS_CD) as SUBS_STTUS_NM
|
||||
, (SELECT DTL_CD_NM FROM hubez_common.EZ_CD_DTL WHERE GRP_CD = 'CUST_KD_CD' AND DTL_CD = A.CUST_TY_CD) as CUST_TY_NM
|
||||
, (
|
||||
SELECT
|
||||
sum(IFNULL(ecm.SND_CNT,0) + IFNULL(ecm.FBACK_CNT,0))
|
||||
@@ -97,7 +99,7 @@
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
ifnull(DATE_FORMAT(esi.OPN_DT, '%Y-%m-%d'), DATE_FORMAT(esi.SUBS_DT , '%Y-%m-%d')) AS SUBS_DT
|
||||
DATE_FORMAT(esi.SUBS_DT , '%Y-%m-%d') AS SUBS_DT
|
||||
, eig.NORG_NM
|
||||
, esi.USER_SEQ
|
||||
, eiu.LOGIN_ID
|
||||
@@ -125,7 +127,7 @@
|
||||
|
||||
<sql id="attractListCondition">
|
||||
<if test="subsStDt != null and subsStDt != '' and subsEdDt != null and subsEdDt != ''">
|
||||
AND DATE_FORMAT(esi.SUBS_DT, '%Y%m%d') BETWEEN #{subsStDt} AND #{subsEdDt}
|
||||
AND esi.SUBS_DT >= #{subsStDt} AND esi.SUBS_DT <![CDATA[ < ]]> DATE_ADD(#{subsEdDt}, interval 1 day)
|
||||
</if>
|
||||
<if test="subsSttusCd != null and subsSttusCd != ''">
|
||||
AND esi.SUBS_STTUS_CD = #{subsSttusCd}
|
||||
@@ -141,18 +143,18 @@
|
||||
</if>
|
||||
<if test="searchType != null and searchType != ''">
|
||||
<if test="searchType == '01' and searchText != null and searchText != ''">
|
||||
AND UPPER(eci.CUST_NM) LIKE UPPER(CONCAT('%', #{searchText}, '%'))
|
||||
AND eci.CUST_NM LIKE CONCAT('%', #{searchText}, '%')
|
||||
</if>
|
||||
<if test="searchType == '02' and searchText != null and searchText != ''">
|
||||
AND UPPER(esu.USER_NM) LIKE UPPER(CONCAT('%', #{searchText}, '%'))
|
||||
AND esu.USER_NM LIKE CONCAT('%', #{searchText}, '%')
|
||||
</if>
|
||||
<if test="searchType == '03' and searchText != null and searchText != ''">
|
||||
AND eci.BIZRNO = #{searchText}
|
||||
AND eci.BIZRNO LIKE CONCAT('%', #{searchText}, '%')
|
||||
</if>
|
||||
</if>
|
||||
<if test="attrctorId != null and attrctorId != ''">
|
||||
and esi.ATTRCTOR_ID = #{attrctorId}
|
||||
</if>
|
||||
<if test="attrctorId != null and attrctorId != ''">
|
||||
and esi.ATTRCTOR_ID LIKE CONCAT('%', #{attrctorId}, '%')
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="selectAttractDetail" parameterType="kr.co.uplus.ez.api.attractMgt.dto.ChannelDetailReqDto" resultType="kr.co.uplus.ez.api.attractMgt.dto.ChannelDetailRes">
|
||||
|
||||
Reference in New Issue
Block a user