diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerAccountFormalToHisBusiness.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerAccountFormalToHisBusiness.java new file mode 100644 index 000000000..ffba5ca4a --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerAccountFormalToHisBusiness.java @@ -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 fromCondtion = new HashMap(); + Map other = new HashMap(); + 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; + } +} diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerAccountTempToFormalBusiness.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerAccountTempToFormalBusiness.java index 1a9237373..b7fccea5e 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerAccountTempToFormalBusiness.java +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerAccountTempToFormalBusiness.java @@ -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 otherProperty=new HashMap(); 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 other=new HashMap(); + other.put("CONTRACT_ID",this.getAttribute("ContractId").toString()); + //查看该扣款卡信息是否签约验证过 + String flowname=(String)this.getAttribute("FlowName"); + if("业务变更流程".equals(flowname)){ + Map fromCond = new HashMap(); + 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());