From 28d6f88c4122d6276c8e9dd6a817c4b3675551aa Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期二, 26 五月 2026 09:24:09 +0800
Subject: [PATCH] feat:1.销售采购合同按照录入日期生成 2.采购合同号按照录入日期生成

---
 src/main/resources/mapper/approve/FinReimbursementMapper.xml |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/approve/FinReimbursementMapper.xml b/src/main/resources/mapper/approve/FinReimbursementMapper.xml
index 75ca038..72756c4 100644
--- a/src/main/resources/mapper/approve/FinReimbursementMapper.xml
+++ b/src/main/resources/mapper/approve/FinReimbursementMapper.xml
@@ -48,8 +48,12 @@
             <if test="ew.applicantName != null and ew.applicantName != ''">
                 and applicant_name like concat('%',#{ew.applicantName},'%')
             </if>
-            <if test="ew.createTimeStart != null and ew.createTimeStart !=''">
-                and create_time between to_date(#{ew.createTimeStart}) and to_date(#{ew.createTimeEnd})
+            <if test="ew.applicantCode != null and ew.applicantCode != ''">
+                and applicant_code like concat('%',#{ew.applicantCode},'%')
+            </if>
+            <if test="ew.createTimeStart != null and ew.createTimeStart !='' and ew.createTimeEnd != null and ew.createTimeEnd != ''">
+                and create_time &gt;= #{ew.createTimeStart}
+                and create_time &lt;= #{ew.createTimeEnd}
             </if>
         </where>
     </select>

--
Gitblit v1.9.3