public interface SoftDeletableMongoRepository<T extends BaseSoftDeletableJpaEntity<ID>,ID> extends BaseMongoRepository<T,ID>
| 限定符和类型 | 方法和说明 |
|---|---|
List<T> |
findAllByDeleteFlag(boolean deleteFlag)
通过删除标志查找
|
default List<T> |
listAll()
查找所有未删除
|
default List<T> |
recycleBin()
查找所有已删除
|
default void |
softDelete(ID id)
软删除
查询或删除需要添加 @Modifying注解
|
deleteAllByIdInfindAll, findAll, findAll, findAll, insert, insert, saveAllCopyright © 2022. All rights reserved.