提交 2933e029 编写于 作者: J johnniang

Fix existence query bug

上级 b4ec2b23
......@@ -108,9 +108,9 @@ public interface BasePostRepository<POST extends BasePost> extends BaseRepositor
*/
long countByStatus(@NonNull PostStatus status);
boolean countByUrl(@NonNull String title);
boolean existsByUrl(@NonNull String title);
boolean countByIdNotAndUrl(@NonNull Integer id, @NonNull String title);
boolean existsByIdNotAndUrl(@NonNull Integer id, @NonNull String title);
/**
* Get post by url
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册