配置映射文件
Nodejs脚本文件
var fnDataCamcel = require('./fn-common-data-camcel.js');
var fnBusiness = require('./fn-common-data-business.js');
module.exports = function (callback, result, params, rmt,args) {
let argParams = JSON.parse(result);
let paramsTemp = JSON.parse(params);
fnDataCamcel.toLowerCamcelByObject(argParams, paramsTemp["_null"] !== "true");
if (argParams.children) {
fnDataCamcel.mergeBsObject(argParams.data, argParams.children);
delete argParams.children;
}
if (argParams.dimension) {
delete argParams.dimension;
}
if (argParams.schema) {
delete argParams.schema;
}
//自定义业务数据特殊处理,通过 params={_rmt,_mkey,_resField}l
argParams = fnBusiness.doBusiness(argParams, paramsTemp);
callback(null, argParams);
};
- 接口实现案例代码
return await NodeJsUtil.ResponseRequestResult(pf, _configurationBuilderService, _nodeServices, dictionaryUrl, this.HttpContext, mkey, resField, lstData, RequestModuleType.DimSecond);
文档更新时间: 2021-06-28 08:00 作者:admin