From 44ecf4514cd77a194e8c9fc463b2b4407809877c Mon Sep 17 00:00:00 2001 From: 58261 <58261@DESKTOP-AAAC71Q> Date: Fri, 12 Oct 2018 13:43:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=8F=E9=94=80=E5=95=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../businessapply/AccountInfoManage.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src_tenwa/com/tenwa/lease/flow/project/businessapply/AccountInfoManage.java b/src_tenwa/com/tenwa/lease/flow/project/businessapply/AccountInfoManage.java index 974d2156b..ecd2532ef 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/businessapply/AccountInfoManage.java +++ b/src_tenwa/com/tenwa/lease/flow/project/businessapply/AccountInfoManage.java @@ -8,6 +8,7 @@ import java.util.Set; import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP; import jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT_TEMP; import jbo.app.tenwa.customer.DISTRIBUTOR_INFO_TEMP; +import jbo.app.tenwa.customer.DISTRIBUTOR_SUBSIDIARY_TEMP; import com.amarsoft.are.jbo.BizObject; import com.amarsoft.are.jbo.BizObjectManager; @@ -20,7 +21,17 @@ public class AccountInfoManage { private String flowunid; private String id; private String DISTRIBUTOR_NO; + private String distributorId; + + public String getDistributorId() { + return distributorId; + } + + public void setDistributorId(String distributorId) { + this.distributorId = distributorId; + } + public String getDISTRIBUTOR_NO() { return DISTRIBUTOR_NO; } @@ -86,5 +97,16 @@ public class AccountInfoManage { return distributorName; } + public String CheckZhuzhangHu(JBOTransaction tx)throws JBOException{ + + BizObjectManager bm=JBOFactory.getBizObjectManager(DISTRIBUTOR_SUBSIDIARY_TEMP.CLASS_NAME); + tx.join(bm); + List obj=bm.createQuery("is_mian='01' and distributor_id=:distributor_id").setParameter("distributor_id",this.getDistributorId()).getResultList(false); + if (obj.size()>0) { + return "false"; + } else { + return "true"; + } + } }