提交 5cb3fd3d authored 作者: xc's avatar xc

xc

上级 39d3d0de
......@@ -13,6 +13,6 @@ import java.util.List;
public interface NoticeDao extends JpaRepository<Notice , Integer> {
Notice findById(int id);
Page<Notice> findOutBySenderAndType(String sender, int type, Pageable pageable);
Page<Notice> findOutByAddresseeAndType(String addressee, int type, Pageable pageable);
Page<Notice> findOutByAddresseeLikeAndType(String addressee, int type, Pageable pageable);
List<Notice> findOutByStatusAndType(int status, int type);
}
......@@ -237,7 +237,7 @@ public class NoticeServiceImpl implements NoticeService {
if (type == 0){
//已接收
p = noticeDao.findOutByAddresseeAndType(user, type, pageable);
p = noticeDao.findOutByAddresseeLikeAndType("%"+user+"%", type, pageable);
}else {
//已发送,草稿
p = noticeDao.findOutBySenderAndType(user, type, pageable);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论