From a609a1a37a5af7825f5ea2f8d5ef1367f95b0c0d Mon Sep 17 00:00:00 2001 From: zhangzhiguo Date: Fri, 27 Dec 2024 17:28:39 +0800 Subject: [PATCH] =?UTF-8?q?.=E5=90=88=E5=90=8C=E5=8F=B0=E8=B4=A6=E7=AD=BE?= =?UTF-8?q?=E7=BA=A6=E6=96=B9=E9=BB=98=E8=AE=A4=E4=B8=BA=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E6=A0=B8=E7=AE=97=E7=BB=84=E7=BB=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../form/ContractbillContractpartyDefaultPlugin.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/zcdev/zcgj-zcdev-zcdev-fs/src/main/java/zcgj/zcdev/zcdev/fs/plugin/form/ContractbillContractpartyDefaultPlugin.java b/code/zcdev/zcgj-zcdev-zcdev-fs/src/main/java/zcgj/zcdev/zcdev/fs/plugin/form/ContractbillContractpartyDefaultPlugin.java index dd26891..68deb2e 100644 --- a/code/zcdev/zcgj-zcdev-zcdev-fs/src/main/java/zcgj/zcdev/zcdev/fs/plugin/form/ContractbillContractpartyDefaultPlugin.java +++ b/code/zcdev/zcgj-zcdev-zcdev-fs/src/main/java/zcgj/zcdev/zcdev/fs/plugin/form/ContractbillContractpartyDefaultPlugin.java @@ -2,6 +2,7 @@ package zcgj.zcdev.zcdev.fs.plugin.form; import kd.bos.bill.AbstractBillPlugIn; import kd.bos.context.RequestContext; +import kd.bos.dataentity.entity.DynamicObject; import kd.bos.servicehelper.user.UserServiceHelper; import kd.sdk.plugin.Plugin; @@ -23,7 +24,12 @@ public class ContractbillContractpartyDefaultPlugin extends AbstractBillPlugIn Long currentOrgId = RequestContext.get().getOrgId(); //当前所在的组织是属于矿山下的 if(OrgCheckUtils.isKS(currentOrgId)){ - this.getModel().setValue("contractparty",mainOrgId); + Object company = this.getModel().getValue("costcompany");//核算组织 + if(company!=null){ + DynamicObject companyObj = (DynamicObject)company; + this.getModel().setValue("contractparty",companyObj); + + } } } }