Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ public String closeCall(
+ "\"agentIPAddress\":\"Optional String - agent IP address\", "
+ "\"agentID\":\"Optional String - agentID\", \"isSelf\":\"Optional boolean\", "
+ "\"isFeedback\":\"optional Boolean true if IVRS feedback to be taken\", "
+ "\"IsOutbound\":\"Optional Boolean - for checking outboundcall status\", "
+ "\"isTransfered\":\"Boolean - transfer call or not\"" + "}") @RequestBody String request,
HttpServletRequest serverRequest) {
OutputResponse response = new OutputResponse();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ public int closeCallOld(@Param("benCallID") Long benCallID, @Param("remarks") St
@Query("update BeneficiaryCall set callEndTime = :callEndTime, remarks = :remarks, "
+ "callClosureType = :callClosureType, " + "dispositionStatusID = :dispositionStatusID, "
+ "callTypeID = :callTypeID, emergencyType = :emergencyType,"
+ " externalReferral=:externalReferral,instTypeId=:instTypeId,instName=:instName"
+ " externalReferral=:externalReferral,instTypeId=:instTypeId,instName=:instName,isOutbound = :isOutbound"
+ " where benCallID = :benCallID")
public int closeCall(@Param("benCallID") Long benCallID, @Param("remarks") String remarks,
@Param("callEndTime") Timestamp callEndTime, @Param("callClosureType") String callClosureType,
@Param("callTypeID") Integer callTypeID, @Param("dispositionStatusID") Integer dispositionStatusID,
@Param("emergencyType") Short emergencyType, @Param("externalReferral") String externalReferral,
@Param("instTypeId") Integer instTypeId, @Param("instName") String instName);
@Param("instTypeId") Integer instTypeId, @Param("instName") String instName, @Param("isOutbound") Boolean isOutbound);

// @Transactional(propagation = Propagation.REQUIRES_NEW)
@Transactional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ public Integer closeCall(String request, String ipAddress) throws Exception {
new Timestamp(Calendar.getInstance().getTimeInMillis()), benificiaryCall.getCallClosureType(),
benificiaryCall.getCallTypeID(), benificiaryCall.getDispositionStatusID(),
benificiaryCall.getEmergencyType(), benificiaryCall.getExternalReferral(),
benificiaryCall.getInstTypeId(), benificiaryCall.getInstName());
benificiaryCall.getInstTypeId(), benificiaryCall.getInstName(),benificiaryCall.getIsOutbound());

if (benificiaryCall.getBeneficiaryRegID() != null)
beneficiaryCallRepository.updateBeneficiaryRegIDInCall(benificiaryCall.getBenCallID(),
Expand Down Expand Up @@ -456,7 +456,7 @@ public Integer closeCallV1(String request, String ipAddress) throws Exception {
new Timestamp(Calendar.getInstance().getTimeInMillis()), benificiaryCall.getCallClosureType(),
benificiaryCall.getCallTypeID(), benificiaryCall.getDispositionStatusID(),
benificiaryCall.getEmergencyType(), benificiaryCall.getExternalReferral(),
benificiaryCall.getInstTypeId(), benificiaryCall.getInstName());
benificiaryCall.getInstTypeId(), benificiaryCall.getInstName(),benificiaryCall.getIsOutbound());
if (followupRequired.isFollowupRequired) {
OutboundCallRequest outboundCallRequest = inputMapper.gson().fromJson(request, OutboundCallRequest.class);
outboundCallRequestRepository.save(outboundCallRequest);
Expand Down