@@ -31,6 +31,7 @@
<!-- r.region_name-->
<!-- order by count( c.id )-->
SELECT
+ r.id,
cu.province name,
count( c.id ) count
FROM
@@ -59,8 +60,9 @@
</if>
</where>
GROUP BY
cu.province
- order by count( c.id )
+ order by count( c.id ) desc
</select>
<select id="project" resultType="com.qmth.sop.business.bean.result.CrmAnalyseResult">