Commit a2481306 by 王昆

gsb

parent 3c74ec04
......@@ -30,6 +30,12 @@ class DeliverService extends ServiceBase {
return rs;
}
async mayByIds(ids) {
var rs = await this.callms("common", "deliverUserMap", {ids: ids});
await this.doPercent([rs.data]);
return rs;
}
async save(params) {
params.invoiceDivide = system.y2f(params.invoiceDivide);
params.businessmenDivide = system.y2f(params.businessmenDivide);
......
......@@ -5,7 +5,7 @@ class OrderService extends ServiceBase {
constructor() {
super();
this.pushapiSve = system.getObject("service.push.pushapiSve");
this.userSve = system.getObject("service.uc.userSve");
this.deliverSve = system.getObject("service.common.deliverSve");
}
async allProcess(params) {
......@@ -74,12 +74,10 @@ class OrderService extends ServiceBase {
}
}
let userRs = await this.userSve.mapByIds({ ids: ids });
let userMap = userRs.data || {};
let map = await this.deliverSve.mayByIds(ids);
for (let row of rows) {
let user = userMap[row.operator_id] || {};
row.operator_name = user.realName || "";
let user = map[row.operator_id] || {};
row.operator_name = user.real_name || "";
}
}
......
......@@ -181,8 +181,8 @@ class System {
// merchant: "http://127.0.0.1:3101" + path,
// 订单服务
// order: domain + ":3103" + path,
order: "http://127.0.0.1:3103" + path,
order: domain + ":3103" + path,
// order: "http://127.0.0.1:3103" + path,
// 发票服务
invoice: domain + ":3105" + path,
......
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