|
|
@ -860,7 +860,7 @@ public class GenericOperationDAOImpl implements OperationDAO {
|
|
|
|
"OPERATION_CODE, om.ID AS OM_MAPPING_ID, om.UPDATED_TIMESTAMP FROM DM_OPERATION o " +
|
|
|
|
"OPERATION_CODE, om.ID AS OM_MAPPING_ID, om.UPDATED_TIMESTAMP FROM DM_OPERATION o " +
|
|
|
|
"INNER JOIN (SELECT * FROM DM_ENROLMENT_OP_MAPPING dm " +
|
|
|
|
"INNER JOIN (SELECT * FROM DM_ENROLMENT_OP_MAPPING dm " +
|
|
|
|
"WHERE dm.ENROLMENT_ID = ? AND dm.STATUS = ?) om ON o.ID = om.OPERATION_ID " +
|
|
|
|
"WHERE dm.ENROLMENT_ID = ? AND dm.STATUS = ?) om ON o.ID = om.OPERATION_ID " +
|
|
|
|
"ORDER BY o.CREATED_TIMESTAMP ASC LIMIT 1");
|
|
|
|
"ORDER BY om.UPDATED_TIMESTAMP ASC LIMIT 1");
|
|
|
|
stmt.setInt(1, enrolmentId);
|
|
|
|
stmt.setInt(1, enrolmentId);
|
|
|
|
stmt.setString(2, Operation.Status.PENDING.toString());
|
|
|
|
stmt.setString(2, Operation.Status.PENDING.toString());
|
|
|
|
rs = stmt.executeQuery();
|
|
|
|
rs = stmt.executeQuery();
|
|
|
|