Commit 0d9f17ee authored by sakale's avatar sakale

SY90SUN012-download flag of invoice must be updated for each download


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91265 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 83c6b343
...@@ -398,6 +398,7 @@ public class DownloadCSVBatchBean implements Schedule ...@@ -398,6 +398,7 @@ public class DownloadCSVBatchBean implements Schedule
String templDnld = null; String templDnld = null;
String csvData = null; String csvData = null;
TranXmlData client = null; TranXmlData client = null;
java.sql.PreparedStatement pstmtSeq2 = null;
ibase.webitm.utility.XML2CSVCustomConverter csvConverter = null; ibase.webitm.utility.XML2CSVCustomConverter csvConverter = null;
csvConverter = new ibase.webitm.utility.XML2CSVCustomConverter(); csvConverter = new ibase.webitm.utility.XML2CSVCustomConverter();
...@@ -430,6 +431,19 @@ public class DownloadCSVBatchBean implements Schedule ...@@ -430,6 +431,19 @@ public class DownloadCSVBatchBean implements Schedule
fw.close(); fw.close();
fw = null; fw = null;
pstmtSeq2 = conn.prepareStatement( "UPDATE INVOICE SET "
+" DOWNLOAD_FLAG = 'Y' WHERE INVOICE_ID = ? " );
pstmtSeq2.setString( 1, tranId );
int rowCnt = pstmtSeq2.executeUpdate();
if(rowCnt >= 1){
conn.commit();
}
else{
conn.rollback();
}
pstmtSeq2.close();
pstmtSeq2 = null;
conn.close(); conn.close();
conn = null; conn = null;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment