Skip to content

Commit dfbf623

Browse files
vanitha1822vishwab1
authored andcommitted
Add the current time stamp for high risk mother records
1 parent b6c21a4 commit dfbf623

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/com/iemr/ecd/repo/call_conf_allocation/OutboundCallsRepo.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Page<OutboundCalls> getChildRecordsForAssociate(Pageable pageable, @Param("alloc
9090
@Param("psmId") Integer psmId, @Param("fDate") Timestamp fDate, @Param("tDate") Timestamp tDate, @Param("preferredLanguage") String preferredLanguage);
9191
@Query(value = " SELECT t FROM OutboundCalls AS t WHERE t.allocationStatus =:allocationStatus AND "
9292
+ " t.psmId=:psmId AND "
93+
+ " t.callDateTo >= CURRENT_TIMESTAMP AND "
9394
+ " 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 )")
9495
Page<OutboundCalls> getMotherRecordsForMO(Pageable pageable, @Param("allocationStatus") String allocationStatus,
9596
@Param("psmId") Integer psmId);
@@ -123,6 +124,7 @@ int getChildUnAllocatedCountLR(@Param("allocationStatus") String allocationStatu
123124
// un-allocated, mother high risk,
124125
@Query(value = " SELECT count(1) FROM OutboundCalls AS t WHERE t.allocationStatus =:allocationStatus AND "
125126
+ " t.psmId=:psmId AND "
127+
+ " t.callDateTo >= CURRENT_TIMESTAMP AND "
126128
+ " t.childId IS NULL AND t.motherId IS NOT NULL AND t.isHighRisk = true "
127129
+ " AND t.phoneNumberType=:phoneNoType AND t.deleted = false AND t.displayEcdCallType != 'introductory' AND (t.isFurtherCallRequired = true OR t.isFurtherCallRequired IS NULL )")
128130
int getMotherUnAllocatedCountHR(@Param("allocationStatus") String allocationStatus, @Param("psmId") Integer psmId,

0 commit comments

Comments
 (0)