public interface OrgCompanynoDao extends org.springframework.data.jpa.repository.JpaRepository<OrgCompanyRel,java.lang.Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<OrgCompanyRel>, io.geewit.data.jpa.essential.repository.JpaBatchExecutor<OrgCompanyRel>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
deleteById(java.lang.Long id) |
void |
deleteByOrgId(long orgId) |
java.util.List<OrgCompanyRel> |
findByOrgId(long orgId) |
java.util.List<OrgCompanyRel> |
findByOrgIds(java.util.List<java.lang.Long> orgIds)
查询列表
|
java.util.List<OrgCompanyRel> |
findCompanyNosByOrgIds(java.util.Collection<java.lang.Long> orgIds) |
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushcount, delete, deleteAll, deleteAll, deleteAllById, existsById, findById, savecount, exists, findAll, findOne@Transactional(rollbackFor=java.lang.Exception.class)
@Modifying(flushAutomatically=true,
clearAutomatically=true)
@Query(value="delete from OrgCompanyRel rel where rel.id = :id")
void deleteById(@Param(value="id")
java.lang.Long id)
deleteById 在接口中 org.springframework.data.repository.CrudRepository<OrgCompanyRel,java.lang.Long>@Query(value="select r from OrgCompanyRel r where r.orgStructId = :orgId") java.util.List<OrgCompanyRel> findByOrgId(@Param(value="orgId") long orgId)
@Query(value="select r from OrgCompanyRel r where r.orgStructId in :orgIds") java.util.List<OrgCompanyRel> findByOrgIds(@Param(value="orgIds") java.util.List<java.lang.Long> orgIds)
orgIds - @Transactional(rollbackFor=java.lang.Exception.class)
@Modifying(flushAutomatically=true,
clearAutomatically=true)
@Query(value="delete from OrgCompanyRel r where r.orgStructId = :orgId")
void deleteByOrgId(@Param(value="orgId")
long orgId)
@Query(value="select new OrgCompanyRel(rel.orgStructId, rel.companyNo) from OrgCompanyRel rel where rel.orgStructId in :orgIds") java.util.List<OrgCompanyRel> findCompanyNosByOrgIds(@Param(value="orgIds") java.util.Collection<java.lang.Long> orgIds)