diff --git a/WebContent/Accounting/LoanSimulation/reriod/uploadReriodOperator.jsp b/WebContent/Accounting/LoanSimulation/reriod/uploadReriodOperator.jsp index ab8e498e7..71f5daf3c 100644 --- a/WebContent/Accounting/LoanSimulation/reriod/uploadReriodOperator.jsp +++ b/WebContent/Accounting/LoanSimulation/reriod/uploadReriodOperator.jsp @@ -19,7 +19,7 @@ String cmessage=""; if (!myAmarsoftUpload.getFiles().getFile(0).isMissing()){ try { - JBOTransaction tx=JBOFactory.getFactory().createTransaction(); + //JBOTransaction tx=JBOFactory.getFactory().createTransaction(); String importparam= CurPage.getParameter("importparam"); importparam=importparam.replaceAll("@", ","); JSONObject paramJson=JSONDecoder.decode(importparam); diff --git a/WebContent/Accounting/LoanSimulation/upload/uploadRentOperator.jsp b/WebContent/Accounting/LoanSimulation/upload/uploadRentOperator.jsp index 619b5d097..5d33acd8d 100644 --- a/WebContent/Accounting/LoanSimulation/upload/uploadRentOperator.jsp +++ b/WebContent/Accounting/LoanSimulation/upload/uploadRentOperator.jsp @@ -20,7 +20,7 @@ String cmessage=""; if (!myAmarsoftUpload.getFiles().getFile(0).isMissing()){ try { - JBOTransaction tx=JBOFactory.getFactory().createTransaction(); + //JBOTransaction tx=JBOFactory.getFactory().createTransaction(); String importparam= CurPage.getParameter("importparam"); importparam=importparam.replaceAll("@", ","); JSONObject paramJson=JSONDecoder.decode(importparam); diff --git a/WebContent/Accounting/LoanSimulation_formal/RentPlanIncomeList.jsp b/WebContent/Accounting/LoanSimulation_formal/RentPlanIncomeList.jsp index 95dc975bf..2b539a48d 100644 --- a/WebContent/Accounting/LoanSimulation_formal/RentPlanIncomeList.jsp +++ b/WebContent/Accounting/LoanSimulation_formal/RentPlanIncomeList.jsp @@ -46,6 +46,7 @@ JBOTransaction tx=JBOFactory.createJBOTransaction(); Map params=new HashMap(); list=DataOperatorUtil.getDataBySql(tx, sql, params); + tx.commit(); String[][] displayData = new String[list.size()][headers.length]; for(int i=0;i <%@ page contentType="text/html; charset=GBK"%> <%@ include file="/IncludeBeginMDAJAX.jsp"%><% - JBOTransaction tx = JBOFactory.createJBOTransaction(); + //JBOTransaction tx = JBOFactory.createJBOTransaction(); String result = ""; String xCoordinate = CurPage.getParameter("xcoordinate"); String yCoordinate = CurPage.getParameter("ycoordinate"); diff --git a/WebContent/Tenwa/ChannelPortal/DistributorManage/DistributorRegister/ChannelDistributorAccountInfo.jsp b/WebContent/Tenwa/ChannelPortal/DistributorManage/DistributorRegister/ChannelDistributorAccountInfo.jsp index b5bc698d1..e182b631a 100644 --- a/WebContent/Tenwa/ChannelPortal/DistributorManage/DistributorRegister/ChannelDistributorAccountInfo.jsp +++ b/WebContent/Tenwa/ChannelPortal/DistributorManage/DistributorRegister/ChannelDistributorAccountInfo.jsp @@ -29,6 +29,7 @@ searchCondtion.put("id",distributor_id); JBOTransaction tx = JBOFactory.createJBOTransaction(); BizObject bo = DataOperatorUtil.getSingleJBO(DISTRIBUTOR_INFO.CLASS_NAME,searchCondtion,tx); + tx.commit(); int size = bo==null? 0:1; String sTempletNo = "CustomerDistributorAccountInfo";//--模板号-- diff --git a/WebContent/Tenwa/Core/FlowManager/FlowBussinessView/ProductView.jsp b/WebContent/Tenwa/Core/FlowManager/FlowBussinessView/ProductView.jsp index 7ba9a8138..948c52ba9 100644 --- a/WebContent/Tenwa/Core/FlowManager/FlowBussinessView/ProductView.jsp +++ b/WebContent/Tenwa/Core/FlowManager/FlowBussinessView/ProductView.jsp @@ -55,6 +55,7 @@ <% OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage,"业务详情","right"); FlowTaskViewTabService.initOHTMLTreeViewProduct(tx,tviTemp,FlowFixedParam); + tx.commit(); %> <%/*~END~*/%> diff --git a/WebContent/Tenwa/Lease/App/InformationTable/InfoView.jsp b/WebContent/Tenwa/Lease/App/InformationTable/InfoView.jsp index c986bf7b7..373976f75 100644 --- a/WebContent/Tenwa/Lease/App/InformationTable/InfoView.jsp +++ b/WebContent/Tenwa/Lease/App/InformationTable/InfoView.jsp @@ -34,6 +34,7 @@ <% OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage,"业务详情","right"); FlowTaskViewTabService.initOHTMLTreeViewProjectContract(tx,tviTemp,CurPage); + tx.commit(); String FlowUnid=CurPage.getParameter("FlowUnid"); %> <%/*~END~*/%> diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/ContractListUpload.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/ContractListUpload.jsp index fa1ff2b16..33972bba2 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/ContractListUpload.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/ContractListUpload.jsp @@ -41,6 +41,7 @@ if(list.size()>0){ libraryId=list.get(0).get("ID"); } + tx.commit(); } BizObjectManager libBm=JBOFactory.getBizObjectManager("jbo.app.tenwa.doc.LB_DOCLIBRARY"); BizObjectManager attrBm=JBOFactory.getBizObjectManager("jbo.app.tenwa.doc.LB_DOCATTRIBUTE"); diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/NormalContractListUpload.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/NormalContractListUpload.jsp index 82cf7f122..6f593ef85 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/NormalContractListUpload.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/NormalContractListUpload.jsp @@ -29,6 +29,7 @@ map.clear(); map.put("flow_unid", FlowUnid); List> list=DataOperatorUtil.getDataBySql(tx, sql, map); + tx.commit(); if(list.size()==0){ %> diff --git a/WebContent/Tenwa/Lease/Flow/Fund/PaymentPlan/PaymentPlanList.jsp b/WebContent/Tenwa/Lease/Flow/Fund/PaymentPlan/PaymentPlanList.jsp index 41a45628e..e67b85898 100644 --- a/WebContent/Tenwa/Lease/Flow/Fund/PaymentPlan/PaymentPlanList.jsp +++ b/WebContent/Tenwa/Lease/Flow/Fund/PaymentPlan/PaymentPlanList.jsp @@ -47,6 +47,7 @@ JBOTransaction tx=JBOFactory.createJBOTransaction(); Map params=new HashMap(); list=DataOperatorUtil.getDataBySql(tx, sql, params); + tx.commit(); displayData = new String[list.size()][headers.length]; for(int i=0;i=start){ return "fail"; diff --git a/src_tenwa/com/tenwa/collectaudit/cache/CollectAuditInfoCache.java b/src_tenwa/com/tenwa/collectaudit/cache/CollectAuditInfoCache.java index 2204f99fb..3f430ff67 100644 --- a/src_tenwa/com/tenwa/collectaudit/cache/CollectAuditInfoCache.java +++ b/src_tenwa/com/tenwa/collectaudit/cache/CollectAuditInfoCache.java @@ -354,6 +354,7 @@ public class CollectAuditInfoCache { j++; } if (map.containsKey("RET_CODE") && "0000".equals(map.get("RET_CODE"))) { + Transaction Sqlca =null; String cerrentDate = DateAssistant.getToday(); JBOTransaction transaction = JBOFactory.createJBOTransaction(); BizObjectManager bmi = JBOFactory.getFactory().getManager(LC_RENT_PLAN.CLASS_NAME,transaction); @@ -372,12 +373,12 @@ public class CollectAuditInfoCache { + "'"+boi.getAttribute("CONTRACT_ID")+"','"+boi.getAttribute("CONTRACT_PLAN_NUMBER")+"','"+boi.getAttribute("PAYMENT_NUMBER")+"','"+boi.getAttribute("EBANK_NUMBER")+"','"+boi.getAttribute("PLAN_ID")+"'," + "'"+boi.getAttribute("PLAN_LIST")+"','"+boi.getAttribute("INTEREST_ADJUST")+"','"+boi.getAttribute("SETTLE_METHOD")+"','"+boi.getAttribute("HIRE_LIST")+"','"+boi.getAttribute("HIRE_DATE")+"','"+boi.getAttribute("RENT")+"','"+boi.getAttribute("CORPUS")+"'," + "'"+boi.getAttribute("INTEREST")+"','"+boi.getAttribute("PENALTY")+"','"+boi.getAttribute("CORPUS_ADJUST")+"','"+boi.getAttribute("PENALTY_ADJUST")+"','"+boi.getAttribute("ROLL_BACK")+"','"+boi.getAttribute("COIN")+"')"; - Transaction Sqlca =null; Sqlca = Transaction.createTransaction(transaction); SqlObject asql = new SqlObject(sql); Sqlca.executeSQL(asql); } transaction.commit(); + Sqlca.commit(); } BizObject bco = bc.createQuery("id=:id").setParameter("id", bo.getAttribute("id").toString()).getSingleResult(false); String batch_number = bco.getAttribute("batch_number").toString(); @@ -439,6 +440,7 @@ public class CollectAuditInfoCache { Sqlca = Transaction.createTransaction(transaction); SqlObject asql = new SqlObject(sql); Sqlca.executeSQL(asql); + Sqlca.commit(); } transaction.commit(); BizObject bco = bc.createQuery("id=:id").setParameter("id", bo.getAttribute("id").toString()).getSingleResult(false); diff --git a/src_tenwa/com/tenwa/database/util/example/sqlOperatorExample.java b/src_tenwa/com/tenwa/database/util/example/sqlOperatorExample.java index 359b9fa9e..8f37d6b36 100644 --- a/src_tenwa/com/tenwa/database/util/example/sqlOperatorExample.java +++ b/src_tenwa/com/tenwa/database/util/example/sqlOperatorExample.java @@ -71,6 +71,9 @@ public class sqlOperatorExample { } Sqlca.disConnect(); Sqlca=null; + conn.commit(); + conn.close(); + conn=null; return "xxxx"; } diff --git a/src_tenwa/com/tenwa/flow/comm/handler/flowmanage/ContractRentCollectionHandler.java b/src_tenwa/com/tenwa/flow/comm/handler/flowmanage/ContractRentCollectionHandler.java index 4dfb86932..298786a79 100644 --- a/src_tenwa/com/tenwa/flow/comm/handler/flowmanage/ContractRentCollectionHandler.java +++ b/src_tenwa/com/tenwa/flow/comm/handler/flowmanage/ContractRentCollectionHandler.java @@ -39,10 +39,14 @@ public class ContractRentCollectionHandler extends CommonHandler{ } }catch(Exception e) { - + if(Sqlca !=null){ + Sqlca.rollback(); + Sqlca=null; + } } finally{ if(Sqlca!=null){ + Sqlca.commit(); Sqlca.disConnect(); Sqlca=null; } diff --git a/src_tenwa/com/tenwa/flow/fund/actualpayment/FundIncomeEndRentPlanModify.java b/src_tenwa/com/tenwa/flow/fund/actualpayment/FundIncomeEndRentPlanModify.java index 1a81ab353..ff2b34904 100644 --- a/src_tenwa/com/tenwa/flow/fund/actualpayment/FundIncomeEndRentPlanModify.java +++ b/src_tenwa/com/tenwa/flow/fund/actualpayment/FundIncomeEndRentPlanModify.java @@ -248,6 +248,10 @@ public class FundIncomeEndRentPlanModify extends BaseBussiness{ Sqlca = Transaction.createTransaction(tx); SqlObject asql = new SqlObject(sql); Sqlca.executeSQL(asql); + + Sqlca.commit(); + + } private void delete(String paymentNumber,JBOTransaction tx) throws Exception{ diff --git a/src_tenwa/com/tenwa/flow/rent/rentincome/RentIncomeMethod.java b/src_tenwa/com/tenwa/flow/rent/rentincome/RentIncomeMethod.java index 852b3df53..394d8a647 100644 --- a/src_tenwa/com/tenwa/flow/rent/rentincome/RentIncomeMethod.java +++ b/src_tenwa/com/tenwa/flow/rent/rentincome/RentIncomeMethod.java @@ -829,9 +829,18 @@ public class RentIncomeMethod { call.execute(); }catch(Exception e){ e.printStackTrace(); - con.rollback(); - tx.rollback(); + if(con !=null){ + con.rollback(); + con.close(); + con = null; + } return "ERROR"; + }finally{ + if(con !=null){ + con.commit(); + con.close(); + con = null; + } } return sReturn; } diff --git a/src_tenwa/com/tenwa/lease/app/cache/VoucherCache.java b/src_tenwa/com/tenwa/lease/app/cache/VoucherCache.java index a3f1fbc4a..11aab442f 100644 --- a/src_tenwa/com/tenwa/lease/app/cache/VoucherCache.java +++ b/src_tenwa/com/tenwa/lease/app/cache/VoucherCache.java @@ -13,7 +13,7 @@ public class VoucherCache { public static String getAuxiliary(String id) throws Exception { - JBOTransaction tx=JBOFactory.getFactory().createTransaction(); + //JBOTransaction tx=JBOFactory.getFactory().createTransaction(); BizObjectManager bm=JBOFactory.getFactory().getManager(VOUCHERASSSTACTS_INFO.CLASS_NAME); String memo=""; List vous=bm.createQuery("select * from O where O.id in (select conn.ASSTACTTYPE from jbo.app.VOUCHER_CONNECTION conn where conn.config_id=:id)") diff --git a/src_tenwa/com/tenwa/lease/app/message/UpdateMessageHandler.java b/src_tenwa/com/tenwa/lease/app/message/UpdateMessageHandler.java index 1a3a8c721..136f57105 100644 --- a/src_tenwa/com/tenwa/lease/app/message/UpdateMessageHandler.java +++ b/src_tenwa/com/tenwa/lease/app/message/UpdateMessageHandler.java @@ -47,15 +47,25 @@ public class UpdateMessageHandler { setSQL=setSQLStr.substring(0, setSQLStr.length()-1).replaceAll("@", ","); sql.append(setSQL); sql.append(idstr); - try{ Transaction Sqlca =null; + try{ Sqlca = Transaction.createTransaction(tx); SqlObject asql = new SqlObject(sql.toString()); Sqlca.executeSQL(asql); return "true"; }catch(Exception e){ e.printStackTrace(); + if(Sqlca != null){ + Sqlca.rollback(); + Sqlca=null; + } return "false"; + }finally{ + if(Sqlca != null){ + Sqlca.commit(); + Sqlca.disConnect(); + Sqlca=null; + } } } } diff --git a/src_tenwa/com/tenwa/lease/app/quartzmession/Commission.java b/src_tenwa/com/tenwa/lease/app/quartzmession/Commission.java index 198754416..02bb1a4c9 100644 --- a/src_tenwa/com/tenwa/lease/app/quartzmession/Commission.java +++ b/src_tenwa/com/tenwa/lease/app/quartzmession/Commission.java @@ -35,16 +35,25 @@ public class Commission implements Job{ //String sql="{CALL proc_insert_jlyj_his('2018/10/30','2018/10/30')};"; SqlObject asql = new SqlObject(sql); Sqlca.executeSQL(asql); - tx.commit(); QuartzUtil.insertLog(startime,"com.tenwa.lease.app.quartzmession.Commission", "success", "成功", curUserId); } catch (Exception e) { QuartzUtil.insertLog(startime,"com.tenwa.lease.app.quartzmession.Commission", "success", "失败", curUserId); logger.error(e.getMessage()); e.printStackTrace(); + if(Sqlca!=null){ + try { + Sqlca.rollback(); + Sqlca = null; + } catch (JBOException e1) { + e1.printStackTrace(); + } + } }finally{ - if(tx!=null){ - try { - tx.rollback(); + if(Sqlca!=null){ + try { + Sqlca.commit(); + Sqlca.disConnect(); + Sqlca = null; } catch (JBOException e) { e.printStackTrace(); } diff --git a/src_tenwa/com/tenwa/lease/app/quartzmession/LBTESTinfo.java b/src_tenwa/com/tenwa/lease/app/quartzmession/LBTESTinfo.java index f6a538914..d048bcb33 100644 --- a/src_tenwa/com/tenwa/lease/app/quartzmession/LBTESTinfo.java +++ b/src_tenwa/com/tenwa/lease/app/quartzmession/LBTESTinfo.java @@ -1,29 +1,15 @@ package com.tenwa.lease.app.quartzmession; -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.UUID; - import org.quartz.Job; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; -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.jbo.JBOTransaction; import com.amarsoft.are.util.StringFunction; import com.amarsoft.awe.util.Transaction; import com.base.util.QuartzUtil; -import com.tenwa.comm.util.jboutil.DataOperatorUtil; -import com.tenwa.reckon.util.Conn; - -import jbo.app.tenwa.customer.LB_TEST; -import jbo.com.tenwa.entity.comm.own.LC_SOURCE_OF_FUNDS; public class LBTESTinfo implements Job{ @Override @@ -33,10 +19,10 @@ public class LBTESTinfo implements Job{ Object userId = arg0.getTrigger().getJobDataMap().get("CurUserId"); String curUserId = userId == null? "system" : userId.toString(); + Transaction Sqlca = null; try { JBOTransaction tx = JBOFactory.createJBOTransaction(); //BizObjectManager LCBizObjectManager =JBOFactory.getBizObjectManager(LC_SOURCE_OF_FUNDS.CLASS_NAME,tx); - Transaction Sqlca = null; Sqlca = Transaction.createTransaction(tx); String insertSql="INSERT INTO LC_SOURCE_OF_FUNDS (id, contract_no, businesstype, lease_acc_name)"+ " (SELECT REPLACE(UUID(), '-', '') AS id,"+ @@ -53,11 +39,28 @@ public class LBTESTinfo implements Job{ "AND lci.contract_no NOT IN "+ "(SELECT IFNULL(contract_no, '') AS contract_no FROM LC_SOURCE_OF_FUNDS))"; Sqlca.executeSQL(insertSql); - tx.commit(); QuartzUtil.insertLog(startime, "com.tenwa.lease.app.quartzmession.LBTESTinfo", "success", "成功", curUserId); } catch (Exception e) { QuartzUtil.insertLog(startime, "com.tenwa.lease.app.quartzmession.LBTESTinfo", "error", "失败", curUserId); e.printStackTrace(); + if(Sqlca!=null){ + try { + Sqlca.rollback(); + Sqlca = null; + } catch (JBOException e1) { + e1.printStackTrace(); + } + } + }finally{ + if(Sqlca!=null){ + try { + Sqlca.commit(); + Sqlca.disConnect(); + Sqlca = null; + } catch (JBOException e) { + e.printStackTrace(); + } + } } } diff --git a/src_tenwa/com/tenwa/lease/app/quartzmession/SplitInts3.java b/src_tenwa/com/tenwa/lease/app/quartzmession/SplitInts3.java index a62cd2aa2..014d7dc44 100644 --- a/src_tenwa/com/tenwa/lease/app/quartzmession/SplitInts3.java +++ b/src_tenwa/com/tenwa/lease/app/quartzmession/SplitInts3.java @@ -56,7 +56,7 @@ public class SplitInts3 implements Job{ Transaction Sqlca =null; List idList=new ArrayList(); - tx =JBOFactory.createJBOTransaction(); + //tx =JBOFactory.createJBOTransaction(); Sqlca = Transaction.createTransaction(tx); //传统月付 String sql="SELECT lci.id AS ID ,lcc.PAYMENT_NUMBER,getTax(lci.leas_form,'租息',lcc.start_date) as TAX, lcc.START_DATE,lr.interest INTEREST, ROUND(lcc.HANDLING_CHARGE_MONEY/getTax(lci.LEAS_FORM,'手续费',lcc.start_date),2) AS HANDLING_CHARGE_MONEY FROM lb_contract_info lci LEFT JOIN lc_calc_condition lcc ON lcc.contract_id=lci.id LEFT JOIN (SELECT lrp.contract_id,ROUND(SUM(lrp.interest/getTax(lci.LEAS_FORM,'租息',lcc.start_date)),2) interest FROM lc_rent_plan lrp LEFT JOIN lb_contract_info lci ON lci.id=lrp.CONTRACT_ID LEFT JOIN lc_calc_condition lcc ON lcc.contract_id=lci.id GROUP BY lrp.contract_id) lr ON lr.contract_id=lci.id WHERE NOT EXISTS (SELECT 1 FROM contract_rent_month WHERE contract_id = lcc.contract_id) AND nvl(lr.interest,0) > 0 AND lci.contract_status BETWEEN 31 AND 100 AND lci.id NOT IN (SELECT contract_id FROM lc_fund_rent_adjust) AND lci.BUSINESSTYPE<>'1' AND lcc.INCOME_NUMBER_YEAR='income_1'"; @@ -64,6 +64,7 @@ public class SplitInts3 implements Job{ //传统月付 List> dataList=DataOperatorUtil.getDataBySql(Sqlca, sql, map); tx.commit(); + Sqlca.commit(); for(Map ma:dataList){ MonthInterestEntity mit =new MonthInterestEntity(); String contract_id=ma.get("ID"); @@ -81,7 +82,7 @@ public class SplitInts3 implements Job{ Transaction Sqlca =null; List idList=new ArrayList(); - tx =JBOFactory.createJBOTransaction(); + //tx =JBOFactory.createJBOTransaction(); Sqlca = Transaction.createTransaction(tx); //传统季付 String sql="SELECT lci.id AS ID ,lcc.PAYMENT_NUMBER,getTax(lci.leas_form,'租息',lcc.start_date) as TAX, lcc.START_DATE,lr.interest INTEREST, ROUND(lcc.HANDLING_CHARGE_MONEY/getTax(lci.LEAS_FORM,'手续费',lcc.start_date),2) AS HANDLING_CHARGE_MONEY FROM lb_contract_info lci LEFT JOIN lc_calc_condition lcc ON lcc.contract_id=lci.id LEFT JOIN (SELECT lrp.contract_id,ROUND(SUM(lrp.interest/getTax(lci.LEAS_FORM,'租息',lcc.start_date)),2) interest FROM lc_rent_plan lrp LEFT JOIN lb_contract_info lci ON lci.id=lrp.CONTRACT_ID LEFT JOIN lc_calc_condition lcc ON lcc.contract_id=lci.id GROUP BY lrp.contract_id) lr ON lr.contract_id=lci.id WHERE NOT EXISTS (SELECT 1 FROM contract_rent_month WHERE contract_id = lcc.contract_id) AND nvl(lr.interest,0) > 0 AND lci.contract_status BETWEEN 31 AND 100 AND lci.id NOT IN (SELECT contract_id FROM lc_fund_rent_adjust) AND lci.BUSINESSTYPE<>'1' AND lcc.INCOME_NUMBER_YEAR='income_3'"; @@ -89,7 +90,8 @@ public class SplitInts3 implements Job{ Map map=new HashMap(); //传统季付 List> dataList=DataOperatorUtil.getDataBySql(Sqlca, sql, map); - tx.commit(); + //tx.commit(); + Sqlca.commit(); for(Map ma:dataList){ MonthInterestEntity mit =new MonthInterestEntity(); String contract_id=ma.get("ID"); @@ -117,6 +119,7 @@ public class SplitInts3 implements Job{ List bolist=mit.getBizObjList(); saveBM(tx,bolist); tx.commit(); + Sqlca.commit(); } public void saveBM(JBOTransaction tx,List boList) throws Exception{ diff --git a/src_tenwa/com/tenwa/lease/flow/project/businessapply/CheckGuaranteeUnit.java b/src_tenwa/com/tenwa/lease/flow/project/businessapply/CheckGuaranteeUnit.java index 9f131a138..7be1ccbd2 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/businessapply/CheckGuaranteeUnit.java +++ b/src_tenwa/com/tenwa/lease/flow/project/businessapply/CheckGuaranteeUnit.java @@ -2,6 +2,7 @@ package com.tenwa.lease.flow.project.businessapply; import java.sql.SQLException; +import com.amarsoft.are.jbo.JBOException; import com.amarsoft.are.jbo.JBOTransaction; import com.amarsoft.awe.util.ASResultSet; import com.amarsoft.awe.util.SqlObject; @@ -21,6 +22,12 @@ public class CheckGuaranteeUnit { asql.setParameter("flowunid", this.flowunid); ASResultSet rs = null; rs = Sqlca.getASResultSet(asql); + //提交事物 + try { + Sqlca.commit(); + } catch (JBOException e) { + e.printStackTrace(); + } while(rs.next()){ this.number = rs.getInt("count"); } diff --git a/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerAction.java b/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerAction.java index bc09dc1ee..96caa3ae2 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerAction.java +++ b/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerAction.java @@ -221,7 +221,14 @@ public class CustomerAction { asql.setParameter("certid", this.certid); ASResultSet rs = null; rs = Sqlca.getASResultSet(asql); + //关闭事物 + try { + Sqlca.commit(); + } catch (JBOException e) { + + } if(rs.next()){ + return "false"; }else{ return "true";