|
|
@ -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; |
|
|
|
} |
|
|
|
|
|
|
|