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/SysNoticeMapper.xml | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/multi-system/src/main/resources/mapper/system/SysNoticeMapper.xml b/multi-system/src/main/resources/mapper/system/SysNoticeMapper.xml
index 52be8c1..a34c84b 100644
--- a/multi-system/src/main/resources/mapper/system/SysNoticeMapper.xml
+++ b/multi-system/src/main/resources/mapper/system/SysNoticeMapper.xml
@@ -51,11 +51,14 @@
AND a.type = #{type}
</if>
<if test="deptId != null">
- AND a.deptId = #{dept_id}
+ AND a.dept_id = #{deptId}
</if>
<if test="createBy != null and createBy != ''">
AND a.create_by like concat('%', #{createBy}, '%')
</if>
+ <if test="year != null and year != ''">
+ AND DATE_FORMAT(a.publish_date, '%Y') = #{year}
+ </if>
order by a.create_time desc
</select>
--
Gitblit v1.9.2