From 768d8e27a804bba85a1dd8a262124dd9b60e655e Mon Sep 17 00:00:00 2001 From: litao Date: Wed, 7 Jun 2017 10:29:06 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D=20null=E8=BD=AC=E6=8D=A2?= =?UTF-8?q?=E4=B8=BA0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/mainOrm/master/CouponMapper.xml | 26 ++++++++++------------ 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml b/platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml index 88261ae..afcfdf4 100644 --- a/platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml +++ b/platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml @@ -235,16 +235,13 @@ select a.id, count(distinct(b.user_id)) as people_send_count, count(1) as coupon_send_count, a.area_id, a.city_id, a.province_id - from organization a, coupon_info b, coupon_template c, coupon_type d, hospital_coupon_template_group e, coupon_template_group f - where a.id = b.create_hospital_id and b.coupon_template_id = c.id and c.type_id = d.id and e.coupon_template_group_id = f.id and e.hospital_id = 1000000095 + from organization a, coupon_info b, coupon_template c, coupon_type d + where a.id = b.create_hospital_id and b.coupon_template_id = c.id and c.type_id = d.id and a.id = #{hid} and d.type in #{type} - - and f.id = #{tempId} - and b.create_date >= #{startDate} @@ -345,18 +339,22 @@ -- 1.8.3.1