| Line 499... |
Line 499... |
| 499 |
return typedQuerySimilar.getResultList();
|
499 |
return typedQuerySimilar.getResultList();
|
| 500 |
}
|
500 |
}
|
| 501 |
|
501 |
|
| 502 |
@Override
|
502 |
@Override
|
| 503 |
@Cacheable(value = "rbmWeeklyBilling",
|
503 |
@Cacheable(value = "rbmWeeklyBilling",
|
| 504 |
cacheManager = "twoMintimeoutCacheManager",
|
504 |
cacheManager = "fiveMintimeoutCacheManager",
|
| 505 |
unless = "#result == null or #result.isEmpty()")
|
505 |
unless = "#result == null or #result.isEmpty()",
|
| - |
|
506 |
sync = true)
|
| 506 |
public List<RbmWeeklyBillingModel> getWeeklyBillingDataForMonth(LocalDate monthStart, LocalDate monthEnd) {
|
507 |
public List<RbmWeeklyBillingModel> getWeeklyBillingDataForMonth(LocalDate monthStart, LocalDate monthEnd) {
|
| 507 |
Session session = sessionFactory.getCurrentSession();
|
508 |
Session session = sessionFactory.getCurrentSession();
|
| 508 |
final TypedQuery<RbmWeeklyBillingModel> typedQuery = session.createNamedQuery("RBM.WeeklyBilling", RbmWeeklyBillingModel.class);
|
509 |
final TypedQuery<RbmWeeklyBillingModel> typedQuery = session.createNamedQuery("RBM.WeeklyBilling", RbmWeeklyBillingModel.class);
|
| 509 |
typedQuery.setParameter("startDate", monthStart);
|
510 |
typedQuery.setParameter("startDate", monthStart);
|
| 510 |
typedQuery.setParameter("endDate", monthEnd);
|
511 |
typedQuery.setParameter("endDate", monthEnd);
|