From 2d9bf42ce507096c3b73a782da3ad16f29d2ccdc Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: Thu, 07 May 2026 15:25:16 +0800
Subject: [PATCH] 新增年份查询

---
 multi-system/src/main/resources/mapper/system/PurchaseContractMapper.xml |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/multi-system/src/main/resources/mapper/system/PurchaseContractMapper.xml b/multi-system/src/main/resources/mapper/system/PurchaseContractMapper.xml
index 32ba396..21a0f3d 100644
--- a/multi-system/src/main/resources/mapper/system/PurchaseContractMapper.xml
+++ b/multi-system/src/main/resources/mapper/system/PurchaseContractMapper.xml
@@ -7,6 +7,7 @@
         SELECT
             pc.`id`,
             pc.`company_id`,
+            pc.`year`,
             sc.`name` AS company_name,
             pc.`file_name`,
             pc.`file_path`,
@@ -23,6 +24,9 @@
           <if test="companyId!=null">
               AND pc.company_id = #{companyId}
           </if>
+          <if test="year!=null and year !=''">
+              AND pc.`year` = #{year}
+          </if>
         ORDER BY
             pc.create_time DESC
     </select>

--
Gitblit v1.9.2