1.文件下载导入创建的事务手动关闭
This commit is contained in:
parent
5e423205c0
commit
858c02d13c
@ -69,6 +69,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
tx.commit();
|
||||
//ѹËõ
|
||||
FileOutputStream fos1 = new FileOutputStream(new File(fileSavePath+"/"+time+".zip"));
|
||||
ZipUtils zdo = new ZipUtils();
|
||||
|
||||
@ -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";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user