@Repository public interface BudgetDetailRepository extends org.springframework.data.jpa.repository.JpaRepository<BudgetDetail,Long>
| Modifier and Type | Method and Description |
|---|---|
Long |
countByBudgetIdAndStatusId(Long budgetId,
Integer status) |
BigDecimal |
findBudgetAmount(Long budgetId,
Integer status) |
List<BudgetDetail> |
findByBudgetIdAndStatusId(Long budgetId,
Integer status) |
List<BudgetDetail> |
findByBudgetIdInAndStatusId(List<Long> rbIds,
Integer status) |
List<BudgetDetail> |
findByBudgetIdInAndStatusIdNotIn(Long budgetId,
Integer status) |
List<BudgetDetail> |
findByBudgetReferenceBudgetId(Long budgetId) |
BudgetDetail |
findByReferenceBudget(String uniqueNo,
Long budgetId) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllList<BudgetDetail> findByBudgetIdInAndStatusId(List<Long> rbIds, Integer status)
List<BudgetDetail> findByBudgetReferenceBudgetId(Long budgetId)
@Query(value="select sum(bg.originalAmount) from BudgetDetail bg where bg.budget.id=:budgetId and bg.status.id=:status") BigDecimal findBudgetAmount(@Param(value="budgetId") Long budgetId, @Param(value="status") Integer status)
List<BudgetDetail> findByBudgetIdAndStatusId(Long budgetId, Integer status)
List<BudgetDetail> findByBudgetIdInAndStatusIdNotIn(Long budgetId, Integer status)
@Query(value="from BudgetDetail where uniqueNo=:uniqueNo and budget in (select id from Budget where referenceBudget.id=:budgetId)") BudgetDetail findByReferenceBudget(@Param(value="uniqueNo") String uniqueNo, @Param(value="budgetId") Long budgetId)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.