@Repository public interface RevisionEstimateRepository extends org.springframework.data.jpa.repository.JpaRepository<RevisionAbstractEstimate,Long>
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAll@Query(value="from RevisionAbstractEstimate re where re.parent.id=:id and re.egwStatus.code=:status order by re.id") List<RevisionAbstractEstimate> findByParent_IdAndStatus(@Param(value="id") Long id, @Param(value="status") String status)
@Query(value="from RevisionAbstractEstimate re where re.parent.id=:id and re.egwStatus.code=:status and re.id<:reId order by re.id") List<RevisionAbstractEstimate> findByParent_IdAndStatusForView(@Param(value="id") Long id, @Param(value="reId") Long reId, @Param(value="status") String status)
List<RevisionAbstractEstimate> findByParent_Id(Long id)
@Query(value="select distinct(re.createdBy) from RevisionAbstractEstimate as re") List<org.egov.infra.admin.master.entity.User> findRevisionEstimateCreatedByUsers()
List<RevisionAbstractEstimate> findByParent_idAndCreatedDateAfterAndEgwStatus_codeNotLike(@Param(value="parentId") Long parentId, @Param(value="createdDate") Date createdDate, @Param(value="status") String status)
@Query(value="select distinct(re.estimateNumber) from RevisionAbstractEstimate as re where upper(re.estimateNumber) like upper(:estimateNumber)") List<String> findDistinctEstimateNumberContainingIgnoreCase(@Param(value="estimateNumber") String estimateNumber)
@Query(value="select distinct(re.estimateNumber) from RevisionAbstractEstimate re where re.parent is not null and re.egwStatus.code =:statusApproved and upper(re.estimateNumber) like upper(:code) and exists (select estimate from WorkOrderEstimate woe where woe.estimate.id = re.id OR exists(select mbh.workOrderEstimate from MBHeader mbh where egwStatus.code =:statusCancelled))") List<String> getRENumbersToCancel(@Param(value="code") String code, @Param(value="statusApproved") String statusApproved, @Param(value="statusCancelled") String statusCancelled)
RevisionAbstractEstimate findByParent_IdAndEgwStatus_codeEquals(Long estimateId, String statusCode)
@Query(value="select re from RevisionAbstractEstimate as re where re.parent.id =:estimateId and egwStatus.code not in (:cancelledStatus, :approvedStatus, :newStatus)") RevisionAbstractEstimate findByParentAndStatus(@Param(value="estimateId") Long estimateId, @Param(value="cancelledStatus") String cancelledStatus, @Param(value="approvedStatus") String approvedStatus, @Param(value="newStatus") String newStatus)
List<RevisionAbstractEstimate> findByParent_IdAndEgwStatus_codeNotLike(@Param(value="id") Long id, @Param(value="status") String status)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.