浏览代码

红包余额流水

xgb 2 周之前
父节点
当前提交
4796abb7c4
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      fs-service/src/main/resources/mapper/company/CompanyRedPacketBalanceLogsMapper.xml

+ 2 - 1
fs-service/src/main/resources/mapper/company/CompanyRedPacketBalanceLogsMapper.xml

@@ -28,9 +28,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <where>
             <if test="logsId != null "> and l.logs_id = #{logsId}</if>
             <if test="companyId != null "> and l.company_id = #{companyId}</if>
-            <if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and l.create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
+            <if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and l.create_time &gt;=  CONCAT(#{params.beginCreateTime}," 00:00:00")  and l.create_time &lt;= CONCAT(#{params.endCreateTime}," 23:59:59")</if>
             <if test="logsType != null "> and l.logs_type = #{logsType}</if>
         </where>
+        order by l.create_time desc
     </select>
 
     <select id="selectCompanyRedPacketBalanceLogsByLogsId" parameterType="Long" resultMap="CompanyRedPacketBalanceLogsResult">