Bläddra i källkod

红包余额流水

xgb 2 veckor sedan
förälder
incheckning
4796abb7c4

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