业务变更修改签约验证状态

This commit is contained in:
tangft 2019-02-03 09:48:34 +08:00
parent 7cf5739bd1
commit 43c16aed2f
2 changed files with 55 additions and 1 deletions

View File

@ -0,0 +1,29 @@
package com.tenwa.lease.flow.project.commbusiness;
import java.util.HashMap;
import java.util.Map;
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT;
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_HIS;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
import com.tenwa.flow.baseBussion.BaseBussiness;
public class LBCustomerAccountFormalToHisBusiness extends BaseBussiness{
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String flowunid = this.getAttribute("ObjectNo").toString();
String ProjectId = this.getAttribute("ProjectId").toString();
Map<String,String> fromCondtion = new HashMap<String, String>();
Map<String,String> other = new HashMap<String, String>();
other.put("FLOWUNID",flowunid);
fromCondtion.put(CUSTOMER_ACCOUNT.project_id, ProjectId);
DataOperatorUtil.copySingleJBO(CUSTOMER_ACCOUNT.CLASS_NAME, fromCondtion, CUSTOMER_ACCOUNT_HIS.CLASS_NAME, null, other, Sqlca);
String sMessage="true";
return sMessage;
}
}

View File

@ -5,6 +5,7 @@ import java.util.List;
import java.util.Map;
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT;
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_HIS;
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_TEMP;
import jbo.app.tenwa.customer.CUSTOMER_FAMILY;
import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP;
@ -34,7 +35,31 @@ public class LBCustomerAccountTempToFormalBusiness extends BaseBussiness{
toCondtion.put("PROJECT_ID",this.getAttribute("ProjectId").toString());
Map<String,String> otherProperty=new HashMap<String,String>();
otherProperty.put("CONTRACT_ID",this.getAttribute("ContractId").toString());
DataOperatorUtil.copyJBOSet(CUSTOMER_ACCOUNT_TEMP.CLASS_NAME, fromCondtion,CUSTOMER_ACCOUNT.CLASS_NAME, toCondtion, otherProperty,null, Sqlca);
Map<String,String> other=new HashMap<String,String>();
other.put("CONTRACT_ID",this.getAttribute("ContractId").toString());
//查看该扣款卡信息是否签约验证过
String flowname=(String)this.getAttribute("FlowName");
if("业务变更流程".equals(flowname)){
Map<String,String> fromCond = new HashMap<String, String>();
fromCond.clear();
fromCond.put("flowunid", this.getAttribute("ObjectNo").toString());
BizObject cat = DataOperatorUtil.getSingleJBO(CUSTOMER_ACCOUNT_TEMP.CLASS_NAME, fromCond, Sqlca);
if(cat!=null){
fromCond.clear();
fromCond.put("ACCOUNT", cat.getAttribute("ACCOUNT").getString());
fromCond.put("ACC_NUMBER", cat.getAttribute("ACC_NUMBER").getString());
fromCond.put("BANK_NAME", cat.getAttribute("BANK_NAME").getString());
fromCond.put("MOBILE", cat.getAttribute("MOBILE").getString());
BizObject cah = DataOperatorUtil.getSingleJBO(CUSTOMER_ACCOUNT_HIS.CLASS_NAME, fromCond, Sqlca);
if(cah==null){
other.put(CUSTOMER_ACCOUNT.sign_status, "N");
}else{
other.put(CUSTOMER_ACCOUNT.sign_status, cah.getAttribute("SIGN_STATUS").getString());
}
}
}
DataOperatorUtil.copyJBOSet(CUSTOMER_ACCOUNT_TEMP.CLASS_NAME, fromCondtion,CUSTOMER_ACCOUNT.CLASS_NAME, toCondtion, other,null, Sqlca);
DataOperatorUtil.copyJBOSet(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME, fromCondtion,LB_GUARANTEE_UNIT.CLASS_NAME, toCondtion, otherProperty,null, Sqlca);
fromCondtion.clear();
fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString());