Interface AttachmentRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Attachment, String>, org.springframework.data.jpa.repository.JpaRepository<Attachment, String>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Attachment>, org.springframework.data.repository.ListCrudRepository<Attachment, String>, org.springframework.data.repository.ListPagingAndSortingRepository<Attachment, String>, org.springframework.data.repository.PagingAndSortingRepository<Attachment, String>, org.springframework.data.repository.query.QueryByExampleExecutor<Attachment>, org.springframework.data.repository.Repository<Attachment, String>

@Repository @NullMarked public interface AttachmentRepository extends org.springframework.data.jpa.repository.JpaRepository<Attachment, String>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Attachment>
附件 进行数据库操作的 JPA 接口
Author:
xezzon
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    查询业务关联的附件列表

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    count, count, delete, delete, exists, exists, findAll, findAll, findAll, findAll, findAll, findBy, findBy, findOne, findOne, update

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByBizTypeAndBizId

      List<Attachment> findByBizTypeAndBizId(String bizType, String bizId)
      查询业务关联的附件列表
      Parameters:
      bizType - 业务类型
      bizId - 业务ID
      Returns:
      附件列表