shudonghui 1 년 전
부모
커밋
ccdda17926
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      sop-business/src/main/resources/mapper/CrmAnalyseMapper.xml

+ 3 - 1
sop-business/src/main/resources/mapper/CrmAnalyseMapper.xml

@@ -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
+        r.id,
         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">
         SELECT