|
@@ -321,6 +321,6 @@
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<select id="countUserGroupByCity" parameterType="com.hssx.entity.UserExample" resultMap="CityCountResultMap">
|
|
|
- SELECT city, COUNT(*) AS quantity FROM mini_user GROUP BY city;
|
|
|
+ SELECT city, COUNT(*) AS quantity FROM mini_user GROUP BY city ORDER BY quantity DESC;
|
|
|
</select>
|
|
|
</mapper>
|