排序优化

master
jiangyunjie 6 years ago
parent 6fcdaac617
commit 7735daa835

@ -377,7 +377,7 @@
GROUP BY
storeId
ORDER BY
newCusNum DESC
newCusNum DESC, storeId DESC
) a,
( SELECT @rank := 0 ) b
</select>
@ -398,7 +398,7 @@
</if>
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
</select>
<select id="selectLatestUpdateTime" resultType="java.util.Date">

Loading…
Cancel
Save