@@ -72,7 +72,7 @@ int updateGrievanceAllocationStatus(@Param("grievanceId") Long grievanceId,
7272 public Set <Object []> fetchUnallocatedGrievanceCount ();
7373
7474 @ Modifying
75- @ Query ("UPDATE GrievanceDetails g SET g.complaintResolution = :complaintResolution, g.remarks = :remarks, g.modifiedBy = :modifiedBy, "
75+ @ Query ("UPDATE GrievanceDetails g SET g.complaintResolution = :complaintResolution, g.remarks = :remarks, g.modifiedBy = :modifiedBy "
7676 + "WHERE g.complaintID = :complaintID AND g.beneficiaryRegID = :beneficiaryRegID AND g.providerServiceMapID = :providerServiceMapID"
7777 + " AND g.userID = :userID" )
7878 @ Transactional
@@ -85,7 +85,7 @@ int updateComplaintResolution(@Param("complaintResolution") String complaintReso
8585 @ Param ("userID" ) Integer userID );
8686
8787 @ Modifying
88- @ Query ("UPDATE GrievanceDetails g SET g.complaintResolution = :complaintResolution, g.modifiedBy = :modifiedBy, "
88+ @ Query ("UPDATE GrievanceDetails g SET g.complaintResolution = :complaintResolution, g.modifiedBy = :modifiedBy "
8989 + "WHERE g.complaintID = :complaintID AND g.beneficiaryRegID = :beneficiaryRegID AND g.providerServiceMapID = :providerServiceMapID"
9090 + " AND g.userID = :userID" )
9191 @ Transactional
@@ -95,5 +95,33 @@ int updateComplaintResolution(@Param("complaintResolution") String complaintReso
9595 @ Param ("beneficiaryRegID" ) Long beneficiaryRegID ,
9696 @ Param ("providerServiceMapID" ) Integer providerServiceMapID ,
9797 @ Param ("userID" ) Integer userID );
98+
99+ @ Query (" Select grievance.callCounter, grievance.retryNeeded FROM GrievanceDetails grievance where complaintID = :complaintID" )
100+ public List <Object []> getCallCounter (@ Param ("complaintID" ) String complaintID );
101+
102+ @ Modifying
103+ @ Query ("UPDATE GrievanceDetails g SET g.isCompleted = :isCompleted, g. g.retryNeeded = :retryNeeded "
104+ + "WHERE g.complaintID = :complaintID AND g.userID = :userID AND g.beneficiaryRegID = :beneficiaryRegID "
105+ + "AND g.providerServiceMapID = :providerServiceMapID" )
106+ @ Transactional
107+ public int updateCompletedStatusInCall (@ Param ("isCompleted" ) Boolean isCompleted ,
108+ @ Param ("retryNeeded" ) Boolean retryNeeded ,
109+ @ Param ("complaintID" ) String complaintID ,
110+ @ Param ("userID" ) Integer userID ,
111+ @ Param ("beneficiaryRegID" ) Long beneficiaryRegID ,
112+ @ Param ("providerServiceMapID" ) Integer providerServiceMapID );
113+
114+
115+ @ Modifying
116+ @ Query ("UPDATE GrievanceDetails g SET g.callCounter = :callCounter, g.retryNeeded = :retryNeeded "
117+ + "WHERE g.complaintID = :complaintID AND g.beneficiaryRegID = :beneficiaryRegID AND g.providerServiceMapID = :providerServiceMapID"
118+ + " AND g.userID = :userID" )
119+ @ Transactional
120+ public int updateCallCounter (@ Param ("callCounter" ) Integer callCounter ,
121+ @ Param ("retryNeeded" ) Boolean retryNeeded ,
122+ @ Param ("complaintID" ) String complaintID ,
123+ @ Param ("beneficiaryRegID" ) Long beneficiaryRegID ,
124+ @ Param ("providerServiceMapID" ) Integer providerServiceMapID ,
125+ @ Param ("userID" ) Integer userID );
98126
99127}
0 commit comments