浏览代码

修改排序

dos 1 周之前
父节点
当前提交
e143d0c139
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      game-business/src/main/resources/mapper/business/FinTranRecordMapper.xml

+ 1 - 1
game-business/src/main/resources/mapper/business/FinTranRecordMapper.xml

@@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="beginTime != null  and beginTime != ''"> and create_time &gt; CONCAT(#{beginTime},' 00:00:00')</if>
             <if test="endTime != null  and endTime != ''"> and create_time &lt; CONCAT(#{endTime},' 23:59:59')</if>
         </where>
-        order by create_time desc
+        order by create_time desc,id desc
     </select>
     
     <select id="selectFinTranRecordById" parameterType="Long" resultMap="FinTranRecordResult">