소스 검색

问答记录列表获取 默认是问答记录数升序排序,如果相同按照id降序排序

wangmiaomiao 10 달 전
부모
커밋
34697ec4a0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      slibra-system/src/main/resources/mapper/business/TXinyiChatRecordMapper.xml

+ 1 - 1
slibra-system/src/main/resources/mapper/business/TXinyiChatRecordMapper.xml

@@ -49,7 +49,7 @@
             <if test="isShutdown != null "> and is_shutdown = #{isShutdown}</if>
             <if test="isShutdown != null "> and is_shutdown = #{isShutdown}</if>
             <if test="revision != null "> and revision = #{revision}</if>
             <if test="revision != null "> and revision = #{revision}</if>
         </where>
         </where>
-        and del_flag = 0 order by counts asc
+        and del_flag = 0 order by counts asc, id desc
     </select>
     </select>
 
 
     <select id="selectTXinyiChatRecordFirstList" parameterType="TXinyiChatRecord" resultMap="TXinyiChatRecordResult">
     <select id="selectTXinyiChatRecordFirstList" parameterType="TXinyiChatRecord" resultMap="TXinyiChatRecordResult">