Browse Source

排序规则

zhoutg 5 years atrás
parent
commit
ae8a97dd95
1 changed files with 1 additions and 1 deletions
  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">