代码提交--标签相关

This commit is contained in:
2020-09-27 17:35:31 +08:00
parent ba3c813106
commit fde1079d74
30 changed files with 788 additions and 290 deletions
@@ -42,7 +42,7 @@ public class PostsServiceImpl implements IPostsService {
@Override
public Post findOneByid(Integer id) {
Post post =new Post();
Post post = new Post();
post.setId(id);
Example<Post> example = Example.of(post);
Optional<Post> postRes = postsRepository.findOne(example);
@@ -66,7 +66,6 @@ public class PostsServiceImpl implements IPostsService {
// List<PostCustom> thenpostCustomListNew = PostCommonUtil.getNewPostsObjCustom(thenpostCustomList);
//新建一个Node集合。
ArrayList<Node> nodes = new ArrayList<>();
//将第一层评论都添加都Node集合中
@@ -82,8 +81,6 @@ public class PostsServiceImpl implements IPostsService {
Node.show(list);
// List<Map<String, Object>> posts = postsRepository.findPostCustomById(id);
//
// List<PostCustom> postCustomList = PostCommonUtil.getNewPostsObjMap(posts);