master
jiangyunjie 6 years ago
parent 23f97c9657
commit 1d416c3eb3

@ -10,7 +10,7 @@
t5.NAME AS inviteSellerName, t5.NAME AS inviteSellerName,
t4.user_id AS inviteSellerId, t4.user_id AS inviteSellerId,
t1.create_time AS addTime, t1.create_time AS addTime,
t2.avatar, t2.avatar_url as avatar,
t3.level as vipFlag t3.level as vipFlag
FROM FROM
op_seller_customer_relation t1, op_seller_customer_relation t1,

@ -376,7 +376,7 @@
GROUP BY GROUP BY
storeId storeId
ORDER BY ORDER BY
newCusNum DESC newCusNum, storeId DESC
) a, ) a,
( SELECT @rank := 0 ) b ( SELECT @rank := 0 ) b
</select> </select>
@ -397,7 +397,7 @@
</if> </if>
where t1.store_id = #{storeId} where t1.store_id = #{storeId}
and t1.type = 4 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 ( SELECT @rank := 0 ) b
</select> </select>
<select id="selectLatestUpdateTime" resultType="java.util.Date"> <select id="selectLatestUpdateTime" resultType="java.util.Date">

Loading…
Cancel
Save