From 1cf010127f0ae2a4c5952749ade13103ba5e311d Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Thu, 15 Aug 2024 09:15:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E6=88=B7=E5=90=8E=E5=8F=B0-=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E7=AE=A1=E7=90=86bug=E4=BF=AE=E6=94=B9=20=E9=97=A8?= =?UTF-8?q?=E6=88=B7=E5=90=8E=E5=8F=B0-=E6=96=B0=E9=97=BB=E5=8A=A8?= =?UTF-8?q?=E6=80=81bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operator/service/content/impl/ContentServiceImpl.java | 6 ++++++ .../operator/service/news/impl/NewsServiceImpl.java | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/src/main/java/cn/com/tenlion/operator/service/content/impl/ContentServiceImpl.java b/src/main/java/cn/com/tenlion/operator/service/content/impl/ContentServiceImpl.java index bfeebcd..b3290fa 100644 --- a/src/main/java/cn/com/tenlion/operator/service/content/impl/ContentServiceImpl.java +++ b/src/main/java/cn/com/tenlion/operator/service/content/impl/ContentServiceImpl.java @@ -200,15 +200,21 @@ public class ContentServiceImpl extends DefaultBaseService implements IContentSe @Override public void cancel(String contentId) { + ContentDTO contentDTO = get(contentId); ContentVO contentVO = new ContentVO(); contentVO.setSendStatus("save"); + contentVO.setPhoto(contentDTO.getPhoto()); + contentVO.setVideo(contentDTO.getVideo()); update(contentId, contentVO); } @Override public void publish(String contentId) { ContentVO contentVO = new ContentVO(); + ContentDTO contentDTO = get(contentId); contentVO.setSendStatus("published"); + contentVO.setPhoto(contentDTO.getPhoto()); + contentVO.setVideo(contentDTO.getVideo()); update(contentId, contentVO); } diff --git a/src/main/java/cn/com/tenlion/operator/service/news/impl/NewsServiceImpl.java b/src/main/java/cn/com/tenlion/operator/service/news/impl/NewsServiceImpl.java index 8c016df..0383a96 100644 --- a/src/main/java/cn/com/tenlion/operator/service/news/impl/NewsServiceImpl.java +++ b/src/main/java/cn/com/tenlion/operator/service/news/impl/NewsServiceImpl.java @@ -210,6 +210,10 @@ public class NewsServiceImpl extends DefaultBaseService implements INewsService public void cancel(String newsId) { NewsVO newsVO = new NewsVO(); newsVO.setSendStatus("save"); + NewsDTO newsDTO = get(newsId); + newsVO.setPhoto(newsDTO.getPhoto()); + newsVO.setVideo(newsDTO.getVideo()); + newsVO.setCoverPhoto(newsDTO.getCoverPhoto()); update(newsId, newsVO); } @@ -217,6 +221,10 @@ public class NewsServiceImpl extends DefaultBaseService implements INewsService public void publish(String newsId) { NewsVO newsVO = new NewsVO(); newsVO.setSendStatus("published"); + NewsDTO newsDTO = get(newsId); + newsVO.setPhoto(newsDTO.getPhoto()); + newsVO.setVideo(newsDTO.getVideo()); + newsVO.setCoverPhoto(newsDTO.getCoverPhoto()); update(newsId, newsVO); }