diff --git a/pass-grant-loader/src/main/java/org/eclipse/pass/support/grant/data/jhu/CoeusConnector.java b/pass-grant-loader/src/main/java/org/eclipse/pass/support/grant/data/jhu/CoeusConnector.java index 4303fac9..68a9aa09 100644 --- a/pass-grant-loader/src/main/java/org/eclipse/pass/support/grant/data/jhu/CoeusConnector.java +++ b/pass-grant-loader/src/main/java/org/eclipse/pass/support/grant/data/jhu/CoeusConnector.java @@ -106,13 +106,14 @@ public class CoeusConnector implements GrantConnector { "LEFT JOIN COEUS.SWIFT_SPONSOR D ON A.PRIME_SPONSOR_CODE = D.SPONSOR_CODE " + "WHERE (B.ABBREVIATED_ROLE = 'P' OR B.ABBREVIATED_ROLE = 'C' " + "OR REGEXP_LIKE (UPPER(B.ROLE), '^CO ?-?INVESTIGATOR$')) " + + "AND TO_DATE(A.AWARD_END, 'MM/DD/YYYY') >= TO_DATE('01/01/2011', 'MM/DD/YYYY') " + "AND A.PROPOSAL_STATUS = 'Funded' " + "AND A.GRANT_NUMBER IS NOT NULL " + "AND EXISTS (" + " select * from COEUS.JHU_FACULTY_FORCE_PROP EA where" + " EA.UPDATE_TIMESTAMP > ?" + - " AND TO_DATE(EA.AWARD_END, 'MM/DD/YYYY') >= TO_DATE(?, 'MM/DD/YYYY')" + " AND EA.GRANT_NUMBER = A.GRANT_NUMBER" + + " AND TO_DATE(EA.AWARD_END, 'MM/DD/YYYY') >= TO_DATE(?, 'MM/DD/YYYY')" + " AND EA.PROPOSAL_STATUS = 'Funded' "; private static final String SELECT_USER_SQL =