소스 검색

排序规则

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">