|
变通实现方案:在账户管理应用下建立API脚本,通过"ObjectStore.selectByMap(uri,object)"方式实现,然后其他应用再去调用这个脚本即可
API脚本:
- let AbstractAPIHandler = require('AbstractAPIHandler');
- class MyAPIHandler extends AbstractAPIHandler {
- execute(request){
- var object = {accountId:request.accountId};
- var accinfo = ObjectStore.selectByMap("yonbip-fi-ctmbam.accountInfo.accinfo",object);
- return {accinfo};
- }
- }
- exports({"entryPoint":MyAPIHandler});
复制代码 现金管理应用前端脚本调用:
- let accinfoRet = cb.rest.invokeFunction(
- "BAM.backOpenApiFunction.getAccinfoByEnid",
- {accountId: recBankAccountID},
- function(err, res) {},
- viewModel,
- {async:false, "domainKey":"yonbip-fi-ctmbam"});
复制代码 总之,YonQL的语法调用行不通!
|
|