From 58e54bea1a8c581a66c7e5622e7bfa1e2b50c302 Mon Sep 17 00:00:00 2001 From: xhxu Date: Mon, 17 Jan 2022 15:58:19 +0800 Subject: [PATCH] =?UTF-8?q?/=E3=80=81.coupon=20order?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/WxCouponOrderMapper.xml | 10 +++++++--- .../main/resources/mapper/WxCreditHistoryMapper.xml | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml index dd2654011..01a66d7c1 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml @@ -762,8 +762,8 @@ - order by ${sortColumns} - order by co.id desc + order by ${sortColumns} + order by co.update_date desc @@ -771,7 +771,11 @@ select co.id,co.tenant_id,co.parent_tenant_id,co.coupon_id,co.coupon_type,co.c_user_id,co.owner_id,co.b_user_id, co.order_id,co.expired_time,co.coupon_order_status,co.create_date,co.update_date,co.coupon_price,co.verify_type,co.verify_remark, co.pay_vendor, co.`freight_price`,co.`shipping_type`,co.`shipping_address`,co.`shipping_status`,co.`delivery_info`,co.subsidy - where co.id = #{id} and co.tenant_id = #{tenantId} and cu.final_tenant_id = #{finalTenantId} + FROM wx_coupon_order co + where co.id = #{id} and co.tenant_id = #{tenantId} + + and co.`parent_tenant_id` = #{parentTenantId} + diff --git a/mallinkService/src/main/resources/mapper/WxCreditHistoryMapper.xml b/mallinkService/src/main/resources/mapper/WxCreditHistoryMapper.xml index 6e26ee703..3d5ed97fa 100644 --- a/mallinkService/src/main/resources/mapper/WxCreditHistoryMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCreditHistoryMapper.xml @@ -188,7 +188,7 @@ #{cUserIdItem} - ORDER BY credit.id DESC + ORDER BY credit.create_date DESC limit #{begin}, #{limit} @@ -235,7 +235,7 @@