Commit 152275f7 by 王昆

gsb

parent c526548a
......@@ -214,17 +214,20 @@ class XbgApi extends apiBase {
}
qobj.busiIds = (config.payCompanyIds || "").split(",");
// qobj.busiIds = config.payCompanyIds;
let dataView;
if(!config.dataView || config.dataView == "{}") {
dataView = {actual_amt: 0, contractCount: 0, income_tax: 0};
} else {
try {
dataView = JSON.parse(config.dataView);
} catch (e) {
dataView = {actual_amt: 0, contractCount: 0, income_tax: 0};
}
}
try {
var recruit_info = await this.recruitSve.findAllList(params);
// var resut = {};
// if (!params.busiIds || params.busiIds.length == 0) {
// resut = {contractCount: 0, actual_amt: 0, income_tax: 0};
// } else {
// var rs = await this.restClient.execPost(params, this.url + "dataOverview");
// resut = JSON.parse(rs.stdout);
// }
var dv = config.dataView || {actual_amt: 0, contractCount: 0, income_tax: 0};
var dv = dataView || {actual_amt: 0, contractCount: 0, income_tax: 0};
var rcount = 0;
if (recruit_info.status == 0) {
rcount = recruit_info.data.count;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment