如题,
现在是EAS8.0二次开发的单据,预算控制平台的配置都已经完成,现在参照
https://vip.kingdee.com/article/43437092287086611
写代码调用预算接口的时候报错了,有没有有经验的给点意见。错误代码如下
错误信息:Can't found propertyUnit: [company] in [com.kingdee.eas.scm.cont.app.ContractBill]!, query : null, view : SELECT company.id WHERE id = 'y3cAAAAMAjrNKCeM'
错误详细堆栈信息:com.kingdee.bos.BOSException: Can't found propertyUnit: [company] in [com.kingdee.eas.scm.cont.app.ContractBill]!, query : null, view : SELECT company.id WHERE id = 'y3cAAAAMAjrNKCeM'
at com.kingdee.bos.metadata.query.util.QueryDeleUtil.processPropertyName(QueryDeleUtil.java:380)
at com.kingdee.bos.metadata.query.QueryDeleUpdater.updateQueryField(QueryDeleUpdater.java:97)
at com.kingdee.bos.metadata.query.QueryDeleUpdater.innerUpdateQuery(QueryDeleUpdater.java:70)
at com.kingdee.bos.metadata.query.QueryDeleUpdater.updateQuery(QueryDeleUpdater.java:39)
at com.kingdee.bos.metadata.query.util.QuerySqlAccessBase.init(QuerySqlAccessBase.java:126)
at com.kingdee.bos.dao.query.server.QueryContext.init(QueryContext.java:159)
at com.kingdee.bos.dao.query.server.QueryDataAccess.getEntitySql(QueryDataAccess.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.kingdee.bos.ResponseInvocationHandler.invoke(ResponseInvocationHandler.java:194)
at $Proxy199.getEntitySql(Unknown Source)
at com.kingdee.bos.dao.query.EntityExecutor.getSQL(EntityExecutor.java:91)
at com.kingdee.eas.ma.control.utils.BgControlUtils.getBillOUID(BgControlUtils.java:79)
at com.kingdee.eas.ma.control.app.BgControlFacadeControllerBean._checkBizUnitInfo(BgControlFacadeControllerBean.java:234)
at com.kingdee.eas.ma.control.app.BgControlFacadeControllerBean._queryBalance(BgControlFacadeControllerBean.java:192)
at com.kingdee.eas.ma.control.app.AbstractBgControlFacadeControllerBean.queryBalance(AbstractBgControlFacadeControllerBean.java:259)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.invoke(TxInvokerBean.java:125)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.INVOKE_SUPPORTS(TxInvokerBean.java:64)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean_LocalObjectImpl_2.INVOKE_SUPPORTS(Unknown Source)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:179)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:324)
at $Proxy198.queryBalance(Unknown Source)
at com.kingdee.eas.ma.control.BgControlFacade.queryBalance(BgControlFacade.java:189)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.kingdee.bos.ResponseInvocationHandler.invoke(ResponseInvocationHandler.java:194)
at $Proxy197.queryBalance(Unknown Source)
at com.kingdee.eas.ma.nbudget.BgControlCaller.queryBalance(BgControlCaller.java:198)
at com.kingdee.eas.scm.cont.app.ContractBillControllerBean._submit(ContractBillControllerBean.java:50)
at com.kingdee.eas.framework.app.AbstractCoreBaseControllerBean.submit(AbstractCoreBaseControllerBean.java:455)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.invoke(TxInvokerBean.java:125)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.INVOKE_REQUIRED(TxInvokerBean.java:60)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean_LocalObjectImpl_2.INVOKE_REQUIRED(Unknown Source)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:171)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:324)
at $Proxy194.submit(Unknown Source)
at com.kingdee.eas.framework.CoreBase.submit(CoreBase.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.kingdee.bos.ResponseInvocationHandler.invoke(ResponseInvocationHandler.java:194)
at $Proxy193.submit(Unknown Source)
at com.kingdee.eas.base.btp.app.BTPManagerControllerBean.innerSubmitModelAndRelations(BTPManagerControllerBean.java:978)
at com.kingdee.eas.base.btp.app.BTPManagerControllerBean._submitRelations(BTPManagerControllerBean.java:929)
at com.kingdee.eas.base.btp.app.AbstractBTPManagerControllerBean.submitRelations(AbstractBTPManagerControllerBean.java:621)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.invoke(TxInvokerBean.java:125)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean.INVOKE_REQUIRED(TxInvokerBean.java:60)
at com.kingdee.bos.transaction.EJBTxFacade.TxInvokerBean_LocalObjectImpl_2.INVOKE_REQUIRED(Unknown Source)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:171)
at com.kingdee.bos.transaction.EJBTransactionProxy.invoke(EJBTransactionProxy.java:324)
at $Proxy192.submitRelations(Unknown Source)
at com.kingdee.eas.base.btp.BTPManager.submitRelations(BTPManager.java:439)
at rpc_generate._PROXY_com_1_kingdee_1_eas_1_base_1_btp_1_IBTPManager.pi12(Unknown Source)
at rpc_generate._PROXY_com_1_kingdee_1_eas_1_base_1_btp_1_IBTPManager.processInvoke(Unknown Source)
at com.kingdee.bos.rpc.impl.ObjectProxy.processInvoke(ObjectProxy.java:177)
at com.kingdee.bos.rpc.impl.RPCService.serviceInvoke(RPCService.java:780)
at com.kingdee.bos.rpc.impl.RPCService.service(RPCService.java:139)
at com.kingdee.bos.rpc.impl.ServiceDispatcher.run(ServiceDispatcher.java:153)
at com.kingdee.bos.rpc.impl.ThreadJob.run(ThreadJob.java:27)
at com.kingdee.bos.rpc.impl.ThreadPool2$Worker.run(ThreadPool2.java:140)
推荐阅读