Prechádzať zdrojové kódy

更新亲密度排列顺序

liu 1 rok pred
rodič
commit
d0c2ef64b6

+ 2 - 2
src/main/resources/mapper/template/SmartRelationMapper.xml

@@ -27,7 +27,7 @@
             and sr.date_time >= #{startTime} and sr.date_time < #{endTime}
             and sr.date_time >= #{startTime} and sr.date_time < #{endTime}
         </if>
         </if>
         GROUP BY sr.relation_id
         GROUP BY sr.relation_id
-        ORDER BY count DESC
+        ORDER BY count DESC,sr.relation_name DESC
 
 
     </select>
     </select>
     <select id="getAppList" resultType="com.template.model.vo.SmartRelationAppVo">
     <select id="getAppList" resultType="com.template.model.vo.SmartRelationAppVo">
@@ -55,6 +55,6 @@
             and sr.date_time &gt;= #{startTime} and sr.date_time &lt; #{endTime}
             and sr.date_time &gt;= #{startTime} and sr.date_time &lt; #{endTime}
         </if>
         </if>
         GROUP BY sr.relation_id
         GROUP BY sr.relation_id
-        ORDER BY count DESC
+        ORDER BY count DESC,sr.relation_name DESC
     </select>
     </select>
 </mapper>
 </mapper>