Browse Source

补充

ops-management-platform-backend-dev
gjh 2 weeks ago
parent
commit
5d29fd67cf
  1. 4
      ruoyi-modules/guoyan-platform/src/main/java/org/dromara/platform/service/impl/NoticeInfoServiceImpl.java

4
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<Attachment> attachments = bo.getAttachments();
AttachmentSerializer serializer = new AttachmentSerializer();
String serializedAttachment = serializer.serializeAttachments(attachments);
update.setAttachment(serializedAttachment);
return baseMapper.updateById(update) > 0;
}

Loading…
Cancel
Save