Skip to content

Commit

Permalink
Add award end date filters to main grant sql
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoet-jh committed May 24, 2024
1 parent e3154e8 commit 33fffba
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 33fffba

Please sign in to comment.