广发付款修改
This commit is contained in:
parent
4f725f81e6
commit
58ed70b1fd
@ -0,0 +1,18 @@
|
||||
package com.tenwa.cgb.handler;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.dw.handler.impl.CommonHandler;
|
||||
import com.amarsoft.awe.util.SqlObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
|
||||
public class BusinessPaymentInfoHandler extends CommonHandler {
|
||||
|
||||
@Override
|
||||
protected void afterUpdate(JBOTransaction tx, BizObject bo) throws Exception {
|
||||
String flowunid = bo.getAttribute("flowunid").getString();
|
||||
Transaction sqlca = Transaction.createTransaction(tx);
|
||||
sqlca.executeSQL(new SqlObject("update LC_FUND_INCOME_TEMP t1 JOIN LB_ACTUAL_PAYMENT_INFO_TEMP t2 on t1.flowunid = t2.flowunid " +
|
||||
" set t1.account=t2.account,t1.acc_number=t2.acc_number,t1.bank=t2.bank where t2.flowunid =:flowunid ").setParameter("flowunid", flowunid));
|
||||
}
|
||||
}
|
||||
@ -9,6 +9,7 @@ import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.flow.bussinessapprove.BussinessStatusAndDetailAction;
|
||||
import com.tenwa.util.MultiSubjectUtil;
|
||||
import jbo.app.tenwa.calc.*;
|
||||
import jbo.com.tenwa.entity.comm.own.OWN_ACCOUNT;
|
||||
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
|
||||
import net.sf.json.JSONArray;
|
||||
import net.sf.json.JSONObject;
|
||||
@ -441,6 +442,11 @@ public String getContactId(JBOTransaction tx) throws SQLException, Exception{
|
||||
}
|
||||
public String createActualPayment(JBOTransaction tx) throws JBOException{
|
||||
try{
|
||||
BizObject boOAT = JBOFactory.getBizObjectManager(OWN_ACCOUNT.CLASS_NAME,tx)
|
||||
.createQuery("account_purpose='default' and state_='0010' and FbSdk='Y' and own_id='807001003' ").getSingleResult(false);
|
||||
if (boOAT == null) {
|
||||
throw new RuntimeException("未查询到对应的主体信息!");
|
||||
}
|
||||
for(String contractId : contractIds.split("@")){
|
||||
@SuppressWarnings("unchecked")
|
||||
List<BizObject> bos = JBOFactory.getBizObjectManager(LC_FUND_INCOME.CLASS_NAME)
|
||||
@ -461,6 +467,9 @@ public String getContactId(JBOTransaction tx) throws SQLException, Exception{
|
||||
otherProperty.put("FlowUnid", flowunid);
|
||||
otherProperty.put("IS_FLOWING", "0");
|
||||
otherProperty.put("ACCOUNTING_DATE", StringFunction.getTodayNow().split(" ")[0]);
|
||||
otherProperty.put("BANK", boOAT.getAttribute("ACC_BANK").getString());
|
||||
otherProperty.put("ACCOUNT", boOAT.getAttribute("ACC_NAME").getString());
|
||||
otherProperty.put("ACC_NUMBER", boOAT.getAttribute("ACC_NUMBER").getString());
|
||||
otherProperty.put("INCOME_ID", bo.getAttribute("ID").getString());
|
||||
otherProperty.put(LC_FUND_INCOME.EBANK_STATUS, "03");
|
||||
if("0020".equals(payType)||"0030".equals(payType)){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user