From a3d63a4a7199d346e63039a8fd6490b12387fa4e Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Thu, 07 May 2026 13:42:38 +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