From cb7d99d810f2356096b67fbccd3fac556e638d83 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期四, 22 八月 2024 11:22:56 +0800
Subject: [PATCH] feat:查询条件优化

---
 ycl-server/src/main/resources/mapper/zgyw/TContractMapper.xml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ycl-server/src/main/resources/mapper/zgyw/TContractMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/TContractMapper.xml
index 7c796e6..b2ff105 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/TContractMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/TContractMapper.xml
@@ -41,12 +41,12 @@
         from t_contract tc
         left join t_calculate_rule tcr on tc.id = tcr.contract_id
         <where>
-            tc.deleted =0 and #{time} between tc.start_time and tc.end_time
+            tc.deleted =0 and #{date} between tc.start_time and tc.end_time
             <if test="ruleName !=null and ruleName!=''">
-                tcr.rule_name = #{ruleName}
+                and tcr.rule_name = #{ruleName}
             </if>
             <if test="ruleCondition !=null and ruleCondition!=''">
-                tcr.rule_condition = #{ruleCondition}
+                and tcr.rule_condition = #{ruleCondition}
             </if>
         </where>
 

--
Gitblit v1.8.0