From 8afa9b5c0c6749244bf656aac51c4b3ace207bc6 Mon Sep 17 00:00:00 2001 From: hupeng Date: Wed, 30 Jan 2019 12:44:49 +0800 Subject: [PATCH] =?UTF-8?q?[A=E7=AB=AF][=E4=BC=98=E5=8C=96]:=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E5=8F=91=E5=88=B8=E6=95=B0=E9=87=8F=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E8=AF=AD=E5=8F=A5=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/WxCouponActionLogMapper.xml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml index 7c2644fe6..7222f0fe5 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml @@ -100,7 +100,9 @@ select DATE_FORMAT(create_time,'%Y-%m-%d') as xTime, - (select Count(*) from wx_coupon_action_log c - where DATE_FORMAT(create_time,'%Y-%m-%d')=xTime - and c.channel_type=#{channelType} - and tenant_id=#{tenantId} ) as sendCount + Count(*) as sendCount from wx_coupon_action_log where tenant_id=#{tenantId} and channel_type=#{channelType} @@ -131,7 +130,10 @@