public interface PrivacyAgreementDao extends io.geewit.data.jpa.essential.repository.EntityGraphJpaRepository<PrivacyAgreement,java.lang.Long>, io.geewit.data.jpa.essential.repository.EntityGraphJpaSpecificationExecutor<PrivacyAgreement>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
deleteById(java.lang.Long id) |
java.util.Optional<PrivacyAgreement> |
findFirstByStatusAndCompanyTypeOrderByCreateTimeDesc(int status,
int companyType) |
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushcount, exists, findAll, findOnefindAll, findAllfindAll, findAllById, findByIdcount, delete, deleteAll, deleteAll, deleteAllById, existsById, findById, save@Transactional(rollbackFor=java.lang.Exception.class)
@Modifying(flushAutomatically=true,
clearAutomatically=true)
@Query(value="delete from PrivacyAgreement pa where pa.id = :id")
void deleteById(@Param(value="id")
java.lang.Long id)
deleteById 在接口中 org.springframework.data.repository.CrudRepository<PrivacyAgreement,java.lang.Long>@Query(value="select * from sys_privacy_agreement where status = :status and company_type = :companyType order by create_time desc limit 1",
nativeQuery=true)
java.util.Optional<PrivacyAgreement> findFirstByStatusAndCompanyTypeOrderByCreateTimeDesc(@Param(value="status")
int status,
@Param(value="companyType")
int companyType)