From c1e15cc280fa4d6a10d26f247640a58b8054bc10 Mon Sep 17 00:00:00 2001 From: wendongchao Date: Wed, 7 Aug 2019 11:00:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=94=B3=E8=AF=B7=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=AD=98=E9=87=8F=E5=AE=A2=E6=88=B7=E7=9A=84=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LBProjectIntoTempInitCarBusiness.java | 38 +++++++++++++++---- 1 file changed, 31 insertions(+), 7 deletions(-) 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);