public interface CompanyApplyDao extends org.springframework.data.jpa.repository.JpaRepository<CompanyApply,java.lang.Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<CompanyApply>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
deleteById(java.lang.Long id) |
java.util.List<CompanyApply> |
findByTaxNum(java.lang.String taxNum) |
java.util.List<CompanyApply> |
findByTenantIdAndTaxNum(long tenantId,
java.lang.String taxNum)
根据租户ID和税号查询是否申请
|
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushcount, delete, deleteAll, deleteAll, deleteAllById, existsById, findById, save@Transactional(rollbackFor=java.lang.Exception.class)
@Modifying(flushAutomatically=true,
clearAutomatically=true)
@Query(value="delete from CompanyApply ca where ca.companyApplyId = :companyApplyId")
void deleteById(@Param(value="companyApplyId")
java.lang.Long id)
deleteById 在接口中 org.springframework.data.repository.CrudRepository<CompanyApply,java.lang.Long>@Query(value="select ca from CompanyApply ca where ca.taxNum = :taxNum") java.util.List<CompanyApply> findByTaxNum(@Param(value="taxNum") java.lang.String taxNum)
@Query(value="select ca from CompanyApply ca where ca.tenantId = :tenantId and ca.taxNum = :taxNum") java.util.List<CompanyApply> findByTenantIdAndTaxNum(@Param(value="tenantId") long tenantId, @Param(value="taxNum") java.lang.String taxNum)
tenantId - 租户IDtaxNum - 税号