门店号管理

dev_0531
LegnaYet 5 years ago
parent 03aea0e41c
commit bdeca4401f

@ -3,7 +3,7 @@
<mapper namespace="com.kiisoo.ic.generalize.mapper.PoiCustomerContactDataStatMapper">
<!--拉黑-->
<select id="selectDeleteCustomer" resultType="com.kiisoo.ic.generalize.entity.PoiCustomerContactDataStat">
select id as id, store_id as storeId, negative_feedback_cnt as negativeFeedbackCnt,
select id as id, store_id as storeId, negative_feedback_cnt as negativeFeedbackCnt,
new_contact_cnt as newContactCnt, stat_time as statTime, create_time as createTime
from poi_customer_contact_data_stat t1 where t1.store_id in
<foreach collection="shopIds" separator="," item="item" index="index" close=")" open="(">
@ -47,14 +47,14 @@
<select id="selectSumDataByShopIds" resultType="com.kiisoo.ic.generalize.entity.PoiCustomerContactDataStat">
select
store_id as storeId,
SUM(negative_feedback_cnt) as negativeFeedbackCnt,
SUM(new_apply_cnt) as newApplyCnt,
SUM(chat_cnt) as chatCnt,
SUM(message_cnt) as messageCnt,
AVG(avg_reply_time) as avgReplyTime,
AVG(reply_percentage) as replyPercentage,
SUM(new_contact_cnt) as newContactCnt
from poi_customer_contact_data_stat where
IFNULL(SUM(negative_feedback_cnt),0) as negativeFeedbackCnt,
IFNULL(SUM(new_apply_cnt),0) as newApplyCnt,
IFNULL(SUM(chat_cnt),0) as chatCnt,
IFNULL(SUM(message_cnt),0) as messageCnt,
IFNULL(AVG(avg_reply_time),0) as avgReplyTime,
IFNULL(AVG(reply_percentage),0) as replyPercentage,
IFNULL(SUM(new_contact_cnt),0) as newContactCnt
from poi_customer_contact_data_stat where
store_id in
<foreach collection="storeIds" separator="," item="item" index="index" close=")" open="(">
#{item}

Loading…
Cancel
Save