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