代码提交
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.yaoyuan.jiscuss.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
@@ -23,6 +24,14 @@ public class PostsServiceImpl implements IPostsService {
|
||||
return postsRepository.findAll();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Posts> findOneBy(Integer id) {
|
||||
|
||||
List<Posts> ss = postsRepository.findOneBy(id);
|
||||
return ss;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Posts insert(Posts posts) {
|
||||
return postsRepository.save(posts);
|
||||
|
||||
Reference in New Issue
Block a user