业务申请修改存量客户的用户名

This commit is contained in:
wendongchao 2019-08-07 11:00:12 +08:00
parent d8dbf86264
commit c1e15cc280

View File

@ -116,21 +116,45 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
}
custName = this.getAttribute("custname").toString();
customerId = this.getAttribute("CustomerId").toString();
//更新CUSTOMER_ADDRESSCUSTOMER_TYPE
Map<String,String>otherProperty=new HashMap<String, String>();
Map<String,String>fromCondtion=new HashMap<String, String>();
fromCondtion.put("CUSTOMERID",customerId);
otherProperty.put("FLOWUNID", flowunid);
otherProperty.put(CUSTOMER_INFO_TEMP.customerid, customerId);
//更新customer_info,CUSTOMER_CERT
Map<String,String>infoProperty=new HashMap<String, String>();
infoProperty.put("FLOWUNID", flowunid);
infoProperty.put(CUSTOMER_INFO_TEMP.customerid, customerId);
infoProperty.put("customername", custName);
//更新CUSTOMER_FAMILY
Map<String,String>familyProperty=new HashMap<String, String>();
familyProperty.put("FLOWUNID", flowunid);
familyProperty.put(CUSTOMER_INFO_TEMP.customerid, customerId);
familyProperty.put("name", custName);
//更新CUSTOMER_PERSON
Map<String,String>personProperty=new HashMap<String, String>();
personProperty.put("FLOWUNID", flowunid);
personProperty.put(CUSTOMER_INFO_TEMP.customerid, customerId);
personProperty.put("FULLNAME", custName);
//更新CUSTOMER_COMPANY
Map<String,String>companyProperty=new HashMap<String, String>();
companyProperty.put("FLOWUNID", flowunid);
companyProperty.put(CUSTOMER_INFO_TEMP.customerid, customerId);
companyProperty.put("enterprisename", custName);
Map<String,String>fromCondtion=new HashMap<String, String>();
fromCondtion.put("CUSTOMERID",customerId);
//otherProperty.put(CUSTOMER_INFO_TEMP.distributor_id, distributoIid);
//¿½µ½ÁÙʱ±í
DataOperatorUtil.copySingleJBO(CUSTOMER_INFO.CLASS_NAME, fromCondtion, CUSTOMER_INFO_TEMP.CLASS_NAME, null, otherProperty, tx);
DataOperatorUtil.copySingleJBO(CUSTOMER_CERT.CLASS_NAME, fromCondtion, CUSTOMER_CERT_TEMP.CLASS_NAME, null, otherProperty, tx);
DataOperatorUtil.copySingleJBO(CUSTOMER_FAMILY.CLASS_NAME, fromCondtion, CUSTOMER_FAMILY_TEMP.CLASS_NAME, null, otherProperty, tx);
DataOperatorUtil.copySingleJBO(CUSTOMER_INFO.CLASS_NAME, fromCondtion, CUSTOMER_INFO_TEMP.CLASS_NAME, null, infoProperty, tx);
DataOperatorUtil.copySingleJBO(CUSTOMER_CERT.CLASS_NAME, fromCondtion, CUSTOMER_CERT_TEMP.CLASS_NAME, null, infoProperty, tx);
DataOperatorUtil.copySingleJBO(CUSTOMER_FAMILY.CLASS_NAME, fromCondtion, CUSTOMER_FAMILY_TEMP.CLASS_NAME, null, familyProperty, tx);
DataOperatorUtil.copySingleJBO(CUSTOMER_ADDRESS.CLASS_NAME, fromCondtion, CUSTOMER_ADDRESS_TEMP.CLASS_NAME, null, otherProperty, tx);
if("03".equals(this.getAttribute("CustomerType"))){ // ×ÔÈ»ÈË
DataOperatorUtil.copySingleJBO(CUSTOMER_PERSON.CLASS_NAME, fromCondtion, CUSTOMER_PERSON_TEMP.CLASS_NAME, null, otherProperty, tx);
DataOperatorUtil.copySingleJBO(CUSTOMER_PERSON.CLASS_NAME, fromCondtion, CUSTOMER_PERSON_TEMP.CLASS_NAME, null, personProperty, tx);
}else{
DataOperatorUtil.copySingleJBO(CUSTOMER_COMPANY.CLASS_NAME, fromCondtion, CUSTOMER_COMPANY_TEMP.CLASS_NAME, null, otherProperty, tx);
DataOperatorUtil.copySingleJBO(CUSTOMER_COMPANY.CLASS_NAME, fromCondtion, CUSTOMER_COMPANY_TEMP.CLASS_NAME, null, companyProperty, tx);
}
DataOperatorUtil.copySingleJBO(CUSTOMER_TYPE.CLASS_NAME, fromCondtion, CUSTOMER_TYPE_TEMP.CLASS_NAME, null, otherProperty, tx);