mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 07:37:12 +09:00
TC 수정사항 반영
This commit is contained in:
@@ -145,32 +145,29 @@
|
||||
|
||||
<select id="selectRcvblck080ListTotalCnt" parameterType="kr.co.uplus.ez.api.riskMgt.dto.ZezNumIntrcpListReqDto" resultType="int">
|
||||
/* riskMgt-mapper.xml(selectRcvblck080ListTotalCnt) */
|
||||
SELECT
|
||||
COUNT(*) AS TOTAL_CNT
|
||||
SELECT count(*) AS TOTAL_CNT
|
||||
FROM
|
||||
(SELECT
|
||||
esu.CUST_SEQ
|
||||
,er.RCVBLCKNO
|
||||
FROM
|
||||
hubez_common.EZ_RCVBLCK_080 er
|
||||
INNER JOIN hubez_common.EZ_SVC_USER esu
|
||||
ON
|
||||
er.AUTHCD_080 = esu.AUTHCD_080
|
||||
INNER JOIN hubez_common.EZ_CUST_INFO eci
|
||||
ON
|
||||
esu.CUST_SEQ = eci.CUST_SEQ
|
||||
WHERE
|
||||
1 = 1
|
||||
hubez_common.EZ_RCVBLCK_080 er
|
||||
INNER JOIN hubez_common.EZ_SVC_USER esu
|
||||
ON er.AUTHCD_080 = esu.AUTHCD_080
|
||||
INNER JOIN hubez_common.EZ_CUST_INFO eci
|
||||
ON esu.CUST_SEQ = eci.CUST_SEQ
|
||||
WHERE 1 = 1
|
||||
AND esu.USER_SEQ = esu.PRNTS_USER_SEQ
|
||||
<include refid="selectRcvblck080Condition"/>
|
||||
GROUP BY esu.CUST_SEQ, er.RCVBLCKNO) A
|
||||
</select>
|
||||
|
||||
<select id="selectRcvblck080List" parameterType="kr.co.uplus.ez.api.riskMgt.dto.ZezNumIntrcpListReqDto" resultType="kr.co.uplus.ez.api.riskMgt.dto.ZezNumIntrcpList">
|
||||
/* riskMgt-mapper.xml(selectRcvblck080List) */
|
||||
SELECT
|
||||
@ROWNUM := @ROWNUM + 1 AS NO
|
||||
, A.*
|
||||
@ROWNUM := @ROWNUM + 1 AS NO
|
||||
, A.CUST_NM
|
||||
, A.BIZRNO
|
||||
, A.AUTHCD_080
|
||||
, A.RCVBLCKNO
|
||||
, A.USER_ID
|
||||
, A.REG_DT
|
||||
, ( SELECT DTL_CD_NM FROM hubez_common.EZ_CD_DTL WHERE GRP_CD = 'BLKCALL_REG_TP_CD' AND DTL_CD = A.REG_TP_CD) AS REG_TP_CD
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
@@ -180,14 +177,7 @@
|
||||
, er.RCVBLCKNO
|
||||
, esu.USER_ID
|
||||
, DATE_FORMAT(er.REG_DT, '%Y-%m-%d') AS REG_DT
|
||||
,(
|
||||
SELECT
|
||||
DTL_CD_NM
|
||||
FROM
|
||||
hubez_common.EZ_CD_DTL
|
||||
WHERE
|
||||
GRP_CD = 'BLKCALL_REG_TP_CD'
|
||||
AND DTL_CD = er.REG_TP_CD) AS REG_TP_CD
|
||||
, er.REG_TP_CD
|
||||
FROM
|
||||
hubez_common.EZ_RCVBLCK_080 er
|
||||
INNER JOIN hubez_common.EZ_SVC_USER esu
|
||||
@@ -197,7 +187,6 @@
|
||||
WHERE 1 = 1
|
||||
AND esu.USER_SEQ = esu.PRNTS_USER_SEQ
|
||||
<include refid="selectRcvblck080Condition"/>
|
||||
GROUP BY esu.CUST_SEQ, er.RCVBLCKNO
|
||||
ORDER BY er.REG_DT DESC
|
||||
LIMIT #{page}, #{pagePerRows}
|
||||
) A, ( SELECT @ROWNUM := #{page} ) AS R
|
||||
@@ -205,13 +194,13 @@
|
||||
|
||||
<sql id="selectRcvblck080Condition">
|
||||
<if test="custNm != null and custNm != ''">
|
||||
AND UPPER(eci.CUST_NM) LIKE UPPER(CONCAT('%', #{custNm}, '%'))
|
||||
AND eci.CUST_NM LIKE CONCAT('%', #{custNm}, '%')
|
||||
</if>
|
||||
<if test="authcd080 != null and authcd080 != ''">
|
||||
AND er.AUTHCD_080 = #{authcd080}
|
||||
AND er.AUTHCD_080 LIKE CONCAT('%', #{authcd080}, '%')
|
||||
</if>
|
||||
<if test="rcvblckno != null and rcvblckno != ''">
|
||||
AND er.RCVBLCKNO = #{rcvblckno}
|
||||
AND er.RCVBLCKNO LIKE CONCAT('%', #{rcvblckno},'%')
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
@@ -398,40 +387,37 @@
|
||||
/* riskMgt-mapper.xml(selectWebsndBlckList) */
|
||||
SELECT
|
||||
@ROWNUM := @ROWNUM + 1 AS NO
|
||||
, A.*
|
||||
, A.SEQ_NO
|
||||
, A.BLCK_TP_CD
|
||||
, A.CUST_SEQ
|
||||
, A.USER_SEQ
|
||||
, A.USER_ID
|
||||
,(SELECT esu1.USER_ID FROM hubez_common.EZ_SVC_USER esu1 WHERE esu1.PRNTS_USER_SEQ = A.USER_SEQ LIMIT 1 ) AS SERVICE_ID
|
||||
, A.SNDRNO
|
||||
, A.CUST_NM
|
||||
, A.BIZRNO
|
||||
, A.RCVNO
|
||||
,(SELECT DTL_CD_NM FROM hubez_common.EZ_CD_DTL WHERE GRP_CD = 'SNDBLCK_RSN_CD' AND DTL_CD = A.BLCK_RSN_CD) AS BLCK_RSN_CD
|
||||
, DATE_FORMAT(A.BLCK_DT, '%Y-%m-%d') AS BLCK_DT
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
SEQ_NO
|
||||
,(
|
||||
SELECT
|
||||
DTL_CD_NM
|
||||
FROM
|
||||
hubez_common.EZ_CD_DTL
|
||||
WHERE
|
||||
GRP_CD = 'WEBBLCK_TP_CD'
|
||||
AND DTL_CD = ewb.BLCK_TP_CD) AS BLCK_TP_CD
|
||||
,ewb.BLCK_TP_CD
|
||||
, CUST_SEQ
|
||||
, USER_SEQ
|
||||
, USER_ID
|
||||
,(SELECT esu1.USER_ID FROM hubez_common.EZ_SVC_USER esu1 WHERE esu1.PRNTS_USER_SEQ = USER_SEQ LIMIT 1 ) AS SERVICE_ID
|
||||
, SNDRNO
|
||||
, CUST_NM
|
||||
, BIZRNO
|
||||
, RCVNO
|
||||
,(
|
||||
SELECT
|
||||
DTL_CD_NM
|
||||
FROM
|
||||
hubez_common.EZ_CD_DTL
|
||||
WHERE
|
||||
GRP_CD = 'SNDBLCK_RSN_CD'
|
||||
AND DTL_CD = ewb.BLCK_RSN_CD) AS BLCK_RSN_CD
|
||||
, DATE_FORMAT(ewb.BLCK_DT, '%Y-%m-%d') AS BLCK_DT
|
||||
, ewb.BLCK_RSN_CD
|
||||
, ewb.BLCK_DT
|
||||
FROM
|
||||
hubez_common.EZ_WEBSND_BLCK ewb
|
||||
WHERE 1 = 1
|
||||
AND ewb.BLCK_DT BETWEEN STR_TO_DATE(#{blckDt}, '%Y%m%d') AND DATE_ADD(STR_TO_DATE(#{blckDt}, '%Y%m%d'), INTERVAL 1 DAY)
|
||||
AND ewb.BLCK_DT <![CDATA[ >= ]]> #{blckDt}
|
||||
and ewb.BLCK_DT <![CDATA[ < ]]> DATE_ADD(#{blckDt}, INTERVAL 1 DAY)
|
||||
<include refid="websndBlckListCondition"/>
|
||||
ORDER BY ewb.BLCK_DT DESC
|
||||
LIMIT #{page}, #{pagePerRows}
|
||||
@@ -447,17 +433,20 @@
|
||||
AND BLCK_TP_CD = #{blckTpCd}
|
||||
</if>
|
||||
<if test="sndrno != null and sndrno != ''">
|
||||
AND SNDRNO = #{sndrno}
|
||||
AND SNDRNO LIKE CONCAT('%', #{sndrno},'%')
|
||||
</if>
|
||||
<if test="rcvno != null and rcvno != ''">
|
||||
AND RCVNO LIKE CONCAT('%', #{rcvno},'%')
|
||||
</if>
|
||||
<if test="searchType1 != null and searchType1 != ''">
|
||||
<if test="searchType1 == '01' and searchText1 != null and searchText1 != ''">
|
||||
AND UPPER(CUST_NM) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
AND CUST_NM LIKE CONCAT('%', #{searchText1}, '%')
|
||||
</if>
|
||||
<if test="searchType1 == '02' and searchText1 != null and searchText1 != ''">
|
||||
AND BIZRNO = #{searchText1}
|
||||
AND BIZRNO LIKE CONCAT('%', #{searchText1},'%')
|
||||
</if>
|
||||
<if test="searchType1 == '03' and searchText1 != null and searchText1 != ''">
|
||||
AND USER_ID = #{searchText1}
|
||||
AND USER_ID LIKE CONCAT('%', #{searchText1},'%')
|
||||
</if>
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
Reference in New Issue
Block a user