From d64447f086f0cc4a15746fa6ac97d876b4f0d92f Mon Sep 17 00:00:00 2001 From: rfeldman Date: Fri, 25 Mar 2016 13:31:35 -0400 Subject: [PATCH] #185 --- src/edu/si/CDIS/GenVfcuDirReport.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/edu/si/CDIS/GenVfcuDirReport.java b/src/edu/si/CDIS/GenVfcuDirReport.java index 2392602a4..83c364566 100644 --- a/src/edu/si/CDIS/GenVfcuDirReport.java +++ b/src/edu/si/CDIS/GenVfcuDirReport.java @@ -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 " + @@ -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","
");