diff --git a/WebContent/Tenwa/Core/FlowManager/CopyFileToOther.jsp b/WebContent/Tenwa/Core/FlowManager/CopyFileToOther.jsp index 2db3ba4a9..d25c0c348 100644 --- a/WebContent/Tenwa/Core/FlowManager/CopyFileToOther.jsp +++ b/WebContent/Tenwa/Core/FlowManager/CopyFileToOther.jsp @@ -69,6 +69,7 @@ } } } + tx.commit(); //ΡΉΛυ FileOutputStream fos1 = new FileOutputStream(new File(fileSavePath+"/"+time+".zip")); ZipUtils zdo = new ZipUtils(); diff --git a/calc/com/tenwa/reckon/copydata/FileCopyToOtherPath.java b/calc/com/tenwa/reckon/copydata/FileCopyToOtherPath.java index 4e19e5df1..35c2bca5d 100644 --- a/calc/com/tenwa/reckon/copydata/FileCopyToOtherPath.java +++ b/calc/com/tenwa/reckon/copydata/FileCopyToOtherPath.java @@ -6,10 +6,14 @@ import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; + import jbo.app.tenwa.doc.LC_COPYFILE_LOG; + import org.apache.commons.io.FileUtils; + import com.amarsoft.are.jbo.BizObject; import com.amarsoft.are.jbo.BizObjectManager; +import com.amarsoft.are.jbo.JBOException; import com.amarsoft.are.jbo.JBOFactory; import com.amarsoft.are.util.StringFunction; import com.amarsoft.awe.util.Transaction; @@ -70,6 +74,14 @@ public class FileCopyToOtherPath { } catch (Exception e) { e.printStackTrace(); return contractNo; + }finally{ + try { + if(Sqlca !=null){ + Sqlca.commit(); + } + } catch (JBOException e) { + e.printStackTrace(); + } } return "Y"; }