From 5d29fd67cf0918b3412a477ea217dea9e38cb4ca Mon Sep 17 00:00:00 2001 From: gjh <1421wake> Date: Thu, 24 Apr 2025 18:08:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dromara/platform/service/impl/NoticeInfoServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ruoyi-modules/guoyan-platform/src/main/java/org/dromara/platform/service/impl/NoticeInfoServiceImpl.java b/ruoyi-modules/guoyan-platform/src/main/java/org/dromara/platform/service/impl/NoticeInfoServiceImpl.java index 073f842..d4e3113 100644 --- a/ruoyi-modules/guoyan-platform/src/main/java/org/dromara/platform/service/impl/NoticeInfoServiceImpl.java +++ b/ruoyi-modules/guoyan-platform/src/main/java/org/dromara/platform/service/impl/NoticeInfoServiceImpl.java @@ -128,6 +128,10 @@ public class NoticeInfoServiceImpl implements INoticeInfoService { public Boolean updateByBo(NoticeInfoBo bo) { NoticeInfo update = MapstructUtils.convert(bo, NoticeInfo.class); validEntityBeforeSave(update); + List attachments = bo.getAttachments(); + AttachmentSerializer serializer = new AttachmentSerializer(); + String serializedAttachment = serializer.serializeAttachments(attachments); + update.setAttachment(serializedAttachment); return baseMapper.updateById(update) > 0; }