From 47ff4d8018d550a23ca81a964c226ec173326942 Mon Sep 17 00:00:00 2001 From: zhaowenxuan <chacca165@163.com> Date: 星期一, 16 六月 2025 10:37:22 +0800 Subject: [PATCH] 0616-1 --- ltkj-system/src/main/resources/mapper/system/SysNoticeMapper.xml | 4 +++- 1 files changed, 3 insertions(+), 1 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..2db1efd 100644 --- a/ltkj-system/src/main/resources/mapper/system/SysNoticeMapper.xml +++ b/ltkj-system/src/main/resources/mapper/system/SysNoticeMapper.xml @@ -53,6 +53,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 +62,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 +99,4 @@ </foreach> </delete> -</mapper> \ No newline at end of file +</mapper> -- Gitblit v1.8.0