mirror of https://github.com/halo-dev/halo
Fix existence query bug
parent
b4ec2b2318
commit
2933e0297f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue