From 858c02d13c9f6bd51aef9e4f6824571c79ee1618 Mon Sep 17 00:00:00 2001 From: zhangbb Date: Wed, 13 May 2020 14:17:38 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=96=87=E4=BB=B6=E4=B8=8B=E8=BD=BD=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E5=88=9B=E5=BB=BA=E7=9A=84=E4=BA=8B=E5=8A=A1=E6=89=8B?= =?UTF-8?q?=E5=8A=A8=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Tenwa/Core/FlowManager/CopyFileToOther.jsp | 1 + .../tenwa/reckon/copydata/FileCopyToOtherPath.java | 12 ++++++++++++ 2 files changed, 13 insertions(+) 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"; }