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