mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 00:03:51 +09:00
TC 수정사항 반영
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
esu.USER_ID as SERVICE_ID,
|
||||
eci.CUST_NM as CUST_NM ,
|
||||
esi.ENTR_NO as REG_NO,
|
||||
DATE_FORMAT(esi.OPN_DT, '%Y-%m-%d') AS REG_DT,
|
||||
DATE_FORMAT(esi.SUBS_DT, '%Y-%m-%d') AS REG_DT,
|
||||
esi.SUBS_STTUS_CD ,
|
||||
esi.PROD_CD,
|
||||
esi.USER_SEQ as adminSeq,
|
||||
@@ -90,7 +90,7 @@
|
||||
on eiu.LOGIN_ID = esi.ATTRCTOR_ID
|
||||
WHERE 1 = 1
|
||||
<include refid="subsListCondition"/>
|
||||
ORDER BY esi.OPN_DT DESC
|
||||
ORDER BY esi.SUBS_DT DESC
|
||||
LIMIT #{page}, #{pagePerRows}) A, ( SELECT @ROWNUM := #{page} ) AS R
|
||||
</select>
|
||||
|
||||
@@ -146,11 +146,11 @@
|
||||
esu.USER_ID as SERVICE_ID,
|
||||
eci.CUST_NM as CUST_NM ,
|
||||
esi.ENTR_NO as REG_NO,
|
||||
DATE_FORMAT(esi.OPN_DT, '%Y-%m-%d') AS REG_DT,
|
||||
DATE_FORMAT(esi.SUBS_DT, '%Y-%m-%d') AS REG_DT,
|
||||
esi.SUBS_STTUS_CD ,
|
||||
esi.PROD_CD,
|
||||
esi.USER_SEQ as adminSeq,
|
||||
esi.ATTRCTOR_ID as attrctorId
|
||||
esi.USER_SEQ as adminSeq,
|
||||
esi.ATTRCTOR_ID as attrctorId
|
||||
FROM
|
||||
hubez_common.EZ_SUBS_INFO esi
|
||||
INNER JOIN hubez_common.EZ_SVC_USER esu
|
||||
@@ -164,7 +164,7 @@
|
||||
on eiu.LOGIN_ID = esi.ATTRCTOR_ID
|
||||
WHERE 1 = 1
|
||||
<include refid="subsListCondition"/>
|
||||
ORDER BY esi.OPN_DT DESC ) A, ( SELECT @ROWNUM := 0 ) AS R
|
||||
ORDER BY esi.SUBS_DT DESC ) A, ( SELECT @ROWNUM := 0 ) AS R
|
||||
</select>
|
||||
<sql id="subsListCondition">
|
||||
<if test="startDt != null and startDt != ''">
|
||||
@@ -174,7 +174,7 @@
|
||||
AND esi.SUBS_DT <![CDATA[ <= ]]> STR_TO_DATE(concat(REPLACE(#{endDt}, '-', '' ),'235959'), '%Y%m%d%H%i%s')
|
||||
</if>
|
||||
<if test="searchType1 != null and searchType1 != ''">
|
||||
AND esu.USER_STTUS_CD = #{searchType1}
|
||||
AND esi.SUBS_STTUS_CD = #{searchType1}
|
||||
</if>
|
||||
<if test="searchType2 != null and searchType2 != ''">
|
||||
<if test="searchType2 == '01'">
|
||||
@@ -216,13 +216,13 @@
|
||||
</if>
|
||||
<if test="searchType3 != null and searchType3 != ''">
|
||||
<if test="searchType3 == '01' and searchText1 != null and searchText1 != ''">
|
||||
AND UPPER(eci.CUST_NM) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
AND UPPER(eci.CUST_NM) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
<if test="searchType3 == '02' and searchText1 != null and searchText1 != ''">
|
||||
AND esi.ENTR_NO = #{searchText1}
|
||||
AND UPPER(esi.ENTR_NO) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
<if test="searchType3 == '03' and searchText1 != null and searchText1 != ''">
|
||||
AND esu.USER_ID = #{searchText1}
|
||||
AND UPPER(esu.USER_ID) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
</if>
|
||||
</sql>
|
||||
@@ -444,36 +444,33 @@
|
||||
</update>
|
||||
|
||||
<select id="selectCarryOverList" parameterType="kr.co.uplus.ez.api.custMgt.dto.CarryOverListReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.CarryOver">
|
||||
/* custMgt-mapper.xml(selectCarryOverList) */
|
||||
SELECT null AS COLEC_TMS
|
||||
, DATE_FORMAT(STR_TO_DATE(eul.LMT_YM ,'%Y%m'),'%Y-%m') AS LMT_YM
|
||||
, esu1.USER_ID AS USER_ID
|
||||
, SUM(FX_LMT_AMT + CFWD_AMT) AS START_AMOUNT
|
||||
, ROUND(0) AS USE_AMOUNT
|
||||
, ROUND(0) AS KRRR_AMOUNT
|
||||
, ROUND(0) AS EXTSH_AMOUNT
|
||||
FROM hubez_admin.EZ_USER_LMT eul
|
||||
JOIN hubez_common.EZ_SVC_USER esu1 ON eul.USER_SEQ = esu1.USER_SEQ
|
||||
WHERE esu1.USER_ID =#{serviceId} and eul.LMT_YM = DATE_FORMAT(now(), '%Y%m')
|
||||
UNION ALL
|
||||
(SELECT MAX(eud.COLEC_TMS) AS COLEC_TMS
|
||||
,DATE_FORMAT(eud.USE_YM, '%Y-%m') AS LMT_YM
|
||||
,esu.USER_ID
|
||||
,ROUND(SUM(IFNULL(eud.FX_LMT_AMT,0) + IFNULL(eud.CFWD_AMT,0))) AS START_AMOUNT
|
||||
,ROUND(SUM(IFNULL(eud.FX_USE_AMT,0) + IFNULL(eud.CFWD_USE_AMT,0) + IFNULL(eud.MRT_USE_AMT,0))) AS USE_AMOUNT
|
||||
,ROUND(IFNULL(eud.CFWD_AMT,0)) AS KRRR_AMOUNT
|
||||
,ROUND(IFNULL(eud.EXTNC_AMT,0)) AS EXTSH_AMOUNT
|
||||
FROM hubez_admin.EZ_UTXNCOLEC_DTL eud
|
||||
JOIN hubez_common.EZ_SUBS_INFO esi ON eud.SUBS_ID = esi.SUBS_ID
|
||||
JOIN hubez_common.EZ_SVC_USER esu ON esi.USER_SEQ = esu.USER_SEQ
|
||||
WHERE 1=1
|
||||
<![CDATA[
|
||||
AND eud.USE_YM >= DATE_ADD(NOW(), INTERVAL -4 MONTH)
|
||||
AND eud.USE_YM < NOW()
|
||||
]]>
|
||||
AND esu.USER_ID = #{serviceId}
|
||||
GROUP BY eud.USE_YM, eud.SUBS_ID
|
||||
ORDER BY eud.USE_YM DESC)
|
||||
/* custMgt-mapper.xml(selectCarryOverList) */
|
||||
SELECT DATE_FORMAT(STR_TO_DATE(eul.LMT_YM ,'%Y%m'),'%Y-%m') AS LMT_YM
|
||||
, esu1.USER_ID AS USER_ID
|
||||
, (FX_LMT_AMT + CFWD_AMT) AS START_AMOUNT
|
||||
, ROUND(0) AS USE_AMOUNT
|
||||
, ROUND(0) AS KRRR_AMOUNT
|
||||
, ROUND(0) AS EXTSH_AMOUNT
|
||||
FROM hubez_admin.EZ_USER_LMT eul
|
||||
JOIN hubez_common.EZ_SVC_USER esu1 ON eul.USER_SEQ = esu1.USER_SEQ
|
||||
WHERE esu1.USER_ID =#{serviceId} and eul.LMT_YM = DATE_FORMAT(now(), '%Y%m')
|
||||
UNION ALL
|
||||
(SELECT DATE_FORMAT(eud.USE_YM, '%Y-%m') AS LMT_YM
|
||||
,esu.USER_ID
|
||||
,ROUND(IFNULL(eud.FX_LMT_AMT,0) + IFNULL(eud.CFWD_AMT,0)) AS START_AMOUNT
|
||||
,ROUND(IFNULL(eud.FX_USE_AMT,0) + IFNULL(eud.CFWD_USE_AMT,0) + IFNULL(eud.MRT_USE_AMT,0)) AS USE_AMOUNT
|
||||
,ROUND(IFNULL(eud.CFWD_AMT,0)) AS KRRR_AMOUNT
|
||||
,ROUND(IFNULL(eud.EXTNC_AMT,0)) AS EXTSH_AMOUNT
|
||||
FROM hubez_admin.EZ_UTXNCOLEC_DTL eud
|
||||
join hubez_admin.EZ_USETXN_COLEC euc on euc.USE_YM = eud.USE_YM and euc.COLEC_TMS = eud.COLEC_TMS and euc.LAST_YN = 'Y'
|
||||
JOIN hubez_common.EZ_SUBS_INFO esi ON eud.SUBS_ID = esi.SUBS_ID
|
||||
JOIN hubez_common.EZ_SVC_USER esu ON esi.USER_SEQ = esu.USER_SEQ
|
||||
<![CDATA[
|
||||
AND eud.USE_YM >= DATE_ADD(NOW(), INTERVAL -4 MONTH)
|
||||
AND eud.USE_YM < NOW()
|
||||
]]>
|
||||
AND esu.USER_ID = #{serviceId}
|
||||
) ORDER BY LMT_YM DESC
|
||||
</select>
|
||||
|
||||
<select id="selectImUser" parameterType="kr.co.uplus.ez.common.data.ImUser" resultType="kr.co.uplus.ez.common.data.ImUser">
|
||||
@@ -542,13 +539,13 @@
|
||||
</if>
|
||||
<if test="searchType3 != null and searchType3 != ''">
|
||||
<if test="searchType3 == '01' and searchText1 != null and searchText1 != ''">
|
||||
AND esu.USER_ID = #{searchText1}
|
||||
AND UPPER(esu.USER_ID) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
<if test="searchType3 == '02' and searchText1 != null and searchText1 != ''">
|
||||
AND UPPER(esu.USER_NM) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
AND UPPER(esu.USER_NM) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
<if test="searchType3 == '03' and searchText1 != null and searchText1 != ''">
|
||||
AND esu.USER_SEQ = (SELECT PRNTS_USER_SEQ FROM hubez_common.EZ_SVC_USER WHERE USER_ID = #{searchText1} AND USER_TP_CD ='01')
|
||||
AND esu.USER_SEQ = (SELECT PRNTS_USER_SEQ FROM hubez_common.EZ_SVC_USER WHERE USER_ID = #{searchText1} AND USER_TP_CD ='01')
|
||||
</if>
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
Reference in New Issue
Block a user