Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rgfeldman committed Mar 25, 2016
1 parent 3842011 commit d64447f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/edu/si/CDIS/GenVfcuDirReport.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ int countPendingRecords () {
" FROM cdis_map b, " +
" cdis_activity_log c " +
" WHERE a.vfcu_media_file_id = b.vfcu_media_file_id " +
" AND c.cdis_status_cd in ('LDC','ERR')) " +
" AND b.cdis_map_id = c.cdis_map_id " +
" AND c.cdis_status_cd in ('" + CDIS.getProperty("rptStatus") + "','ERR')) " +
"AND NOT EXISTS ( " +
" SELECT 'X' " +
" FROM vfcu_activity_log d " +
Expand Down Expand Up @@ -384,7 +385,12 @@ public void send () {
message.addRecipient(Message.RecipientType.TO, new InternetAddress(toEmailAddrArray[i].trim()));
}

message.setSubject(CDIS.getProperty("siHoldingUnit") + ": Batch Hot Folder Import Activity Report - " + this.rptVendorDir);
if (CDIS.getProperty("rptStatus").equals("LDC")) {
message.setSubject(CDIS.getProperty("siHoldingUnit") + ": Batch Hot Folder Import Activity Report - " + this.rptVendorDir);
}
else {
message.setSubject(CDIS.getProperty("siHoldingUnit") + ": Batch Hot Folder Integration Activity Report - " + this.rptVendorDir);
}

String emailContent = this.statsHeader.replace("\n","<br>");

Expand Down

0 comments on commit d64447f

Please sign in to comment.