|
@@ -77,6 +77,9 @@ public class NotifyService extends ServiceImpl <NotifyMapper, Notify> {
|
|
@Resource
|
|
@Resource
|
|
private PluginNotifyCommentsMapper commentsMapper;
|
|
private PluginNotifyCommentsMapper commentsMapper;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ private NotifyMapper notifyMapper;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 根据id获取通知
|
|
* 根据id获取通知
|
|
*/
|
|
*/
|
|
@@ -112,7 +115,9 @@ public class NotifyService extends ServiceImpl <NotifyMapper, Notify> {
|
|
// 1. 将富文本中的临时图片地址更换为新的
|
|
// 1. 将富文本中的临时图片地址更换为新的
|
|
// 2. 获取富文本中的图片信息
|
|
// 2. 获取富文本中的图片信息
|
|
if(StringUtils.isNotBlank(notifyDTO.getContent())){
|
|
if(StringUtils.isNotBlank(notifyDTO.getContent())){
|
|
- notifyDTO.setContent(editorFilesService.getNewContent(notifyDTO.getContent(), id));
|
|
|
|
|
|
+ String newContent = editorFilesService.getNewContent(notifyDTO.getContent(), id);
|
|
|
|
+ notifyMapper.updateContentById(newContent,id);
|
|
|
|
+ notifyDTO.setContent(newContent);
|
|
List<EditorFiles> list = editorFilesService.list(new QueryWrapper<EditorFiles>().lambda().eq(EditorFiles::getSourceId, id));
|
|
List<EditorFiles> list = editorFilesService.list(new QueryWrapper<EditorFiles>().lambda().eq(EditorFiles::getSourceId, id));
|
|
List<EditorFilesDTO> editorFilesDTOList = new ArrayList<>();
|
|
List<EditorFilesDTO> editorFilesDTOList = new ArrayList<>();
|
|
list.stream().forEach(item->{
|
|
list.stream().forEach(item->{
|