From 7735daa8357fa13913dfd5298a5715324614c57d Mon Sep 17 00:00:00 2001 From: jiangyunjie Date: Wed, 29 Apr 2020 23:20:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E5=BA=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/StorePromotionDataDOMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/StorePromotionDataDOMapper.xml b/src/main/resources/mapper/StorePromotionDataDOMapper.xml index 4113bbe..e3c18d2 100644 --- a/src/main/resources/mapper/StorePromotionDataDOMapper.xml +++ b/src/main/resources/mapper/StorePromotionDataDOMapper.xml @@ -377,7 +377,7 @@ GROUP BY storeId ORDER BY - newCusNum DESC + newCusNum DESC, storeId DESC ) a, ( SELECT @rank := 0 ) b @@ -398,7 +398,7 @@ where t1.store_id = #{storeId} and t1.type = 4 - GROUP BY userId ORDER BY newCusNum DESC ) a, + GROUP BY userId ORDER BY newCusNum DESC, userId DESC ) a, ( SELECT @rank := 0 ) b