浏览代码

排序规则

zhoutg 5 年之前
父节点
当前提交
ae8a97dd95
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      knowledgeman-service/src/main/resources/mapper/DiagnoseMapper.xml

+ 1 - 1
knowledgeman-service/src/main/resources/mapper/DiagnoseMapper.xml

@@ -29,7 +29,7 @@
         <if test="hasQuestion != null and hasQuestion != ''">
             and a.has_question = #{hasQuestion}
         </if>
-        ORDER BY a.has_question, a.gmt_modified desc
+        ORDER BY a.has_question desc, a.gmt_modified desc
     </select>
 
     <select id="index" resultType="com.diagbot.dto.ConceptBaseDTO">