From bdeca4401ffc633ee143812df5d21ab940a777ce Mon Sep 17 00:00:00 2001 From: LegnaYet <1023868505@qq.com> Date: Thu, 21 May 2020 16:32:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E5=BA=97=E5=8F=B7=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PoiCustomerContactDataStatDOMapper.xml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/resources/mapper/PoiCustomerContactDataStatDOMapper.xml b/src/main/resources/mapper/PoiCustomerContactDataStatDOMapper.xml index e428efc..a2be789 100644 --- a/src/main/resources/mapper/PoiCustomerContactDataStatDOMapper.xml +++ b/src/main/resources/mapper/PoiCustomerContactDataStatDOMapper.xml @@ -3,7 +3,7 @@ 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 #{item}