pull/296/head
ruibaby 2019-09-03 10:34:53 +08:00
parent 3d280de545
commit 8cc21c948e
1 changed files with 4 additions and 0 deletions

View File

@ -177,6 +177,10 @@ public class PostServiceImpl extends BasePostServiceImpl<Post> implements PostSe
// Create or update post
post = super.createOrUpdateBy(post);
postTagService.removeByPostId(post.getId());
postCategoryService.removeByPostId(post.getId());
// List all tags
List<Tag> tags = tagService.listAllByIds(tagIds);