mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 02:16:34 +09:00
Merge branch '20230314_cashcharge' into develop
This commit is contained in:
@@ -1143,4 +1143,517 @@
|
||||
WHERE
|
||||
ENTR_NO = #{entrNo}
|
||||
</update>
|
||||
|
||||
<select id="cntChrgList" parameterType="kr.co.uplus.ez.api.custMgt.dto.ChrgListReqDto" resultType="int">
|
||||
SELECT
|
||||
|
||||
COUNT(*) AS TOTALCNT
|
||||
|
||||
FROM hubez_admin.EZ_CHARGE_MNG ecm
|
||||
INNER JOIN hubez_common.EZ_SVC_USER esu ON esu.USER_SEQ = ecm.USER_SEQ
|
||||
INNER JOIN hubez_common.EZ_CUST_INFO eci ON eci.CUST_SEQ = esu.CUST_SEQ
|
||||
INNER JOIN hubez_common.EZ_SUBS_INFO esi ON esi.USER_SEQ = ecm.USER_SEQ
|
||||
WHERE 1 = 1
|
||||
AND ecm.USE_YN ='Y'
|
||||
AND esi.SUBS_STTUS_CD ='02'
|
||||
AND (#{startDt} BETWEEN ecm.STRT_YM AND ecm.END_YM
|
||||
OR #{endDt} BETWEEN ecm.STRT_YM AND ecm.END_YM
|
||||
OR ecm.STRT_YM BETWEEN #{startDt} AND #{endDt}
|
||||
OR ecm.END_YM BETWEEN #{startDt} AND #{endDt})
|
||||
<if test="searchType1 != null and searchType1 != ''">
|
||||
<if test="searchType1 == '01' and searchText1 != null and searchText1 != ''">
|
||||
AND UPPER(eci.CUST_NM) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
<if test="searchType1 == '02' and searchText1 != null and searchText1 != ''">
|
||||
AND UPPER(eci.BIZRNO) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
<if test="searchType1 == '03' and searchText1 != null and searchText1 != ''">
|
||||
AND UPPER(esu.USER_ID) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
</if>
|
||||
ORDER BY ecm.CHRG_SEQ DESC
|
||||
</select>
|
||||
|
||||
<!-- 충전관리 목록 조회 -->
|
||||
<select id="selectChrgList" parameterType="kr.co.uplus.ez.api.custMgt.dto.ChrgListReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.ChrgList">
|
||||
SELECT
|
||||
@ROWNUM := @ROWNUM + 1 AS NO
|
||||
,A.*
|
||||
FROM (
|
||||
SELECT
|
||||
eci.CUST_NM
|
||||
, esu.USER_ID
|
||||
, ecm.CHRG_DIV
|
||||
, ecm.STRT_YM
|
||||
, ecm.END_YM
|
||||
, ecm.CHRG_AMT
|
||||
, ecm.USE_YN
|
||||
, eci.BIZRNO
|
||||
, ecm.CHRG_SEQ
|
||||
|
||||
FROM hubez_admin.EZ_CHARGE_MNG ecm
|
||||
INNER JOIN hubez_common.EZ_SVC_USER esu ON esu.USER_SEQ = ecm.USER_SEQ
|
||||
INNER JOIN hubez_common.EZ_CUST_INFO eci ON eci.CUST_SEQ = esu.CUST_SEQ
|
||||
INNER JOIN hubez_common.EZ_SUBS_INFO esi ON esi.USER_SEQ = ecm.USER_SEQ
|
||||
WHERE 1 = 1
|
||||
AND ecm.USE_YN ='Y'
|
||||
AND esi.SUBS_STTUS_CD ='02'
|
||||
AND (#{startDt} BETWEEN ecm.STRT_YM AND ecm.END_YM
|
||||
OR #{endDt} BETWEEN ecm.STRT_YM AND ecm.END_YM
|
||||
OR ecm.STRT_YM BETWEEN #{startDt} AND #{endDt}
|
||||
OR ecm.END_YM BETWEEN #{startDt} AND #{endDt})
|
||||
<if test="searchType1 != null and searchType1 != ''">
|
||||
<if test="searchType1 == '01' and searchText1 != null and searchText1 != ''">
|
||||
AND UPPER(eci.CUST_NM) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
<if test="searchType1 == '02' and searchText1 != null and searchText1 != ''">
|
||||
AND UPPER(eci.BIZRNO) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
<if test="searchType1 == '03' and searchText1 != null and searchText1 != ''">
|
||||
AND UPPER(esu.USER_ID) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
</if>
|
||||
ORDER BY ecm.CHRG_SEQ DESC
|
||||
LIMIT #{page}, #{pagePerRows}) A, ( SELECT @ROWNUM := #{page} ) AS R
|
||||
</select>
|
||||
|
||||
<!-- 충전관리 상세 조회 -->
|
||||
<select id="selectChrgDetail" parameterType="kr.co.uplus.ez.api.custMgt.dto.ChrgDetailReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.ChrgDetail">
|
||||
SELECT
|
||||
eci.CUST_NM
|
||||
, esu.USER_ID
|
||||
, ecm.CHRG_DIV
|
||||
, ecm.STRT_YM
|
||||
, ecm.END_YM
|
||||
, ecm.CHRG_AMT
|
||||
, ecm.USE_YN
|
||||
, eci.BIZRNO
|
||||
, ecm.CHRG_SEQ
|
||||
FROM hubez_admin.EZ_CHARGE_MNG ecm
|
||||
INNER JOIN hubez_common.EZ_SVC_USER esu ON esu.USER_SEQ = ecm.USER_SEQ
|
||||
INNER JOIN hubez_common.EZ_CUST_INFO eci ON eci.CUST_SEQ = esu.CUST_SEQ
|
||||
WHERE 1 = 1
|
||||
AND ecm.USE_YN ='Y'
|
||||
AND ecm.CHRG_SEQ = #{chrgSeq}
|
||||
ORDER BY ecm.CHRG_SEQ DESC
|
||||
</select>
|
||||
|
||||
<!-- 유저ID 카운트 조회 -->
|
||||
<select id="selectuserTotalCnt" parameterType="kr.co.uplus.ez.api.custMgt.dto.UserListReqDto" resultType="int">
|
||||
/* custMgt-mapper.xml(getChrgSeq) */
|
||||
SELECT
|
||||
COUNT(*)
|
||||
FROM hubez_common.EZ_SVC_USER esu
|
||||
INNER JOIN hubez_common.EZ_SUBS_INFO esi ON esi.USER_SEQ = esu.USER_SEQ
|
||||
INNER JOIN hubez_common.EZ_CUST_INFO eci ON eci.CUST_SEQ = esu.CUST_SEQ
|
||||
WHERE 1 = 1
|
||||
AND esu.USER_TP_CD ='01'
|
||||
AND esi.SUBS_STTUS_CD ='02'
|
||||
AND esu.USER_ID LIKE CONCAT('%' , #{searchText1}, '%')
|
||||
</select>
|
||||
|
||||
<!-- 유저ID 목록 조회 -->
|
||||
<select id="selectUserList" parameterType="kr.co.uplus.ez.api.custMgt.dto.UserListReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.UserinInfo">
|
||||
/* custMgt-mapper.xml(getChrgSeq) */
|
||||
SELECT
|
||||
esu.USER_ID
|
||||
, eci.CUST_NM
|
||||
, esu.USER_SEQ
|
||||
, esu.USER_STTUS_CD
|
||||
, esu.USER_TP_CD
|
||||
FROM hubez_common.EZ_SVC_USER esu
|
||||
INNER JOIN hubez_common.EZ_SUBS_INFO esi ON esi.USER_SEQ = esu.USER_SEQ
|
||||
INNER JOIN hubez_common.EZ_CUST_INFO eci ON eci.CUST_SEQ = esu.CUST_SEQ
|
||||
WHERE 1 = 1
|
||||
AND esu.USER_TP_CD ='01'
|
||||
AND esi.SUBS_STTUS_CD ='02'
|
||||
AND esu.USER_ID LIKE CONCAT('%' , #{searchText1}, '%')
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 이용자 충전번호 조회(채번) -->
|
||||
<select id="getChrgSeq" resultType="String">
|
||||
/* custMgt-mapper.xml(getChrgSeq) */
|
||||
SELECT hubez_common.FUN_NEXT_SEQ('CHRG_SEQ')
|
||||
</select>
|
||||
|
||||
<!-- 충전관리 등록 -->
|
||||
<insert id="insertChrgInfo" parameterType="kr.co.uplus.ez.api.custMgt.dto.ChrgInfo">
|
||||
INSERT INTO hubez_admin.EZ_CHARGE_MNG (
|
||||
CHRG_SEQ
|
||||
, USER_SEQ
|
||||
, CHRG_DIV
|
||||
, STRT_YM
|
||||
, END_YM
|
||||
, CHRG_AMT
|
||||
, USE_YN
|
||||
, REG_ID
|
||||
, REG_DT
|
||||
, CHG_ID
|
||||
, CHG_DT
|
||||
) VALUES(
|
||||
#{chrgSeq}
|
||||
, #{userSeq}
|
||||
, #{chrgDiv}
|
||||
, #{strtYm}
|
||||
, #{endYm}
|
||||
, #{chrgAmt}
|
||||
, 'Y'
|
||||
, #{regId}
|
||||
, NOW()
|
||||
, #{regId}
|
||||
, NOW()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="updateChrgAmt" parameterType= "kr.co.uplus.ez.api.custMgt.dto.ChrgAmtDto">
|
||||
UPDATE
|
||||
hubez_admin.EZ_USER_LMT eul
|
||||
set
|
||||
eul.MRT_LMT_AMT = eul.MRT_LMT_AMT + #{extcChrgAmt}+ #{cfwdChrgAmt}
|
||||
,eul.EXTC_CHRG_AMT = eul.EXTC_CHRG_AMT + #{extcChrgAmt}
|
||||
,eul.EXTC_CHRG_BLNC = eul.EXTC_CHRG_BLNC + #{extcChrgAmt}
|
||||
,eul.CFWD_CHRG_AMT = eul.CFWD_CHRG_AMT+ #{cfwdChrgAmt}
|
||||
,eul.CFWD_CHRG_BLNC = eul.CFWD_CHRG_BLNC+ #{cfwdChrgAmt}
|
||||
WHERE eul.USER_SEQ = #{userSeq}
|
||||
AND eul.LMT_YM =#{lmtYm}
|
||||
|
||||
</update>
|
||||
|
||||
<update id="updateChrg" parameterType="kr.co.uplus.ez.api.custMgt.dto.ChrgInfo">
|
||||
UPDATE
|
||||
hubez_admin.EZ_CHARGE_MNG ecm
|
||||
set
|
||||
ecm.USE_YN ='N'
|
||||
WHERE ecm.CHRG_SEQ = #{chrgSeq}
|
||||
</update>
|
||||
|
||||
<insert id="addChrg" parameterType="kr.co.uplus.ez.api.custMgt.dto.ChrgInfo">
|
||||
INSERT INTO hubez_admin.EZ_CHARGE_MNG (
|
||||
CHRG_SEQ
|
||||
, USER_SEQ
|
||||
, CHRG_DIV
|
||||
, STRT_YM
|
||||
, END_YM
|
||||
, CHRG_AMT
|
||||
, USE_YN
|
||||
, REG_ID
|
||||
, REG_DT
|
||||
, CHG_ID
|
||||
, CHG_DT
|
||||
) VALUES(
|
||||
#{chrgSeq}
|
||||
, #{userSeq}
|
||||
, 'E'
|
||||
, #{strtYm}
|
||||
, #{endYm}
|
||||
, #{chrgAmt}
|
||||
, 'Y'
|
||||
, #{regId}
|
||||
, NOW()
|
||||
, #{regId}
|
||||
, NOW()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="deleteChrg" parameterType="kr.co.uplus.ez.api.custMgt.dto.DeleteChrgReqDto">
|
||||
UPDATE
|
||||
hubez_admin.EZ_CHARGE_MNG ecm
|
||||
set
|
||||
ecm.USE_YN ='N'
|
||||
WHERE ecm.CHRG_SEQ in
|
||||
<foreach collection="list" index="i" item="list" open="(" close=")" separator=",">
|
||||
#{list.chrgSeq}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
|
||||
<!-- 2023-03-07 add request 부분
|
||||
<select id="selectBLNCLists" parameterType="kr.co.uplus.ez.api.custMgt.dto.UserLmtListReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.UserLmtList" >
|
||||
/* custMgt-mapper.xml(selectBLNCLists) */
|
||||
SELECT
|
||||
@ROWNUM := @ROWNUM + 1 AS NO
|
||||
, eci.CUST_SEQ
|
||||
, eul.LMT_YM
|
||||
, eul.FX_LMT_AMT
|
||||
, eul.CFWD_AMT
|
||||
, eul.FX_LMT_AMT + eul.CFWD_AMT AS TOTAL_AMT
|
||||
, eul.SMS_USE_AMT + eul.MMS_USE_AMT + eul.LMS_USE_AMT + eul.MMS_USE_AMT AS YM_USE_AMT
|
||||
, CASE WHEN (eul.FX_LMT_AMT + eul.CFWD_AMT)-(eul.SMS_USE_AMT + eul.MMS_USE_AMT+ eul.LMS_USE_AMT + eul.MMS_USE_AMT) <![CDATA[<]]>0 THEN '-'
|
||||
ELSE (eul.FX_LMT_AMT + eul.CFWD_AMT)-(eul.SMS_USE_AMT + eul.MMS_USE_AMT + eul.LMS_USE_AMT + eul.MMS_USE_AMT)
|
||||
END AS YM_BLNC
|
||||
FROM hubez_admin.EZ_USER_LMT eul
|
||||
INNER JOIN hubez_common.EZ_SUBS_INFO esi on eul.USER_SEQ = esi.USER_SEQ
|
||||
INNER JOIN hubez_common.EZ_CUST_INFO eci on esi.CUST_SEQ =eci.CUST_SEQ
|
||||
LEFT JOIN hubez_imdb.EZ_IM_USER eiu on eiu.LOGIN_ID = esi.ATTRCTOR_ID
|
||||
WHERE 1 = 1
|
||||
<if test="startDt != null and startDt != ''">
|
||||
AND eul.REG_DT <![CDATA[ >= ]]> STR_TO_DATE(concat(REPLACE(#{startDt}, '-', '' ),'000000') , '%Y%m%d%H%i%s')
|
||||
</if>
|
||||
<if test="endDt != null and endDt != ''">
|
||||
AND esi.SUBS_STTUS_CD <![CDATA[ <= ]]> STR_TO_DATE(concat(REPLACE(#{endDt}, '-', '' ),'235959'), '%Y%m%d%H%i%s')
|
||||
</if>
|
||||
<if test="searchType1 != null and searchType1 != ''">
|
||||
AND esi.SUBS_STTUS_CD = #{searchType1}
|
||||
</if>
|
||||
<if test="searchType2 != null and searchType2 != ''">
|
||||
<if test="searchType2 == '01'">
|
||||
AND eiu.EX_PROVUSERTYPE is null
|
||||
</if>
|
||||
<if test="searchType2 == '02' ">
|
||||
AND eiu.EX_PROVUSERTYPE = 'DEALER'
|
||||
</if>
|
||||
<if test="searchType2 == '03' ">
|
||||
AND eiu.EX_PROVUSERTYPE in ( 'CCS-CS1'
|
||||
, 'CCS-CB1'
|
||||
, 'CCS-CB2'
|
||||
, 'CCS-CJ'
|
||||
, 'CCS-LS2'
|
||||
, 'CCS-LS3'
|
||||
, 'CCS-M'
|
||||
, 'CCS-MJ'
|
||||
, 'CCS-P'
|
||||
, 'CCS-P2'
|
||||
, 'CCS-D'
|
||||
, 'CCS-G'
|
||||
, 'CCS-S')
|
||||
</if>
|
||||
<if test="searchType2 == '04' ">
|
||||
AND eiu.EX_PROVUSERTYPE not in ( 'CCS-CS1'
|
||||
, 'CCS-CB1'
|
||||
, 'CCS-CB2'
|
||||
, 'CCS-CJ'
|
||||
, 'CCS-LS2'
|
||||
, 'CCS-LS3'
|
||||
, 'CCS-M'
|
||||
, 'CCS-MJ'
|
||||
, 'CCS-P'
|
||||
, 'CCS-P2'
|
||||
, 'CCS-D'
|
||||
, 'CCS-G'
|
||||
, 'CCS-S', 'DEALER')
|
||||
</if>
|
||||
</if>
|
||||
<if test="searchType3 != null and searchType3 != ''">
|
||||
<if test="searchType3 == '01' and searchText1 != null and searchText1 != ''">
|
||||
AND UPPER(esi.ENTR_NO) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
<if test="searchType3 == '02' and searchText1 != null and searchText1 != ''">
|
||||
AND UPPER(eci.BIZRNO) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
</if>
|
||||
ORDER BY eci.CUST_SEQ DESC
|
||||
</select>
|
||||
|
||||
<select id="selectBLNCListsExcel" parameterType="kr.co.uplus.ez.api.custMgt.dto.UserLmtListReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.UserLmtList">
|
||||
SELECT
|
||||
@ROWNUM := @ROWNUM + 1 AS NO
|
||||
, eci.CUST_SEQ
|
||||
, eul.LMT_YM
|
||||
, eul.FX_LMT_AMT
|
||||
, eul.CFWD_AMT
|
||||
, eul.FX_LMT_AMT + eul.CFWD_AMT AS TOTAL_AMT
|
||||
, eul.SMS_USE_AMT + eul.MMS_USE_AMT + eul.LMS_USE_AMT + eul.MMS_USE_AMT AS YM_USE_AMT
|
||||
, CASE WHEN (eul.FX_LMT_AMT + eul.CFWD_AMT)-(eul.SMS_USE_AMT + eul.MMS_USE_AMT+ eul.LMS_USE_AMT + eul.MMS_USE_AMT) <![CDATA[<]]>0 THEN '-'
|
||||
ELSE (eul.FX_LMT_AMT + eul.CFWD_AMT)-(eul.SMS_USE_AMT + eul.MMS_USE_AMT + eul.LMS_USE_AMT + eul.MMS_USE_AMT)
|
||||
END AS YM_BLNC
|
||||
FROM hubez_admin.EZ_USER_LMT eul
|
||||
INNER JOIN hubez_common.EZ_SUBS_INFO esi on eul.USER_SEQ = esi.USER_SEQ
|
||||
INNER JOIN hubez_common.EZ_CUST_INFO eci on esi.CUST_SEQ =eci.CUST_SEQ
|
||||
LEFT JOIN hubez_imdb.EZ_IM_USER eiu on eiu.LOGIN_ID = esi.ATTRCTOR_ID
|
||||
WHERE 1 = 1
|
||||
<if test="startDt != null and startDt != ''">
|
||||
AND eul.REG_DT <![CDATA[ >= ]]> STR_TO_DATE(concat(REPLACE(#{startDt}, '-', '' ),'000000') , '%Y%m%d%H%i%s')
|
||||
</if>
|
||||
<if test="endDt != null and endDt != ''">
|
||||
AND esi.SUBS_STTUS_CD <![CDATA[ <= ]]> STR_TO_DATE(concat(REPLACE(#{endDt}, '-', '' ),'235959'), '%Y%m%d%H%i%s')
|
||||
</if>
|
||||
<if test="searchType1 != null and searchType1 != ''">
|
||||
AND esi.SUBS_STTUS_CD = #{searchType1}
|
||||
</if>
|
||||
<if test="searchType2 != null and searchType2 != ''">
|
||||
<if test="searchType2 == '01'">
|
||||
AND eiu.EX_PROVUSERTYPE is null
|
||||
</if>
|
||||
<if test="searchType2 == '02' ">
|
||||
AND eiu.EX_PROVUSERTYPE = 'DEALER'
|
||||
</if>
|
||||
<if test="searchType2 == '03' ">
|
||||
AND eiu.EX_PROVUSERTYPE in ( 'CCS-CS1'
|
||||
, 'CCS-CB1'
|
||||
, 'CCS-CB2'
|
||||
, 'CCS-CJ'
|
||||
, 'CCS-LS2'
|
||||
, 'CCS-LS3'
|
||||
, 'CCS-M'
|
||||
, 'CCS-MJ'
|
||||
, 'CCS-P'
|
||||
, 'CCS-P2'
|
||||
, 'CCS-D'
|
||||
, 'CCS-G'
|
||||
, 'CCS-S')
|
||||
</if>
|
||||
<if test="searchType2 == '04' ">
|
||||
AND eiu.EX_PROVUSERTYPE not in ( 'CCS-CS1'
|
||||
, 'CCS-CB1'
|
||||
, 'CCS-CB2'
|
||||
, 'CCS-CJ'
|
||||
, 'CCS-LS2'
|
||||
, 'CCS-LS3'
|
||||
, 'CCS-M'
|
||||
, 'CCS-MJ'
|
||||
, 'CCS-P'
|
||||
, 'CCS-P2'
|
||||
, 'CCS-D'
|
||||
, 'CCS-G'
|
||||
, 'CCS-S', 'DEALER')
|
||||
</if>
|
||||
</if>
|
||||
<if test="searchType3 != null and searchType3 != ''">
|
||||
<if test="searchType3 == '01' and searchText1 != null and searchText1 != ''">
|
||||
AND UPPER(esi.ENTR_NO) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
<if test="searchType3 == '02' and searchText1 != null and searchText1 != ''">
|
||||
AND UPPER(eci.BIZRNO) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
</if>
|
||||
ORDER BY eci.CUST_SEQ DESC
|
||||
</select>
|
||||
-->
|
||||
<select id="selectUserInfo" parameterType="String" resultType="kr.co.uplus.ez.api.custMgt.dto.SvcUserInfo">
|
||||
/* custMgt-mapper.xml(selectUserInfo) */
|
||||
SELECT
|
||||
USER_SEQ, HP_NO
|
||||
FROM
|
||||
hubez_common.EZ_SVC_USER
|
||||
WHERE
|
||||
USER_ID = #{userId}
|
||||
</select>
|
||||
|
||||
<select id="selectSequence" parameterType="String" resultType="String">
|
||||
/* extCarryOverAmtNoti.selectSequence -- sequence 채번 일반 */
|
||||
SELECT hubez_common.FUN_NEXT_SEQ(#{seqKey})
|
||||
</select>
|
||||
|
||||
<select id="selectNotiSeq" resultType="String">
|
||||
/* extCarryOverAmtNoti.selectNotiSeq 노티 알림 시퀀스 채번 */
|
||||
SELECT hubez_common.FUN_NEXT_SEQ('NOTI_SEQ') AS notiSeq
|
||||
</select>
|
||||
|
||||
<insert id="insertWebMsgCli" parameterType="kr.co.uplus.ez.api.custMgt.dto.WebMsgCliDto">
|
||||
/* extCarryOverAmtNoti.insertWebMsgCli - 메시지 원장 등록 */
|
||||
INSERT INTO
|
||||
<if test="tableName == 'EZ_MSG_NORMAL'">
|
||||
hubez_send.EZ_MSG_NORMAL
|
||||
</if>
|
||||
<if test="tableName == 'EZ_MSG_REAL'">
|
||||
hubez_send.EZ_MSG_REAL
|
||||
</if>
|
||||
(
|
||||
CLIENT_KEY,
|
||||
REQ_PRODUCT,
|
||||
TRAFFIC_TYPE,
|
||||
MSG_STATUS,
|
||||
REQ_DATE,
|
||||
MSG_BIZ_KEY,
|
||||
TEMPLATE_CODE,
|
||||
SEND_GROUP_KEY,
|
||||
CALLBACK_NUMBER,
|
||||
DEPT_CODE,
|
||||
MSG,
|
||||
PHONE,
|
||||
MERGE_DATA,
|
||||
TITLE,
|
||||
FILE_LIST,
|
||||
FB_PRODUCT,
|
||||
FB_TITLE,
|
||||
FB_MSG,
|
||||
FB_FILE_ID,
|
||||
RCS_MSGBASE_ID,
|
||||
RCS_HEADER,
|
||||
RCS_FOOTER,
|
||||
RCS_COPY_ALLOWED,
|
||||
RCS_EXPIRY_OPTION,
|
||||
RCS_AGENCY_ID,
|
||||
RCS_BUTTON,
|
||||
KAKAO_SENDER_KEY,
|
||||
KAKAO_TEMPLATE_KEY,
|
||||
KAKAO_BUTTON,
|
||||
KAKAO_IMAGE_WIDE_YN,
|
||||
KAKAO_IMAGE_URL,
|
||||
KAKAO_IMAGE_LINK,
|
||||
PUSH_APP_ID,
|
||||
PUSH_PROVIDER,
|
||||
PUSH_APP_USER_ID,
|
||||
WEB_REQ_ID,
|
||||
ORDER_ID
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
#{clientKey},
|
||||
#{reqProduct},
|
||||
#{trafficType},
|
||||
#{msgStatus},
|
||||
NOW(),
|
||||
#{msgBizKey},
|
||||
#{templateCode},
|
||||
#{sendGroupKey},
|
||||
#{callbackNumber},
|
||||
#{deptCode},
|
||||
#{msg},
|
||||
#{phone},
|
||||
#{mergeData},
|
||||
'충전금액알림',
|
||||
#{fileList},
|
||||
#{fbProduct},
|
||||
#{fbTitle},
|
||||
#{fbMsg},
|
||||
#{fbFileId},
|
||||
#{rcsMsgbaseId},
|
||||
#{rcsHeader},
|
||||
#{rcsFooter},
|
||||
#{rcsCopyAllowed},
|
||||
#{rcsExpiryOption},
|
||||
#{rcsAgencyId},
|
||||
#{rcsButton},
|
||||
#{kakaoSenderKey},
|
||||
#{kakaoTemplateKey},
|
||||
#{kakaoButton},
|
||||
#{kakaoImageWideYn},
|
||||
#{kakaoImageUrl},
|
||||
#{kakaoImageLink},
|
||||
#{pushAppId},
|
||||
#{pushProvider},
|
||||
#{pushAppUserId},
|
||||
#{webReqId},
|
||||
#{orderId}
|
||||
)
|
||||
</insert>
|
||||
|
||||
<insert id="insertNotiHst" parameterType="kr.co.uplus.ez.api.custMgt.dto.NotiHistDto">
|
||||
/* extCarryOverAmtNoti.insertNotiHst - 알림 이력 등록 */
|
||||
INSERT INTO hubez_common.EZ_NOTI_HIST
|
||||
(
|
||||
SND_YMD,
|
||||
USER_SEQ,
|
||||
NOTI_SEQ,
|
||||
NOTI_DIV,
|
||||
NOTI_MSG,
|
||||
WEB_REQ_ID,
|
||||
REG_DT
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
DATE_FORMAT(NOW(), '%Y%m%d'),
|
||||
#{userSeq},
|
||||
#{notiSeq},
|
||||
'04',
|
||||
#{notiMsg},
|
||||
#{webReqId},
|
||||
NOW()
|
||||
)
|
||||
</insert>
|
||||
</mapper>
|
||||
|
||||
@@ -25,18 +25,23 @@
|
||||
@ROWNUM := @ROWNUM + 1 AS NO,
|
||||
NT_NO,
|
||||
CTG_CD,
|
||||
(
|
||||
SELECT DTL_CD_NM
|
||||
FROM hubez_common.EZ_CD_DTL
|
||||
WHERE DTL_CD = N1.CTG_CD
|
||||
AND GRP_CD = 'NTBBS_CTG_CD' AND USE_YN = 'Y'
|
||||
) AS CTG_CD_NM,
|
||||
CASE WHEN CTG_CD = '06' THEN '팝업공지'
|
||||
ELSE
|
||||
(
|
||||
SELECT DTL_CD_NM
|
||||
FROM hubez_common.EZ_CD_DTL
|
||||
WHERE DTL_CD = N1.CTG_CD
|
||||
AND GRP_CD = 'NTBBS_CTG_CD' AND USE_YN = 'Y'
|
||||
)
|
||||
END AS CTG_CD_NM,
|
||||
TITLE,
|
||||
EMG_YN,
|
||||
NT_SBST,
|
||||
REGR,
|
||||
USE_YN,
|
||||
RETV_CNT,
|
||||
DATE_FORMAT(NT_STRT_DT, '%Y-%m-%d') AS ntStrtDt,
|
||||
DATE_FORMAT(NT_END_DT, '%Y-%m-%d') AS ntEndDt,
|
||||
REG_ID,
|
||||
DATE_FORMAT(REG_DT, '%Y-%m-%d') AS regDt,
|
||||
CHG_ID,
|
||||
@@ -110,7 +115,11 @@
|
||||
NT_SBST,
|
||||
REGR,
|
||||
USE_YN,
|
||||
RETV_CNT,
|
||||
RETV_CNT,
|
||||
<if test="ctgCd == '06'">
|
||||
NT_STRT_DT,
|
||||
NT_END_DT,
|
||||
</if>
|
||||
REG_ID,
|
||||
REG_DT,
|
||||
CHG_ID,
|
||||
@@ -123,6 +132,10 @@
|
||||
#{regr},
|
||||
#{useYn},
|
||||
0,
|
||||
<if test="ctgCd == '06'">
|
||||
#{ntStrtDt},
|
||||
#{ntEndDt},
|
||||
</if>
|
||||
#{regId},
|
||||
NOW(),
|
||||
#{chgId},
|
||||
@@ -181,6 +194,10 @@
|
||||
,USE_YN = #{useYn}
|
||||
,TITLE = #{title}
|
||||
,NT_SBST = #{ntSbst}
|
||||
<if test="ctgCd == '06'">
|
||||
,NT_STRT_DT = #{ntStrtDt}
|
||||
,NT_END_DT = #{ntEndDt}
|
||||
</if>
|
||||
,CHG_DT = NOW()
|
||||
,CHG_ID = #{chgId}
|
||||
WHERE
|
||||
|
||||
Reference in New Issue
Block a user