门户后台-内容管理bug修改
门户后台-新闻动态bug修改
This commit is contained in:
parent
93d6a17f06
commit
1cf010127f
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user