diff --git a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml index 57556b533..35a7b1e9d 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml @@ -147,6 +147,7 @@ AND co.create_date < #{endDate,jdbcType=TIMESTAMP} AND co.coupon_order_status = '0' + order by co.create_date desc @@ -165,6 +166,7 @@ AND co.update_date < #{endDate,jdbcType=TIMESTAMP} AND co.coupon_order_status = '1' + order by co.update_date desc @@ -272,6 +274,7 @@ AND c.coupon_order_status = #{status} + order by c.create_date desc