Forráskód Böngészése

亲密度更新名字升序排序

liu 1 éve
szülő
commit
17449001ef

+ 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,sr.relation_name DESC
+        ORDER BY count DESC,CONVERT(sr.relation_name USING gbk) COLLATE gbk_chinese_ci
 
 
     </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,sr.relation_name DESC
+        ORDER BY count DESC,CONVERT(sr.relation_name USING gbk) COLLATE gbk_chinese_ci
     </select>
     </select>
 </mapper>
 </mapper>