From ddca8e96ee1aa47ba33fcf3a9a1e7e964d63ad8b Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期四, 31 十月 2024 17:15:43 +0800
Subject: [PATCH] fix: 钱包供应商财务1

---
 src/main/resources/mapper/wallet/WalletWithdrawRecordMapper.xml |   22 +++++++---------------
 1 files changed, 7 insertions(+), 15 deletions(-)

diff --git a/src/main/resources/mapper/wallet/WalletWithdrawRecordMapper.xml b/src/main/resources/mapper/wallet/WalletWithdrawRecordMapper.xml
index ca3f42d..f840ba2 100644
--- a/src/main/resources/mapper/wallet/WalletWithdrawRecordMapper.xml
+++ b/src/main/resources/mapper/wallet/WalletWithdrawRecordMapper.xml
@@ -30,31 +30,23 @@
         <if test="dto.supplierId != null and dto.supplierId != ''">
             and t.supplier_id = #{dto.supplierId}
         </if>
-        <if test="dto.withdrawState != null and dto.withdrawState != ''">
-            and t.withdraw_state = #{dto.withdrawState}
+        <if test="dto.approveState != null and dto.approveState != ''">
+            and t.approve_state = #{dto.approveState}
         </if>
         <if test="dto.createStartDate!=null ">
-            <![CDATA[
-               AND t.create_time &gt;= #{dto.createStartDate}
-            ]]>
+               AND DATE_FORMAT(t.create_time, '%Y-%m-%d') &gt;= #{dto.createStartDate}
         </if>
         <if test="dto.endEndDate!=null ">
-            <![CDATA[
-               AND t.create_time &lt;= #{dto.endEndDate}
-            ]]>
+               AND DATE_FORMAT(t.create_time, '%Y-%m-%d') &lt;= #{dto.endEndDate}
         </if>
         <if test="dto.approveStartDate!=null ">
-            <![CDATA[
-               AND t.approve_time &gt;= #{dto.approveStartDate}
-            ]]>
+            AND DATE_FORMAT(t.approve_time, '%Y-%m-%d') &gt;= #{dto.approveStartDate}
         </if>
         <if test="dto.approveEndDate!=null ">
-            <![CDATA[
-               AND t.approve_time &lt;= #{dto.approveStartDate}
-            ]]>
+            AND DATE_FORMAT(t.approve_time, '%Y-%m-%d') &lt;= #{dto.approveEndDate}
         </if>
 
-        order by t.create_time
+        order by t.create_time desc
     </select>
 
 </mapper>

--
Gitblit v1.9.3