mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 06:38:22 +09:00
소스검증을 위한 수정 변경
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
/* riskMgt-mapper.xml(selectSndrnoBlckTotalCnt) */
|
||||
SELECT
|
||||
COUNT(*) AS TOTALCNT
|
||||
FROM ${HUBEZ_COMMON}.EZ_SNDRNO_BLCK esb
|
||||
FROM hubez_common.EZ_SNDRNO_BLCK esb
|
||||
WHERE 1 = 1
|
||||
<include refid="sndnoBlckCondition" />
|
||||
</select>
|
||||
@@ -42,7 +42,7 @@
|
||||
, esb.CHG_ID
|
||||
, DATE_FORMAT(esb.CHG_DT, '%Y-%m-%d') As LAST_CHG_DT
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_SNDRNO_BLCK esb
|
||||
hubez_common.EZ_SNDRNO_BLCK esb
|
||||
WHERE 1 = 1
|
||||
<include refid="sndnoBlckCondition"/>
|
||||
ORDER BY esb.CHG_DT DESC
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
<sql id="sndnoBlckCondition">
|
||||
<if test="regId != null and regId != ''">
|
||||
AND esb.REG_ID LIKE UPPER(CONCAT('%', #{regId}, '%'))
|
||||
AND UPPER(esb.REG_ID) LIKE UPPER(CONCAT('%', #{regId}, '%'))
|
||||
</if>
|
||||
<if test="sndblckTpCd != null and sndblckTpCd != ''">
|
||||
AND esb.SNDBLCK_TP_CD = #{sndblckTpCd}
|
||||
@@ -76,14 +76,14 @@
|
||||
,BLCK_RSN_CD
|
||||
,MENO
|
||||
,BLCK_YN
|
||||
FROM ${HUBEZ_COMMON}.EZ_SNDRNO_BLCK esb
|
||||
FROM hubez_common.EZ_SNDRNO_BLCK esb
|
||||
WHERE esb.BLCK_SNDRNO = #{blckSndrno}
|
||||
</select>
|
||||
|
||||
<insert id="insertSndrnoBlck" parameterType="kr.co.uplus.ez.api.riskMgt.dto.SendNumInsertIntrcpReqDto">
|
||||
/* riskMgt-mapper.xml(insertSndrnoBlck) */
|
||||
INSERT
|
||||
INTO ${HUBEZ_COMMON}.EZ_SNDRNO_BLCK
|
||||
INTO hubez_common.EZ_SNDRNO_BLCK
|
||||
(BLCK_SNDRNO
|
||||
, SNDBLCK_TP_CD
|
||||
, BLCK_RSN_CD
|
||||
@@ -108,7 +108,7 @@
|
||||
<update id="updateSndrnoBlck" parameterType="kr.co.uplus.ez.api.riskMgt.dto.SendNumUpdateIntrcplReqDto">
|
||||
/* riskMgt-mapper.xml(updateSndrnoBlck) */
|
||||
UPDATE
|
||||
${HUBEZ_COMMON}.EZ_SNDRNO_BLCK
|
||||
hubez_common.EZ_SNDRNO_BLCK
|
||||
SET
|
||||
CHG_ID = #{chgId}
|
||||
, CHG_DT = NOW()
|
||||
@@ -131,7 +131,7 @@
|
||||
/* riskMgt-mapper.xml(deleteSndrnoBlck) */
|
||||
DELETE
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_SNDRNO_BLCK
|
||||
hubez_common.EZ_SNDRNO_BLCK
|
||||
WHERE
|
||||
BLCK_SNDRNO = #{blckSndrno}
|
||||
</delete>
|
||||
@@ -146,15 +146,16 @@
|
||||
esu.CUST_SEQ
|
||||
,er.RCVBLCKNO
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_RCVBLCK_080 er
|
||||
INNER JOIN ${HUBEZ_COMMON}.EZ_SVC_USER esu
|
||||
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
|
||||
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>
|
||||
@@ -177,17 +178,18 @@
|
||||
SELECT
|
||||
DTL_CD_NM
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_CD_DTL
|
||||
hubez_common.EZ_CD_DTL
|
||||
WHERE
|
||||
GRP_CD = 'BLKCALL_REG_TP_CD'
|
||||
AND DTL_CD = er.REG_TP_CD) AS REG_TP_CD
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_RCVBLCK_080 er
|
||||
INNER JOIN ${HUBEZ_COMMON}.EZ_SVC_USER esu
|
||||
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
|
||||
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
|
||||
ORDER BY er.REG_DT DESC
|
||||
@@ -212,8 +214,8 @@
|
||||
SELECT
|
||||
COUNT(*) AS TOTAL_CNT
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_MSG_BLCKWORD emb
|
||||
LEFT OUTER JOIN ${HUBEZ_COMMON}.EZ_BLCKWORD_DTL ebd
|
||||
hubez_common.EZ_MSG_BLCKWORD emb
|
||||
LEFT OUTER JOIN hubez_common.EZ_BLCKWORD_DTL ebd
|
||||
ON emb.SEQ_NO = ebd.SEQ_NO
|
||||
WHERE 1 = 1
|
||||
<include refid="msgBlckwordListCondition"/>
|
||||
@@ -235,14 +237,14 @@
|
||||
SELECT
|
||||
DTL_CD_NM
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_CD_DTL
|
||||
hubez_common.EZ_CD_DTL
|
||||
WHERE
|
||||
GRP_CD = 'SNDBLCK_RSN_CD'
|
||||
AND DTL_CD = emb.BLCK_RSN_CD) AS BLCK_RSN_CD
|
||||
, emb.REG_ID
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_MSG_BLCKWORD emb
|
||||
LEFT OUTER JOIN ${HUBEZ_COMMON}.EZ_BLCKWORD_DTL ebd
|
||||
hubez_common.EZ_MSG_BLCKWORD emb
|
||||
LEFT OUTER JOIN hubez_common.EZ_BLCKWORD_DTL ebd
|
||||
ON emb.SEQ_NO = ebd.SEQ_NO
|
||||
WHERE 1 = 1
|
||||
<include refid="msgBlckwordListCondition"/>
|
||||
@@ -253,7 +255,7 @@
|
||||
|
||||
<sql id="msgBlckwordListCondition">
|
||||
<if test="regId != null and regId != ''">
|
||||
AND emb.REG_ID = #{regId}
|
||||
AND UPPER(emb.REG_ID) LIKE UPPER(CONCAT('%', #{regId}, '%'))
|
||||
</if>
|
||||
<if test="blckRsnCd != null and blckRsnCd != ''">
|
||||
AND emb.BLCK_RSN_CD = #{blckRsnCd}
|
||||
@@ -272,7 +274,7 @@
|
||||
, MEMO
|
||||
, BLCK_YN
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_MSG_BLCKWORD emb
|
||||
hubez_common.EZ_MSG_BLCKWORD emb
|
||||
WHERE emb.SEQ_NO = #{seqNo}
|
||||
</select>
|
||||
|
||||
@@ -282,19 +284,19 @@
|
||||
ebd.SEQ_NO
|
||||
, ebd.WORD
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_BLCKWORD_DTL ebd
|
||||
hubez_common.EZ_BLCKWORD_DTL ebd
|
||||
WHERE ebd.SEQ_NO = #{seqNo}
|
||||
</select>
|
||||
|
||||
<select id="selectMsgBlckWordSeq" resultType="String">
|
||||
/* riskMgt-mapper.xml(selectMsgBlckWordSeq) */
|
||||
SELECT ${HUBEZ_COMMON}.FUN_NEXT_SEQ('MSG_BLCKWORD_SEQ')
|
||||
SELECT hubez_common.FUN_NEXT_SEQ('MSG_BLCKWORD_SEQ')
|
||||
</select>
|
||||
|
||||
<insert id="insertMsgBlckword" parameterType="kr.co.uplus.ez.api.riskMgt.dto.MsgInsertIntrcpReqDto">
|
||||
/* riskMgt-mapper.xml(insertMsgBlckword) */
|
||||
INSERT
|
||||
INTO ${HUBEZ_COMMON}.EZ_MSG_BLCKWORD (
|
||||
INTO hubez_common.EZ_MSG_BLCKWORD (
|
||||
SEQ_NO
|
||||
, BLCK_CONT_CD
|
||||
, BLCK_RSN_CD
|
||||
@@ -319,7 +321,7 @@
|
||||
<insert id="insertBlckwordDtl" parameterType="java.util.List">
|
||||
/* riskMgt-mapper.xml(insertBlckwordDtl) */
|
||||
INSERT
|
||||
INTO ${HUBEZ_COMMON}.EZ_BLCKWORD_DTL (
|
||||
INTO hubez_common.EZ_BLCKWORD_DTL (
|
||||
SEQ_NO
|
||||
, WORD
|
||||
, REG_ID
|
||||
@@ -334,7 +336,7 @@
|
||||
<update id="updateMsgBlckword" parameterType="kr.co.uplus.ez.api.riskMgt.dto.MsgUpdateIntrcplReqDto">
|
||||
/* riskMgt-mapper.xml(updateMsgBlckword) */
|
||||
UPDATE
|
||||
${HUBEZ_COMMON}.EZ_MSG_BLCKWORD
|
||||
hubez_common.EZ_MSG_BLCKWORD
|
||||
SET
|
||||
CHG_ID = #{regId}
|
||||
, CHG_DT = NOW()
|
||||
@@ -357,7 +359,7 @@
|
||||
<delete id="deleteMsgBlckword" parameterType="kr.co.uplus.ez.api.riskMgt.dto.MsgDeleteIntrcpReqDto">
|
||||
/* riskMgt-mapper.xml(deleteMsgBlckword) */
|
||||
DELETE FROM
|
||||
${HUBEZ_COMMON}.EZ_MSG_BLCKWORD
|
||||
hubez_common.EZ_MSG_BLCKWORD
|
||||
WHERE
|
||||
SEQ_NO = #{seqNo}
|
||||
</delete>
|
||||
@@ -365,7 +367,7 @@
|
||||
<delete id="deleteBlckwordDtl" parameterType="String">
|
||||
/* riskMgt-mapper.xml(deleteBlckwordDtl) */
|
||||
DELETE FROM
|
||||
${HUBEZ_COMMON}.EZ_BLCKWORD_DTL
|
||||
hubez_common.EZ_BLCKWORD_DTL
|
||||
WHERE SEQ_NO = #{seqNo}
|
||||
</delete>
|
||||
|
||||
@@ -374,12 +376,13 @@
|
||||
SELECT
|
||||
COUNT(*)
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_WEBSND_BLCK ewb
|
||||
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)
|
||||
<include refid="websndBlckListCondition"/>
|
||||
</select>
|
||||
|
||||
<select id="selectWebsndBlckList" parameterType="kr.co.uplus.ez.api.riskMgt.dto.WebInsertIntrcpReqDto" resultType="kr.co.uplus.ez.api.riskMgt.dto.WebIntrcpListResDto">
|
||||
<select id="selectWebsndBlckList" parameterType="kr.co.uplus.ez.api.riskMgt.dto.WebInsertIntrcpReqDto" resultType="kr.co.uplus.ez.api.riskMgt.dto.WebIntrcpList">
|
||||
/* riskMgt-mapper.xml(selectWebsndBlckList) */
|
||||
SELECT
|
||||
@ROWNUM := @ROWNUM + 1 AS NO
|
||||
@@ -392,13 +395,14 @@
|
||||
SELECT
|
||||
DTL_CD_NM
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_CD_DTL
|
||||
hubez_common.EZ_CD_DTL
|
||||
WHERE
|
||||
GRP_CD = 'WEBBLCK_TP_CD'
|
||||
AND DTL_CD = ewb.BLCK_TP_CD) AS 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
|
||||
@@ -407,14 +411,15 @@
|
||||
SELECT
|
||||
DTL_CD_NM
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_CD_DTL
|
||||
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
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_WEBSND_BLCK ewb
|
||||
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)
|
||||
<include refid="websndBlckListCondition"/>
|
||||
ORDER BY ewb.BLCK_DT DESC
|
||||
LIMIT #{page}, #{pagePerRows}
|
||||
@@ -423,9 +428,6 @@
|
||||
</select>
|
||||
|
||||
<sql id="websndBlckListCondition">
|
||||
<if test="blckDt != null and blckDt != ''">
|
||||
AND DATE_FORMAT(ewb.BLCK_DT, '%Y-%m-%d') = #{blckDt}
|
||||
</if>
|
||||
<if test="blckRsnCd != null and blckRsnCd != ''">
|
||||
AND BLCK_RSN_CD = #{blckRsnCd}
|
||||
</if>
|
||||
@@ -436,13 +438,13 @@
|
||||
AND SNDRNO = #{sndrno}
|
||||
</if>
|
||||
<if test="searchType1 != null and searchType1 != ''">
|
||||
<if test="searchType3 == '01' and searchText1 != null and searchText1 != ''">
|
||||
<if test="searchType1 == '01' and searchText1 != null and searchText1 != ''">
|
||||
AND UPPER(CUST_NM) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
<if test="searchType3 == '02' and searchText1 != null and searchText1 != ''">
|
||||
AND SNDRNO = #{searchText1}
|
||||
<if test="searchType1 == '02' and searchText1 != null and searchText1 != ''">
|
||||
AND BIZRNO = #{searchText1}
|
||||
</if>
|
||||
<if test="searchType3 == '03' and searchText1 != null and searchText1 != ''">
|
||||
<if test="searchType1 == '03' and searchText1 != null and searchText1 != ''">
|
||||
AND USER_ID = #{searchText1}
|
||||
</if>
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user