提交事物关闭链接
This commit is contained in:
parent
d0f06f5882
commit
d386e945f3
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -46,6 +46,7 @@
|
||||
JBOTransaction tx=JBOFactory.createJBOTransaction();
|
||||
Map<String,String> params=new HashMap<String,String>();
|
||||
list=DataOperatorUtil.getDataBySql(tx, sql, params);
|
||||
tx.commit();
|
||||
String[][] displayData = new String[list.size()][headers.length];
|
||||
for(int i=0;i<displayData.length;i++){
|
||||
for(int j=0;j<displayData[i].length;j++){
|
||||
|
||||
@ -26,11 +26,13 @@ public static boolean changeHtmlData2DB(FormatDocConfig config, Transaction Sqlc
|
||||
changeHtmlData2xml(rs, config, conn);
|
||||
}
|
||||
conn.commit();
|
||||
conn.close();
|
||||
return true;
|
||||
}catch(Exception e){
|
||||
ARE.getLog().debug(e);
|
||||
if(conn != null) try{
|
||||
conn.rollback();
|
||||
conn.close();
|
||||
}catch(Exception e0){}
|
||||
return false;
|
||||
}finally{
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
String taskNo = CurPage.getParameter("TaskNo");
|
||||
if(StringX.isSpace(taskNo)) taskNo = "";
|
||||
String userID = CurUser.getUserID(), attribute10 = null; /* 传阅角色 */
|
||||
JBOTransaction tx = JBOFactory.createJBOTransaction();
|
||||
//JBOTransaction tx = JBOFactory.createJBOTransaction();
|
||||
FlowTask ft = new FlowTask(taskNo, Sqlca);//使用jboTrans
|
||||
BizObject fm = JBOFactory.getBizObjectManager("jbo.sys.FLOW_MODEL").createQuery("select attribute10 from O where flowNo=:flowNo and phaseNo=:phaseNo ")
|
||||
.setParameter("flowNo", ft.FlowNo ).setParameter("phaseNo", ft.PhaseNo).getSingleResult(false);
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
String taskNo = CurPage.getParameter("TaskNo");
|
||||
if(StringX.isSpace(taskNo)) taskNo = "";
|
||||
String userID = CurUser.getUserID(), attribute9 = null; /* 工作指派角色 */
|
||||
JBOTransaction tx = JBOFactory.createJBOTransaction();
|
||||
//JBOTransaction tx = JBOFactory.createJBOTransaction();
|
||||
FlowTask ft = new FlowTask(taskNo, Sqlca);//使用jboTrans
|
||||
BizObject fm = JBOFactory.getBizObjectManager("jbo.sys.FLOW_MODEL").createQuery("select attribute9 from O where flowNo=:flowNo and phaseNo=:phaseNo ")
|
||||
.setParameter("flowNo", ft.FlowNo ).setParameter("phaseNo", ft.PhaseNo).getSingleResult(false);
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
<%@page import="com.tenwa.flow.service.FlowUserManageServie"%>
|
||||
<%@ 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");
|
||||
|
||||
@ -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";//--Ä£°åºÅ--
|
||||
|
||||
@ -55,6 +55,7 @@
|
||||
<%
|
||||
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage,"业务详情","right");
|
||||
FlowTaskViewTabService.initOHTMLTreeViewProduct(tx,tviTemp,FlowFixedParam);
|
||||
tx.commit();
|
||||
%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
@ -34,6 +34,7 @@
|
||||
<%
|
||||
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage,"业务详情","right");
|
||||
FlowTaskViewTabService.initOHTMLTreeViewProjectContract(tx,tviTemp,CurPage);
|
||||
tx.commit();
|
||||
String FlowUnid=CurPage.getParameter("FlowUnid");
|
||||
%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
map.clear();
|
||||
map.put("flow_unid", FlowUnid);
|
||||
List<Map<String,String>> list=DataOperatorUtil.getDataBySql(tx, sql, map);
|
||||
tx.commit();
|
||||
if(list.size()==0){
|
||||
|
||||
%>
|
||||
|
||||
@ -47,6 +47,7 @@
|
||||
JBOTransaction tx=JBOFactory.createJBOTransaction();
|
||||
Map<String,String> params=new HashMap<String,String>();
|
||||
list=DataOperatorUtil.getDataBySql(tx, sql, params);
|
||||
tx.commit();
|
||||
displayData = new String[list.size()][headers.length];
|
||||
for(int i=0;i<displayData.length;i++){
|
||||
for(int j=0;j<displayData[i].length;j++){
|
||||
|
||||
@ -28,18 +28,24 @@ public class AmarScriptDataFetcher extends ParameterDataLoader{
|
||||
throw new Exception("参数{"+parameterID+"}的取值逻辑定义不正确!");
|
||||
method = StringHelper.replaceStringFullName(method,businessObject);
|
||||
JBOTransaction tx = null;
|
||||
|
||||
Transaction sqlca = null;
|
||||
try{
|
||||
tx = JBOFactory.createJBOTransaction();
|
||||
Transaction sqlca = Transaction.createTransaction(tx);
|
||||
sqlca = Transaction.createTransaction(tx);
|
||||
Any a=Expression.getExpressionValue(method, sqlca);//只做查询
|
||||
if("Number".equalsIgnoreCase(a.getType()))
|
||||
valueList.add(a.doubleValue());
|
||||
else
|
||||
valueList.add(a.stringValue());
|
||||
tx.rollback();
|
||||
//tx.rollback();
|
||||
sqlca.commit();
|
||||
}catch(Exception ex){
|
||||
tx.rollback();
|
||||
//tx.rollback();
|
||||
if(sqlca !=null){
|
||||
sqlca.rollback();
|
||||
sqlca = null;
|
||||
}
|
||||
|
||||
throw ex;
|
||||
}
|
||||
return valueList;
|
||||
|
||||
@ -76,6 +76,16 @@ public class commissionSet {
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
if(Sqlca != null){
|
||||
Sqlca.rollback();
|
||||
Sqlca = null;
|
||||
}
|
||||
}finally{
|
||||
if(Sqlca != null){
|
||||
Sqlca.commit();
|
||||
Sqlca.disConnect();
|
||||
Sqlca=null;
|
||||
}
|
||||
}
|
||||
String startE = this.getEffectStart();
|
||||
startE = startE.replaceAll("/", "");
|
||||
@ -117,6 +127,16 @@ public class commissionSet {
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
if(Sqlca != null){
|
||||
Sqlca.rollback();
|
||||
Sqlca = null;
|
||||
}
|
||||
}finally{
|
||||
if(Sqlca != null){
|
||||
Sqlca.commit();
|
||||
Sqlca.disConnect();
|
||||
Sqlca=null;
|
||||
}
|
||||
}
|
||||
if(end>=start){
|
||||
return "fail";
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -71,6 +71,9 @@ public class sqlOperatorExample {
|
||||
}
|
||||
Sqlca.disConnect();
|
||||
Sqlca=null;
|
||||
conn.commit();
|
||||
conn.close();
|
||||
conn=null;
|
||||
return "xxxx";
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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{
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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<BizObject> vous=bm.createQuery("select * from O where O.id in (select conn.ASSTACTTYPE from jbo.app.VOUCHER_CONNECTION conn where conn.config_id=:id)")
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ public class SplitInts3 implements Job{
|
||||
Transaction Sqlca =null;
|
||||
List<String> idList=new ArrayList<String>();
|
||||
|
||||
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<Map<String,String>> dataList=DataOperatorUtil.getDataBySql(Sqlca, sql, map);
|
||||
tx.commit();
|
||||
Sqlca.commit();
|
||||
for(Map<String,String> 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<String> idList=new ArrayList<String>();
|
||||
|
||||
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<String,String> map=new HashMap<String, String>();
|
||||
//传统季付
|
||||
List<Map<String,String>> dataList=DataOperatorUtil.getDataBySql(Sqlca, sql, map);
|
||||
tx.commit();
|
||||
//tx.commit();
|
||||
Sqlca.commit();
|
||||
for(Map<String,String> ma:dataList){
|
||||
MonthInterestEntity mit =new MonthInterestEntity();
|
||||
String contract_id=ma.get("ID");
|
||||
@ -117,6 +119,7 @@ public class SplitInts3 implements Job{
|
||||
List<BizObject> bolist=mit.getBizObjList();
|
||||
saveBM(tx,bolist);
|
||||
tx.commit();
|
||||
Sqlca.commit();
|
||||
}
|
||||
|
||||
public void saveBM(JBOTransaction tx,List<BizObject> boList) throws Exception{
|
||||
|
||||
@ -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");
|
||||
}
|
||||
|
||||
@ -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";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user