From 1d416c3eb347079bcdeef93707fe8904845dc5d7 Mon Sep 17 00:00:00 2001 From: jiangyunjie Date: Wed, 29 Apr 2020 15:07:04 +0800 Subject: [PATCH] bug --- .../resources/mapper/OpSellerCustomerRelationDOMapper.xml | 2 +- src/main/resources/mapper/StorePromotionDataDOMapper.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/mapper/OpSellerCustomerRelationDOMapper.xml b/src/main/resources/mapper/OpSellerCustomerRelationDOMapper.xml index 1ff7472..658f90f 100644 --- a/src/main/resources/mapper/OpSellerCustomerRelationDOMapper.xml +++ b/src/main/resources/mapper/OpSellerCustomerRelationDOMapper.xml @@ -10,7 +10,7 @@ t5.NAME AS inviteSellerName, t4.user_id AS inviteSellerId, t1.create_time AS addTime, - t2.avatar, + t2.avatar_url as avatar, t3.level as vipFlag FROM op_seller_customer_relation t1, diff --git a/src/main/resources/mapper/StorePromotionDataDOMapper.xml b/src/main/resources/mapper/StorePromotionDataDOMapper.xml index 16d3767..2c66db1 100644 --- a/src/main/resources/mapper/StorePromotionDataDOMapper.xml +++ b/src/main/resources/mapper/StorePromotionDataDOMapper.xml @@ -376,7 +376,7 @@ GROUP BY storeId ORDER BY - newCusNum DESC + newCusNum, storeId DESC ) a, ( SELECT @rank := 0 ) b @@ -397,7 +397,7 @@ where t1.store_id = #{storeId} and t1.type = 4 - GROUP BY userId ORDER BY newCusNum DESC ) a, + GROUP BY userId ORDER BY newCusNum, userId DESC ) a, ( SELECT @rank := 0 ) b