Commit a2481306 by 王昆

gsb

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