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