diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java index 15a839c6a..56c9539d2 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java @@ -116,21 +116,45 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness { } custName = this.getAttribute("custname").toString(); customerId = this.getAttribute("CustomerId").toString(); + //更新CUSTOMER_ADDRESS,CUSTOMER_TYPE MapotherProperty=new HashMap(); - MapfromCondtion=new HashMap(); - fromCondtion.put("CUSTOMERID",customerId); otherProperty.put("FLOWUNID", flowunid); otherProperty.put(CUSTOMER_INFO_TEMP.customerid, customerId); + + //更新customer_info,CUSTOMER_CERT + MapinfoProperty=new HashMap(); + infoProperty.put("FLOWUNID", flowunid); + infoProperty.put(CUSTOMER_INFO_TEMP.customerid, customerId); + infoProperty.put("customername", custName); + //更新CUSTOMER_FAMILY + MapfamilyProperty=new HashMap(); + familyProperty.put("FLOWUNID", flowunid); + familyProperty.put(CUSTOMER_INFO_TEMP.customerid, customerId); + familyProperty.put("name", custName); + //更新CUSTOMER_PERSON + MappersonProperty=new HashMap(); + personProperty.put("FLOWUNID", flowunid); + personProperty.put(CUSTOMER_INFO_TEMP.customerid, customerId); + personProperty.put("FULLNAME", custName); + //更新CUSTOMER_COMPANY + MapcompanyProperty=new HashMap(); + companyProperty.put("FLOWUNID", flowunid); + companyProperty.put(CUSTOMER_INFO_TEMP.customerid, customerId); + companyProperty.put("enterprisename", custName); + + MapfromCondtion=new HashMap(); + 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);