From 92249779e9df9b52934bed8e30f7205333f6fa36 Mon Sep 17 00:00:00 2001 From: luojian Date: Tue, 24 Jul 2018 17:05:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LBCustomerRelaTempToFormalBusiness.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerRelaTempToFormalBusiness.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerRelaTempToFormalBusiness.java index a0a3a518c..bc915bb0c 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerRelaTempToFormalBusiness.java +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerRelaTempToFormalBusiness.java @@ -4,8 +4,6 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT; -import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_TEMP; import jbo.app.tenwa.customer.CUSTOMER_ADDRESS; import jbo.app.tenwa.customer.CUSTOMER_ADDRESS_TEMP; import jbo.app.tenwa.customer.CUSTOMER_CERT; @@ -18,10 +16,6 @@ import jbo.app.tenwa.customer.CUSTOMER_INFO; import jbo.app.tenwa.customer.CUSTOMER_INFO_TEMP; import jbo.app.tenwa.customer.CUSTOMER_PERSON; import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP; -import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT; -import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_TEMP; -import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE; -import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE_TEMP; import com.amarsoft.are.jbo.BizObject; import com.amarsoft.awe.util.Transaction; @@ -36,10 +30,12 @@ public class LBCustomerRelaTempToFormalBusiness extends BaseBussiness { this.initBussinessParam(Sqlca); MapfromCondtion=new HashMap(); fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString()); - DataOperatorUtil.copyJBOSet(CUSTOMER_INFO_TEMP.CLASS_NAME, fromCondtion,CUSTOMER_INFO.CLASS_NAME, null, null,null, Sqlca); List unionList= DataOperatorUtil.getSetJBO(CUSTOMER_INFO_TEMP.CLASS_NAME, fromCondtion, Sqlca); MaptoCondtion=new HashMap(); CustomerCompare cc=new CustomerCompare(); + MapotherProperty=new HashMap(); + otherProperty.put("customerid", unionList.size()>0?unionList.get(0).getAttribute("customerid").toString():""); + DataOperatorUtil.copyJBOSet(CUSTOMER_INFO_TEMP.CLASS_NAME, fromCondtion,CUSTOMER_INFO.CLASS_NAME, null,otherProperty,cc, Sqlca); for(BizObject union:unionList){ fromCondtion.clear(); fromCondtion.put("customerid", union.getAttribute("customerid").getString());