mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 04:27:21 +09:00
발송내역 수정
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="table table_form">
|
<div class="table table_form">
|
||||||
<form action="" target="_blank" method="post" ref="form">
|
<form action="" target="_blank" method="get" ref="form">
|
||||||
<input type="hidden" name="svcUserId" id="svcUserId" v-model="svcUserId" />
|
<input type="hidden" name="svcUserId" id="svcUserId" v-model="svcUserId" />
|
||||||
<input type="hidden" name="ezSvcUserAuthKey" id="ezSvcUserAuthKey" v-model="ezSvcUserAuthKey" />
|
<input type="hidden" name="ezSvcUserAuthKey" id="ezSvcUserAuthKey" v-model="ezSvcUserAuthKey" />
|
||||||
</form>
|
</form>
|
||||||
@@ -235,7 +235,7 @@ export default {
|
|||||||
svcUserId: '',
|
svcUserId: '',
|
||||||
ezSvcUserAuthKey: '',
|
ezSvcUserAuthKey: '',
|
||||||
homePageUrl: '',
|
homePageUrl: '',
|
||||||
isActive: true,
|
isActive: true
|
||||||
//applyTbStyle: 'cursor: default;',
|
//applyTbStyle: 'cursor: default;',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -256,10 +256,12 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
if(this.$route.params.serviceId != null){
|
if(this.$route.params.serviceId != null){
|
||||||
this.$store.commit('dataStore/updateUserId', this.$route.params.serviceId);
|
this.$store.commit('dataStore/updateUserId', this.$route.params.serviceId);
|
||||||
this.memberDetail(this.$route.params.serviceId);
|
this.userId = this.$route.params.serviceId;
|
||||||
|
this.memberDetail(this.$route.params.serviceId);
|
||||||
}else{
|
}else{
|
||||||
var userId = this.$store.getters["dataStore/getUserId"];
|
var userId2 = this.$store.getters["dataStore/getUserId"];
|
||||||
this.memberDetail(userId);
|
this.userId = userId2;
|
||||||
|
this.memberDetail(this.userId);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
@@ -302,7 +304,7 @@ export default {
|
|||||||
valConfirm(props) {
|
valConfirm(props) {
|
||||||
this.$refs.commmonModal.confirmModalOpen(props);
|
this.$refs.commmonModal.confirmModalOpen(props);
|
||||||
},
|
},
|
||||||
async memberDetail(serviceId) {
|
async memberDetail(serviceId) {
|
||||||
this.row.userId = serviceId;
|
this.row.userId = serviceId;
|
||||||
try {
|
try {
|
||||||
const response = await custMgtApi.memberAdminDetail(this.row);
|
const response = await custMgtApi.memberAdminDetail(this.row);
|
||||||
@@ -331,7 +333,7 @@ export default {
|
|||||||
console.log('userTotalCnt:' + result.data.list.length);
|
console.log('userTotalCnt:' + result.data.list.length);
|
||||||
this.totalItems = result.data.paging.totalCnt;
|
this.totalItems = result.data.paging.totalCnt;
|
||||||
this.homePageUrl = result.data.homePageUrl;
|
this.homePageUrl = result.data.homePageUrl;
|
||||||
this.ezSvcUserAuthKey = result.data.authKey;
|
this.ezSvcUserAuthKey = result.data.authKey;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
@@ -454,9 +456,9 @@ export default {
|
|||||||
formReset() {
|
formReset() {
|
||||||
Object.assign(this.$data, this.$options.data());
|
Object.assign(this.$data, this.$options.data());
|
||||||
},
|
},
|
||||||
homeLogin() {
|
homeLogin() {
|
||||||
this.$refs.form.action = this.homePageUrl;
|
this.$refs.form.action = this.homePageUrl;
|
||||||
this.svcUserId = this.userId;
|
this.svcUserId = this.userId;
|
||||||
this.$refs.form.submit();
|
this.$refs.form.submit();
|
||||||
},
|
},
|
||||||
confirmCalbackFnc(props) {
|
confirmCalbackFnc(props) {
|
||||||
|
|||||||
@@ -135,13 +135,13 @@ export default {
|
|||||||
this.$router.push({ name: 'updatePassword',params: {userId : this.userId}});
|
this.$router.push({ name: 'updatePassword',params: {userId : this.userId}});
|
||||||
}else if(rsp.retCode == '4003') { // ID 조회 없음.
|
}else if(rsp.retCode == '4003') { // ID 조회 없음.
|
||||||
this.row.title = '로그인 실패';
|
this.row.title = '로그인 실패';
|
||||||
this.row.msg1 = '등록되지 않은 아이디입니다.';
|
this.row.msg1 = '아이디, 비밀번호를 확인해 주세요.';
|
||||||
this.row.msg2 = '아이디를 다시 확인하세요';
|
|
||||||
this.$refs.commonModal.alertModalOpen(this.row);
|
this.$refs.commonModal.alertModalOpen(this.row);
|
||||||
} else if(rsp.retCode == '4004') { // ID/PWD 불일치
|
} else if(rsp.retCode == '4004') { // ID/PWD 불일치
|
||||||
this.row.title = '비밀번호 오류';
|
//this.row.title = '비밀번호 오류';
|
||||||
this.row.msg1 = '비밀번호를 확인해주세요.';
|
//this.row.msg1 = '비밀번호를 확인해주세요.';
|
||||||
|
this.row.title = '로그인 실패';
|
||||||
|
this.row.msg1 = '아이디, 비밀번호를 확인해 주세요.';
|
||||||
this.$refs.commonModal.alertModalOpen(this.row);
|
this.$refs.commonModal.alertModalOpen(this.row);
|
||||||
} else if(rsp.retCode == '4005') { // ID/PWD 불일치 횟수초과로 계정 잠김 4005
|
} else if(rsp.retCode == '4005') { // ID/PWD 불일치 횟수초과로 계정 잠김 4005
|
||||||
this.row.title = '로그인 실패';
|
this.row.title = '로그인 실패';
|
||||||
|
|||||||
@@ -9,8 +9,7 @@
|
|||||||
<div class="search_wrap">
|
<div class="search_wrap">
|
||||||
<div class="group">
|
<div class="group">
|
||||||
<div class="input_box cal one essential">
|
<div class="input_box cal one essential">
|
||||||
<label for="right" class="label"><span>*</span>발송일</label>
|
<label for="right" class="label"><span>*</span>발송일</label>
|
||||||
<div class="term">
|
|
||||||
<span class="custom_input icon_date">
|
<span class="custom_input icon_date">
|
||||||
<vuejs-datepicker
|
<vuejs-datepicker
|
||||||
:language="ko"
|
:language="ko"
|
||||||
@@ -20,8 +19,7 @@
|
|||||||
@selected="selectedStartDate(0)"
|
@selected="selectedStartDate(0)"
|
||||||
@closed="closeDate('start')"
|
@closed="closeDate('start')"
|
||||||
></vuejs-datepicker>
|
></vuejs-datepicker>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="select_box id">
|
<div class="select_box id">
|
||||||
<label for="right" class="label">요청채널</label>
|
<label for="right" class="label">요청채널</label>
|
||||||
@@ -50,7 +48,7 @@
|
|||||||
<div class="input_box">
|
<div class="input_box">
|
||||||
<label for="right" class="label">고객사명</label>
|
<label for="right" class="label">고객사명</label>
|
||||||
<input class="search-box" type="text" id="search" placeholder="검색어 입력" v-model.trim="grid.params.searchText3"
|
<input class="search-box" type="text" id="search" placeholder="검색어 입력" v-model.trim="grid.params.searchText3"
|
||||||
@keypress="onlyName" @input="onlyName" @keyup.enter="search" ref="_searchText3" maxlength="100">
|
@keypress="onlyText" @input="onlyText" @keyup.enter="search" ref="_searchText3" maxlength="100">
|
||||||
</div>
|
</div>
|
||||||
<button type="button" class="button grey" @click="search">조회</button>
|
<button type="button" class="button grey" @click="search">조회</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -173,17 +171,17 @@ export default {
|
|||||||
|
|
||||||
columns: [
|
columns: [
|
||||||
{name: 'no', header: 'NO', align: 'center', width: '5%'},
|
{name: 'no', header: 'NO', align: 'center', width: '5%'},
|
||||||
{name: '', header: '발송일자', align: 'left', width: '11%'},
|
{name: 'sentDate', header: '발송일자', align: 'center', width: '11%'},
|
||||||
{name: '', header: '고객사명', align: 'left', width: '9%'},
|
{name: 'custNm', header: '고객사명', align: 'center', width: '9%'},
|
||||||
{name: '', header: '발송아이디(사용자ID)', align: 'center', width: '9%'},
|
{name: 'userId', header: '발송아이디(사용자ID)', align: 'center', width: '9%'},
|
||||||
{name: '', header: '수신번호', align: 'center', width: '11%'},
|
{name: 'phone', header: '수신번호', align: 'center', width: '11%'},
|
||||||
{name: '', header: '발신번호', align: 'center', width: '11%'},
|
{name: 'callbackNumber', header: '발신번호', align: 'center', width: '11%'},
|
||||||
{name: '', header: '요청채널', align: 'center', width: '5%'},
|
{name: 'reqProduct', header: '요청채널', align: 'center', width: '5%'},
|
||||||
{name: '', header: '최종채널', align: 'center', width: '5%'},
|
{name: 'doneCh', header: '최종채널', align: 'center', width: '5%'},
|
||||||
{name: '', header: '이통사', align: 'center', width: '5%'},
|
{name: 'doneTelco', header: '이통사', align: 'center', width: '5%'},
|
||||||
{name: '', header: '결과(코드)', align: 'center', width: '9%'},
|
{name: 'doneCode', header: '결과(코드)', align: 'center', width: '9%'},
|
||||||
{name: '', header: '요청일시', align: 'center', width: '10%'},
|
{name: 'reqDate', header: '요청일시', align: 'center', width: '10%'},
|
||||||
{name: '', header: '완료일시', align: 'center', width: '10%'},
|
{name: 'doneDate', header: '완료일시', align: 'center', width: '10%'},
|
||||||
|
|
||||||
],
|
],
|
||||||
noDataStr: '검색 결과가 없습니다.',
|
noDataStr: '검색 결과가 없습니다.',
|
||||||
@@ -252,8 +250,8 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
search: function (isKeep) {
|
search: function (isKeep) {
|
||||||
if (this.initMode) {
|
if (this.initMode) {
|
||||||
this.grid.params.phone = 99999999999;
|
this.grid.params.phone = '';
|
||||||
this.grid.params.callbackNumber = 99999999999;
|
this.grid.params.callbackNumber = '';
|
||||||
} else {
|
} else {
|
||||||
if (this.doValidate()) {
|
if (this.doValidate()) {
|
||||||
this.grid.params.sentDate = moment(this.startDate).format('YYYYMMDD');
|
this.grid.params.sentDate = moment(this.startDate).format('YYYYMMDD');
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ public class CustMgtService {
|
|||||||
@Value("${msghubez.homepage-url:https://mhez.uplus.co.kr}")
|
@Value("${msghubez.homepage-url:https://mhez.uplus.co.kr}")
|
||||||
private String mailTempleteHomeUrl;
|
private String mailTempleteHomeUrl;
|
||||||
|
|
||||||
@Value("${msghubez.uri.homepageLogin: /auth/bo}")
|
@Value("${msghubez.uri.homepageLogin:/auth/bo}")
|
||||||
private String loginUri;
|
private String loginUri;
|
||||||
|
|
||||||
@Value("${msghubez.authKey: bohubez!@#$%}")
|
@Value("${msghubez.authKey: bohubez!@#$%}")
|
||||||
|
|||||||
@@ -296,7 +296,12 @@ public class LoginService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String newPw = EncryptionUtil.getCustomSHA512(updatePasswordReqDto.getUserId(), updatePasswordReqDto.getNewPw());
|
String newPw = EncryptionUtil.getCustomSHA512(updatePasswordReqDto.getUserId(), updatePasswordReqDto.getNewPw());
|
||||||
|
String oldPw = user.getPwd();
|
||||||
|
|
||||||
|
if(oldPw.equals(newPw)) {
|
||||||
|
return new UpdatePasswordResDto(ApiResponseCode.CE_FAILED_TO_PW_CHANGE);
|
||||||
|
}
|
||||||
|
|
||||||
// 2. 비밀번호 변경 - update EZ_ADM_USER (비밀번호, 비밀번호변경일시)
|
// 2. 비밀번호 변경 - update EZ_ADM_USER (비밀번호, 비밀번호변경일시)
|
||||||
AuthUser authUser = new AuthUser();
|
AuthUser authUser = new AuthUser();
|
||||||
authUser.setOprtrId(updatePasswordReqDto.getUserId());
|
authUser.setOprtrId(updatePasswordReqDto.getUserId());
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ mail:
|
|||||||
templeteCode: E0005
|
templeteCode: E0005
|
||||||
|
|
||||||
msghubez:
|
msghubez:
|
||||||
hmoepage-url: https://mhez-dev.uplus.co.kr
|
homepage-url: https://mhez-dev.uplus.co.kr
|
||||||
api-url: https://api-int.mhez-dev.uplus.co.kr
|
api-url: https://api-int.mhez-dev.uplus.co.kr
|
||||||
applicationId: EZ_ADMIN
|
applicationId: EZ_ADMIN
|
||||||
uri:
|
uri:
|
||||||
|
|||||||
@@ -4,157 +4,163 @@
|
|||||||
<mapper namespace="kr.co.uplus.ez.api.mntrng.MntrngMapper">
|
<mapper namespace="kr.co.uplus.ez.api.mntrng.MntrngMapper">
|
||||||
|
|
||||||
<select id="selectSendListTotalCnt" parameterType="kr.co.uplus.ez.api.mntrng.dto.SendListReqDto" resultType="int">
|
<select id="selectSendListTotalCnt" parameterType="kr.co.uplus.ez.api.mntrng.dto.SendListReqDto" resultType="int">
|
||||||
SELECT
|
SELECT COUNT(*) AS TOTALCNT
|
||||||
COUNT(*) AS TOTALCNT
|
FROM hubez_send.EZ_MSG_LOG eml
|
||||||
FROM hubez_send.EZ_MSG_LOG eml
|
WHERE 1=1
|
||||||
WHERE 1=1
|
AND eml.REQ_DATE<![CDATA[ >= ]]>STR_TO_DATE(#{sentDate}, '%Y%m%d')
|
||||||
AND eml.REQ_DATE BETWEEN STR_TO_DATE(#{sentDate}, '%Y%m%d') AND DATE_ADD(STR_TO_DATE(#{sentDate}, '%Y%m%d'), INTERVAL 1 DAY)
|
AND eml.REQ_DATE<![CDATA[ < ]]>DATE_ADD(STR_TO_DATE(#{sentDate}, '%Y%m%d'), INTERVAL 1 DAY)
|
||||||
<if test='reqChennel != null and reqChennel != "" and reqChennel != "ALL"'>
|
<if test='reqChennel != null and reqChennel != "" and reqChennel != "ALL"'>
|
||||||
AND eml.REQ_PRODUCT = #{reqChennel}
|
AND eml.REQ_PRODUCT = #{reqChennel}
|
||||||
</if>
|
</if>
|
||||||
<if test='phone != null and phone != ""'>
|
AND eml.PHONE = #{phone}
|
||||||
AND eml.PHONE = #{phone}
|
AND eml.CALLBACK_NUMBER = #{callbackNumber}
|
||||||
</if>
|
<if test='custNm != null and custNm != ""'>
|
||||||
<if test='callbackNumber != null and callbackNumber != ""'>
|
AND EXISTS (
|
||||||
AND eml.CALLBACK_NUMBER = #{callbackNumber}
|
SELECT 1
|
||||||
</if>
|
FROM hubez_admin.EZ_SNDDCT_REQ esr
|
||||||
<if test='custNm != null and custNm != ""'>
|
INNER JOIN hubez_common.EZ_SVC_USER esi
|
||||||
AND eml.ORDER_ID IN (
|
ON esi.USER_SEQ = esr.USER_SEQ
|
||||||
SELECT
|
INNER JOIN hubez_common.EZ_CUST_INFO eci
|
||||||
T3.ORDER_ID
|
ON eci.CUST_SEQ = esi.CUST_SEQ
|
||||||
FROM hubez_common.EZ_CUST_INFO T1
|
AND eci.CUST_NM LIKE CONCAT('%',#{custNm},'%')
|
||||||
JOIN hubez_common.EZ_SVC_USER T2
|
WHERE esr.ORDER_ID = eml.ORDER_ID
|
||||||
ON T1.CUST_SEQ = T2.CUST_SEQ
|
AND esr.ORDER_CRET_DT BETWEEN DATE_ADD(#{sentDate}, INTERVAL -3 DAY) AND DATE_ADD(#{sentDate}, INTERVAL 4 DAY)
|
||||||
JOIN hubez_admin.EZ_SNDDCT_REQ T3
|
)
|
||||||
ON T2.USER_SEQ = T3.SNDREQ_USER_SEQ
|
</if>
|
||||||
WHERE T1.CUST_NM LIKE CONCAT('%',#{custNm},'%'))
|
|
||||||
</if>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectSendList" parameterType="kr.co.uplus.ez.api.mntrng.dto.SendListReqDto" resultType="kr.co.uplus.ez.api.mntrng.dto.SendList">
|
<select id="selectSendList" parameterType="kr.co.uplus.ez.api.mntrng.dto.SendListReqDto" resultType="kr.co.uplus.ez.api.mntrng.dto.SendList">
|
||||||
SELECT
|
SELECT
|
||||||
@ROWNUM := @ROWNUM + 1 AS NO,
|
@ROWNUM := @ROWNUM + 1 AS NO,
|
||||||
A.*
|
A.*
|
||||||
FROM
|
FROM
|
||||||
(
|
(
|
||||||
SELECT
|
SELECT
|
||||||
DATE_FORMAT(eml.REQ_DATE,'%Y-%m-%d') AS SENT_DATE
|
DATE_FORMAT(eml.REQ_DATE,'%Y-%m-%d') AS SENT_DATE
|
||||||
,(SELECT
|
, CASE WHEN ORDER_ID in ('1', '2') THEN 'System'
|
||||||
esc.CUST_NM
|
ELSE (
|
||||||
FROM hubez_admin.EZ_SNDDCT_REQ esr
|
SELECT esc.CUST_NM
|
||||||
join hubez_common.EZ_SVC_USER esu
|
FROM hubez_admin.EZ_SNDDCT_REQ esr
|
||||||
on esr.SNDREQ_USER_SEQ = esu.USER_SEQ
|
JOIN hubez_common.EZ_SVC_USER esu
|
||||||
join hubez_common.EZ_CUST_INFO esc
|
ON esr.SNDREQ_USER_SEQ = esu.USER_SEQ
|
||||||
on esu.CUST_SEQ = esc.CUST_SEQ
|
JOIN hubez_common.EZ_CUST_INFO esc
|
||||||
WHERE esr.ORDER_ID = eml.ORDER_ID) AS CUST_NM
|
ON esu.CUST_SEQ = esc.CUST_SEQ
|
||||||
,(SELECT
|
WHERE esr.ORDER_ID = eml.ORDER_ID
|
||||||
esu.USER_ID
|
)
|
||||||
FROM hubez_admin.EZ_SNDDCT_REQ esr
|
END AS CUST_NM
|
||||||
join hubez_common.EZ_SVC_USER esu
|
, CASE WHEN ORDER_ID IN ('1', '2') THEN 'System'
|
||||||
on esr.SNDREQ_USER_SEQ = esu.USER_SEQ
|
ELSE (
|
||||||
WHERE esr.ORDER_ID = eml.ORDER_ID) AS USER_ID
|
SELECT esu.USER_ID
|
||||||
,eml.PHONE
|
FROM hubez_admin.EZ_SNDDCT_REQ esr
|
||||||
,eml.CALLBACK_NUMBER
|
JOIN hubez_common.EZ_SVC_USER esu
|
||||||
,eml.REQ_PRODUCT
|
ON esr.SNDREQ_USER_SEQ = esu.USER_SEQ
|
||||||
,eml.DONE_CH
|
WHERE esr.ORDER_ID = eml.ORDER_ID
|
||||||
,eml.DONE_TELCO
|
)
|
||||||
,eml.DONE_CODE
|
END AS USER_ID
|
||||||
,DATE_FORMAT(eml.REQ_DATE,'%Y-%m-%d %T') AS REQ_DATE
|
,eml.PHONE
|
||||||
,DATE_FORMAT(eml.DONE_DATE,'%Y-%m-%d %T') AS DONE_DATE
|
,eml.CALLBACK_NUMBER
|
||||||
FROM hubez_send.EZ_MSG_LOG eml
|
,eml.REQ_PRODUCT
|
||||||
WHERE 1=1
|
,eml.DONE_CH
|
||||||
AND eml.REQ_DATE BETWEEN STR_TO_DATE(#{sentDate}, '%Y%m%d') AND DATE_ADD(STR_TO_DATE(#{sentDate}, '%Y%m%d'), INTERVAL 1 DAY)
|
,eml.DONE_TELCO
|
||||||
<if test='reqChennel != null and reqChennel != ""'>
|
,eml.DONE_CODE
|
||||||
AND eml.REQ_PRODUCT = #{reqChennel}
|
,DATE_FORMAT(eml.REQ_DATE,'%Y-%m-%d %T') AS REQ_DATE
|
||||||
</if>
|
,DATE_FORMAT(eml.DONE_DATE,'%Y-%m-%d %T') AS DONE_DATE
|
||||||
<if test='phone != null and phone != ""'>
|
FROM hubez_send.EZ_MSG_LOG eml
|
||||||
AND eml.PHONE = #{phone}
|
WHERE 1=1
|
||||||
</if>
|
AND eml.REQ_DATE<![CDATA[ >= ]]>STR_TO_DATE(#{sentDate}, '%Y%m%d')
|
||||||
<if test='callbackNumber != null and callbackNumber != ""'>
|
AND eml.REQ_DATE<![CDATA[ < ]]>DATE_ADD(STR_TO_DATE(#{sentDate}, '%Y%m%d'), INTERVAL 1 DAY)
|
||||||
AND eml.CALLBACK_NUMBER = #{callbackNumber}
|
<if test='reqChennel != null and reqChennel != ""'>
|
||||||
</if>
|
AND eml.REQ_PRODUCT = #{reqChennel}
|
||||||
<if test='custNm != null and custNm != ""'>
|
</if>
|
||||||
AND eml.ORDER_ID IN (
|
AND eml.PHONE = #{phone}
|
||||||
SELECT
|
AND eml.CALLBACK_NUMBER = #{callbackNumber}
|
||||||
T3.ORDER_ID
|
<if test='custNm != null and custNm != ""'>
|
||||||
FROM hubez_common.EZ_CUST_INFO T1
|
AND EXISTS (
|
||||||
JOIN hubez_common.EZ_SVC_USER T2
|
SELECT 1
|
||||||
ON T1.CUST_SEQ = T2.CUST_SEQ
|
FROM hubez_admin.EZ_SNDDCT_REQ esr
|
||||||
JOIN hubez_admin.EZ_SNDDCT_REQ T3
|
INNER JOIN hubez_common.EZ_SVC_USER esi
|
||||||
ON T2.USER_SEQ = T3.SNDREQ_USER_SEQ
|
ON esi.USER_SEQ = esr.USER_SEQ
|
||||||
WHERE T1.CUST_NM = LIKE CONCAT('%',#{custNm},'%'))
|
INNER JOIN hubez_common.EZ_CUST_INFO eci
|
||||||
</if>
|
ON eci.CUST_SEQ = esi.CUST_SEQ
|
||||||
ORDER BY eml.SENT_DATE DESC
|
and eci.CUST_NM LIKE CONCAT('%',#{custNm},'%')
|
||||||
LIMIT #{page}, #{pagePerRows}) A,
|
WHERE esr.ORDER_ID = eml.ORDER_ID
|
||||||
( SELECT @ROWNUM := #{page} ) AS R
|
AND esr.ORDER_CRET_DT BETWEEN DATE_ADD(#{sentDate}, INTERVAL -3 DAY) AND DATE_ADD(#{sentDate}, INTERVAL 4 day)
|
||||||
|
)
|
||||||
|
</if>
|
||||||
|
ORDER BY eml.SENT_DATE DESC
|
||||||
|
LIMIT #{page}, #{pagePerRows}) A,
|
||||||
|
( SELECT @ROWNUM := #{page} ) AS R
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectLiveSendSttus" parameterType="kr.co.uplus.ez.api.mntrng.dto.LiveSendSttus" resultType="kr.co.uplus.ez.api.mntrng.dto.LiveSendSttus">
|
<select id="selectLiveSendSttus" parameterType="kr.co.uplus.ez.api.mntrng.dto.LiveSendSttus" resultType="kr.co.uplus.ez.api.mntrng.dto.LiveSendSttus">
|
||||||
SELECT
|
SELECT IFNULL(SUM(SEND_CNT + FB_SEND_CNT), 0) AS SEND_CNT
|
||||||
IFNULL(SUM(T1.SEND_CNT + T2.FB_SEND_CNT), 0) AS SEND_CNT
|
, IFNULL(SUM(SUCC_CNT + FB_SUCC_CNT), 0) AS SUCC_CNT
|
||||||
,IFNULL(SUM(T1.SUCC_CNT+T2.FB_SUCC_CNT), 0) AS SUCC_CNT
|
, IFNULL(ROUND((SUM(SUCC_CNT + FB_SUCC_CNT) / SUM(SEND_CNT + FB_SEND_CNT) * 100), 2), 0) AS SUCC_RT
|
||||||
,IFNULL(ROUND((SUM(T1.SUCC_CNT+T2.FB_SUCC_CNT) / SUM(T1.SEND_CNT+T2.FB_SEND_CNT) * 100), 2), 0) AS SUCC_RT
|
<if test='reqType != null and reqType != ""'>
|
||||||
<if test='reqType != null and reqType != ""'>
|
<if test='reqType eq "M"'>
|
||||||
<if test='reqType eq "M"'>
|
, DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -10 MINUTE), '%Y.%m.%d %H:%i') AS START_TIME
|
||||||
,DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -10 MINUTE), '%Y.%m.%d %H:%i') AS START_TIME
|
</if>
|
||||||
|
<if test='reqType eq "H"'>
|
||||||
|
, DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -1 HOUR), '%Y.%m.%d %H:%i') AS START_TIME
|
||||||
|
</if>
|
||||||
|
<if test='reqType eq "D"'>
|
||||||
|
, DATE_FORMAT(NOW(),'%Y.%m.%d 00:00') AS START_TIME
|
||||||
|
</if>
|
||||||
</if>
|
</if>
|
||||||
<if test='reqType eq "H"'>
|
, DATE_FORMAT(NOW(),'%Y.%m.%d %H:%i') AS END_TIME
|
||||||
,DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -1 HOUR), '%Y.%m.%d %H:%i') AS START_TIME
|
FROM (
|
||||||
|
SELECT SUM(IFNULL(SEND_CNT,0)) AS SEND_CNT
|
||||||
|
, SUM(IFNULL(SUCC_CNT,0)) AS SUCC_CNT
|
||||||
|
, 0 as FB_SEND_CNT
|
||||||
|
, 0 as FB_SUCC_CNT
|
||||||
|
FROM hubez_common.EZ_WEB_MSG
|
||||||
|
WHERE 1=1
|
||||||
|
AND CH_STR = 'SMS'
|
||||||
|
<if test='reqType != null and reqType != ""'>
|
||||||
|
<if test='reqType eq "M"'>
|
||||||
|
<![CDATA[
|
||||||
|
AND REQ_DT > DATE_ADD(NOW(), INTERVAL -10 MINUTE)
|
||||||
|
]]>
|
||||||
|
</if>
|
||||||
|
<if test='reqType eq "H"'>
|
||||||
|
<![CDATA[
|
||||||
|
AND REQ_DT > DATE_ADD(NOW(), INTERVAL -1 HOUR)
|
||||||
|
]]>
|
||||||
|
</if>
|
||||||
|
<if test='reqType eq "D"'>
|
||||||
|
<![CDATA[
|
||||||
|
AND REQ_DT >= STR_TO_DATE(DATE_FORMAT(NOW(),'%Y%m%d'), '%Y%m%d')
|
||||||
|
]]>
|
||||||
|
</if>
|
||||||
|
</if>
|
||||||
|
GROUP BY CH_STR
|
||||||
|
union all
|
||||||
|
SELECT 0 AS SEND_CNT
|
||||||
|
, 0 AS SUCC_CNT
|
||||||
|
, SUM(IFNULL(FB_SUCC_CNT,0)+IFNULL(FB_FAIL_CNT,0)) AS FB_SEND_CNT
|
||||||
|
, SUM(IFNULL(FB_SUCC_CNT,0)) AS FB_SUCC_CNT
|
||||||
|
FROM hubez_common.EZ_WEB_MSG
|
||||||
|
WHERE 1=1
|
||||||
|
AND FB_CH_STR = 'SMS'
|
||||||
|
<if test='reqType != null and reqType != ""'>
|
||||||
|
<if test='reqType eq "M"'>
|
||||||
|
<![CDATA[
|
||||||
|
AND REQ_DT > DATE_ADD(NOW(), INTERVAL -10 MINUTE)
|
||||||
|
]]>
|
||||||
|
</if>
|
||||||
|
<if test='reqType eq "H"'>
|
||||||
|
<![CDATA[
|
||||||
|
AND REQ_DT > DATE_ADD(NOW(), INTERVAL -1 HOUR)
|
||||||
|
]]>
|
||||||
|
</if>
|
||||||
|
<if test='reqType eq "D"'>
|
||||||
|
<![CDATA[
|
||||||
|
AND REQ_DT >= STR_TO_DATE(DATE_FORMAT(NOW(),'%Y%m%d'), '%Y%m%d')
|
||||||
|
]]>
|
||||||
|
</if>
|
||||||
</if>
|
</if>
|
||||||
<if test='reqType eq "D"'>
|
GROUP BY FB_CH_STR
|
||||||
,DATE_FORMAT(NOW(),'%Y.%m.%d 00:00') AS START_TIME
|
) T
|
||||||
</if>
|
</select>
|
||||||
</if>
|
|
||||||
,DATE_FORMAT(NOW(),'%Y.%m.%d %H:%i') AS END_TIME
|
|
||||||
FROM
|
|
||||||
(SELECT
|
|
||||||
SUM(IFNULL(SEND_CNT,0)) AS SEND_CNT
|
|
||||||
,SUM(IFNULL(SUCC_CNT,0)) AS SUCC_CNT
|
|
||||||
FROM hubez_common.EZ_WEB_MSG
|
|
||||||
WHERE 1=1
|
|
||||||
AND CH_STR = #{chStr}
|
|
||||||
<if test='reqType != null and reqType != ""'>
|
|
||||||
<if test='reqType eq "M"'>
|
|
||||||
<![CDATA[
|
|
||||||
AND REQ_DT > DATE_ADD(NOW(), INTERVAL -10 MINUTE)
|
|
||||||
]]>
|
|
||||||
</if>
|
|
||||||
<if test='reqType eq "H"'>
|
|
||||||
<![CDATA[
|
|
||||||
AND REQ_DT > DATE_ADD(NOW(), INTERVAL -1 HOUR)
|
|
||||||
]]>
|
|
||||||
</if>
|
|
||||||
<if test='reqType eq "D"'>
|
|
||||||
<![CDATA[
|
|
||||||
AND REQ_DT >= STR_TO_DATE(DATE_FORMAT(NOW(),'%Y%m%d'), '%Y%m%d')
|
|
||||||
]]>
|
|
||||||
</if>
|
|
||||||
</if>
|
|
||||||
GROUP BY CH_STR) T1,
|
|
||||||
(SELECT
|
|
||||||
SUM(IFNULL(FB_SUCC_CNT,0)+IFNULL(FB_FAIL_CNT,0)) AS FB_SEND_CNT
|
|
||||||
,SUM(IFNULL(FB_SUCC_CNT,0)) AS FB_SUCC_CNT
|
|
||||||
FROM hubez_common.EZ_WEB_MSG
|
|
||||||
WHERE 1=1
|
|
||||||
AND FB_CH_STR = #{chStr}
|
|
||||||
<if test='reqType != null and reqType != ""'>
|
|
||||||
<if test='reqType eq "M"'>
|
|
||||||
<![CDATA[
|
|
||||||
AND REQ_DT > DATE_ADD(NOW(), INTERVAL -10 MINUTE)
|
|
||||||
]]>
|
|
||||||
</if>
|
|
||||||
<if test='reqType eq "H"'>
|
|
||||||
<![CDATA[
|
|
||||||
AND REQ_DT > DATE_ADD(NOW(), INTERVAL -1 HOUR)
|
|
||||||
]]>
|
|
||||||
</if>
|
|
||||||
<if test='reqType eq "D"'>
|
|
||||||
<![CDATA[
|
|
||||||
AND REQ_DT >= STR_TO_DATE(DATE_FORMAT(NOW(),'%Y%m%d'), '%Y%m%d')
|
|
||||||
]]>
|
|
||||||
</if>
|
|
||||||
</if>
|
|
||||||
GROUP BY FB_CH_STR) T2
|
|
||||||
</select>
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
Reference in New Issue
Block a user