From 1e6fb8779ba3ace8718fb31745c4d7500d32e94c Mon Sep 17 00:00:00 2001 From: Vanitha Date: Mon, 16 Jun 2025 15:48:39 +0530 Subject: [PATCH] Add the current time stamp for high risk mother records --- .../iemr/ecd/repo/call_conf_allocation/OutboundCallsRepo.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/iemr/ecd/repo/call_conf_allocation/OutboundCallsRepo.java b/src/main/java/com/iemr/ecd/repo/call_conf_allocation/OutboundCallsRepo.java index 7b53558..a96611b 100644 --- a/src/main/java/com/iemr/ecd/repo/call_conf_allocation/OutboundCallsRepo.java +++ b/src/main/java/com/iemr/ecd/repo/call_conf_allocation/OutboundCallsRepo.java @@ -90,6 +90,7 @@ Page getChildRecordsForAssociate(Pageable pageable, @Param("alloc @Param("psmId") Integer psmId, @Param("fDate") Timestamp fDate, @Param("tDate") Timestamp tDate, @Param("preferredLanguage") String preferredLanguage); @Query(value = " SELECT t FROM OutboundCalls AS t WHERE t.allocationStatus =:allocationStatus AND " + " t.psmId=:psmId AND " + + " t.callDateTo >= CURRENT_TIMESTAMP AND " + " t.childId IS NULL AND t.motherId IS NOT NULL AND t.isHighRisk = true AND t.displayEcdCallType != 'introductory' AND (t.isFurtherCallRequired = true OR t.isFurtherCallRequired IS NULL )") Page getMotherRecordsForMO(Pageable pageable, @Param("allocationStatus") String allocationStatus, @Param("psmId") Integer psmId); @@ -123,6 +124,7 @@ int getChildUnAllocatedCountLR(@Param("allocationStatus") String allocationStatu // un-allocated, mother high risk, @Query(value = " SELECT count(1) FROM OutboundCalls AS t WHERE t.allocationStatus =:allocationStatus AND " + " t.psmId=:psmId AND " + + " t.callDateTo >= CURRENT_TIMESTAMP AND " + " t.childId IS NULL AND t.motherId IS NOT NULL AND t.isHighRisk = true " + " AND t.phoneNumberType=:phoneNoType AND t.deleted = false AND t.displayEcdCallType != 'introductory' AND (t.isFurtherCallRequired = true OR t.isFurtherCallRequired IS NULL )") int getMotherUnAllocatedCountHR(@Param("allocationStatus") String allocationStatus, @Param("psmId") Integer psmId,