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 @@