排序优化

master
jiangyunjie 6 years ago
parent 6fcdaac617
commit 7735daa835

@ -377,7 +377,7 @@
GROUP BY GROUP BY
storeId storeId
ORDER BY ORDER BY
newCusNum DESC newCusNum DESC, storeId DESC
) a, ) a,
( SELECT @rank := 0 ) b ( SELECT @rank := 0 ) b
</select> </select>
@ -398,7 +398,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 DESC, 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