Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rgfeldman committed Mar 8, 2016
1 parent a43a529 commit 664246d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/edu/si/CDIS/CreateCISmedia.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ else if (objectId == -1 ) {
}

CDISActivityLog activityLog = new CDISActivityLog();
activityLog.setCdisMapId(cdisMap.getCdisMapId());
activityLog.setCdisStatusCd("LCC");
activityLog.insertActivity();
}
Expand Down
17 changes: 11 additions & 6 deletions src/edu/si/CDIS/GenVfcuDirReport.java
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,16 @@ int countPendingRecords () {
"FROM vfcu_media_file a " +
"WHERE a.vfcu_md5_file_id in (" + this.masterMd5Id + ", " + this.childMd5Id + ") " +
"AND NOT EXISTS ( " +
" SELECT 'X' " +
" 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'))";
" SELECT 'X' " +
" 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 NOT EXISTS ( " +
" SELECT 'X' " +
" FROM vfcu_activity_log d " +
" WHERE a.vfcu_media_file_id = d.vfcu_media_file_id " +
" AND d.vfcu_status_cd in ('ER','OH')) ";

try (PreparedStatement stmt = CDIS.getDamsConn().prepareStatement(sql);
ResultSet rs = stmt.executeQuery() ) {
Expand Down Expand Up @@ -478,7 +483,7 @@ private void writeCompleted() {
if (completedIdName.get(mapId).equals("emuLinkComplete") ) {
listing = "File: " + cdisMap.getFileName() + " Linked UAN: " + siAsst.getOwningUnitUniqueName() + " IRN: " + cdisMap.getCisUniqueMediaId() ;
}
else if (completedIdName.get(mapId).equals("DAMSIngestComplete") ) {
else {
listing = "File: " + cdisMap.getFileName() + " Ingested UAN: " + siAsst.getOwningUnitUniqueName();
}

Expand Down

0 comments on commit 664246d

Please sign in to comment.