Fixing response duplicate issue

revert-70aa11f8
geethkokila 9 years ago
parent 8819c6e36b
commit efa74030b4

@ -412,7 +412,9 @@ public class GenericOperationDAOImpl implements OperationDAO {
activity.getActivityStatus().add(activityStatus); activity.getActivityStatus().add(activityStatus);
enrolmentId = rs.getInt("ENROLMENT_ID"); enrolmentId = rs.getInt("ENROLMENT_ID");
} else { }
if (operationId == rs.getInt("OPERATION_ID") && enrolmentId == rs.getInt("ENROLMENT_ID")){
if (rs.getTimestamp("RECEIVED_TIMESTAMP") != (null)) { if (rs.getTimestamp("RECEIVED_TIMESTAMP") != (null)) {
activityStatus.getResponses().add(this.getOperationResponse(rs)); activityStatus.getResponses().add(this.getOperationResponse(rs));
} }

Loading…
Cancel
Save