From ac544c1d85c53e7f51e4ea76aa2489a14aef03d9 Mon Sep 17 00:00:00 2001
From: zjh <1084500556@qq.com>
Date: 星期五, 20 六月 2025 18:57:45 +0800
Subject: [PATCH] zjh20250620

---
 ltkj-system/src/main/resources/mapper/system/SysNoticeMapper.xml |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ltkj-system/src/main/resources/mapper/system/SysNoticeMapper.xml b/ltkj-system/src/main/resources/mapper/system/SysNoticeMapper.xml
index a5358cf..0d95536 100644
--- a/ltkj-system/src/main/resources/mapper/system/SysNoticeMapper.xml
+++ b/ltkj-system/src/main/resources/mapper/system/SysNoticeMapper.xml
@@ -27,7 +27,9 @@
                create_time,
                update_by,
                update_time,
-               remark
+               remark,
+               dept_id
+
         from sys_notice
     </sql>
 
@@ -53,6 +55,7 @@
 
     <insert id="insertNotice" parameterType="SysNotice">
         insert into sys_notice (
+        <if test="noticeId != null and noticeId != '' ">notice_id,</if>
         <if test="noticeTitle != null and noticeTitle != '' ">notice_title,</if>
         <if test="noticeType != null and noticeType != '' ">notice_type,</if>
         <if test="noticeContent != null and noticeContent != '' ">notice_content,</if>
@@ -61,6 +64,7 @@
         <if test="createBy != null and createBy != ''">create_by,</if>
         create_time
         )values(
+        <if test="noticeId != null and noticeId != '' ">#{noticeId},</if>
         <if test="noticeTitle != null and noticeTitle != ''">#{noticeTitle},</if>
         <if test="noticeType != null and noticeType != ''">#{noticeType},</if>
         <if test="noticeContent != null and noticeContent != ''">#{noticeContent},</if>
@@ -97,4 +101,4 @@
         </foreach>
     </delete>
 
-</mapper>
\ No newline at end of file
+</mapper>

--
Gitblit v1.8.0