业务变更拷表脚本
This commit is contained in:
parent
617924dce3
commit
18b1ac332b
@ -32,26 +32,25 @@ public class LBCustomerRelaFormalToTempBusiness extends BaseBussiness {
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String customertype = "";
|
||||
Map<String,String>fromCondtion=this.getDefaultFormalToTempFromCondtion();
|
||||
Map<String,String> other=new HashMap<String, String>();
|
||||
other.put("flowunid",this.getAttribute("FlowUnid").toString());
|
||||
String flowName = this.getAttribute("FlowName").toString();
|
||||
if("Æð×âºóºÏͬ±ä¸üÆû³µ".equals(flowName)){
|
||||
customertype = this.getAttribute("customertype").toString();
|
||||
}
|
||||
String customertype = this.getAttribute("customertype").toString();
|
||||
List<BizObject> unionList= DataOperatorUtil.getSetJBO(LB_UNION_LESSEE.CLASS_NAME, fromCondtion, Sqlca);
|
||||
List<BizObject> unitList=DataOperatorUtil.getSetJBO(LB_GUARANTEE_UNIT.CLASS_NAME, fromCondtion, Sqlca);
|
||||
for(BizObject union:unionList){
|
||||
fromCondtion.clear();
|
||||
fromCondtion.put("customerid", union.getAttribute("customer_id").getString());
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_PERSON.CLASS_NAME, fromCondtion, CUSTOMER_PERSON_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
if("01".equals(customertype)){
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_COMPANY.CLASS_NAME, fromCondtion, CUSTOMER_COMPANY_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
}else{
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_PERSON.CLASS_NAME, fromCondtion, CUSTOMER_PERSON_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_ADDRESS.CLASS_NAME, fromCondtion, CUSTOMER_ADDRESS_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
}
|
||||
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_CERT.CLASS_NAME, fromCondtion, CUSTOMER_CERT_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_FAMILY.CLASS_NAME, fromCondtion, CUSTOMER_FAMILY_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_ADDRESS.CLASS_NAME, fromCondtion, CUSTOMER_ADDRESS_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
if("01".equals(customertype)){
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_COMPANY.CLASS_NAME, fromCondtion, CUSTOMER_COMPANY_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
}
|
||||
}
|
||||
for(BizObject unit:unitList){
|
||||
if(!("起租后合同基本信息变更(传统)".equals(flowName))){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user