diff --git a/mallinkService/src/main/resources/mapper/WxOrderGroupMapper.xml b/mallinkService/src/main/resources/mapper/WxOrderGroupMapper.xml index 12ead6dde..ee9f8a17a 100644 --- a/mallinkService/src/main/resources/mapper/WxOrderGroupMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxOrderGroupMapper.xml @@ -109,7 +109,7 @@ (select count(*) total from wx_coupon_order where coupon_type=9 and coupon_order_status=1 and coupon_id=c.id) verify_count, IFNULL((select count(*) from wx_order where order_group_id!=0 and product_id=c.id),0) total_people - from wx_coupon c where type=9 + from wx_coupon c where type=9 order by c.status,c.id desc ) c