Kaynağa Gözat

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

wangmiaomiao 10 ay önce
ebeveyn
işleme
34697ec4a0

+ 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="revision != null "> and revision = #{revision}</if>
         </where>
-        and del_flag = 0 order by counts asc
+        and del_flag = 0 order by counts asc, id desc
     </select>
 
     <select id="selectTXinyiChatRecordFirstList" parameterType="TXinyiChatRecord" resultMap="TXinyiChatRecordResult">