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