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/ItemMapper.xml |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/multi-system/src/main/resources/mapper/system/ItemMapper.xml b/multi-system/src/main/resources/mapper/system/ItemMapper.xml
index 3d6341e..2c7d285 100644
--- a/multi-system/src/main/resources/mapper/system/ItemMapper.xml
+++ b/multi-system/src/main/resources/mapper/system/ItemMapper.xml
@@ -23,13 +23,18 @@
             `create_by`,
             `create_time`,
             `update_by`,
-            `update_time`
+            `update_time`,
+            `year`
         FROM
             `item`
         where del_flag = 1
         <if test="companyId!=null">
             and company_id = #{companyId}
         </if>
+        <if test="year != null and year != ''">
+            and year = #{year}
+        </if>
+
     </select>
     <select id="selectItemListAll" resultType="com.gkhy.exam.system.domain.Item">
         SELECT
@@ -40,7 +45,8 @@
             i.`create_by`,
             i.`create_time`,
             i.`update_by`,
-            i.`update_time`
+            i.`update_time`,
+            i.`year`
         FROM
             `item` i
             LEFT JOIN item_user iu ON i.id = iu.item_id
@@ -52,6 +58,9 @@
             <if test="userId!=null">
                 and iu.user_id = #{userId}
             </if>
+        <if test="year != null and year != ''">
+            and i.year = #{year}
+        </if>
         GROUP BY
             i.id
 

--
Gitblit v1.9.2