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); + + } } } }