Commit 7808044c by 孙亚楠

dd

parent 42239312
......@@ -4,6 +4,7 @@ class InvoiceCtl extends CtlBase {
constructor() {
super();
this.invoiceSve = system.getObject("service.invoice.invoiceSve");
this.deliverSve = system.getObject("service.common.deliverSve");
}
/**
......@@ -52,8 +53,15 @@ class InvoiceCtl extends CtlBase {
* 进度处理
* @param {*} pobj
*/
async handleStatus(pobj) {
async handleStatus(pobj, pobj2, req) {
try {
if(pobj.status=="1030" || pobj.operator_id){
let user = await this.deliverSve.deliverUserById({id: pobj.operator_id});
if (!user || user.status != 0 || !user.data) {
return system.getResult(null, `业务员【${pobj.operator_id}】不存在`);
}
pobj.operator_path = user.data.org_path;
}
return await this.invoiceSve.handleStatus(pobj);
} catch (error) {
console.log(error);
......@@ -74,5 +82,7 @@ class InvoiceCtl extends CtlBase {
}
}
}
module.exports = InvoiceCtl;
\ No newline at end of file
......@@ -193,7 +193,7 @@ class System {
// merchant: "http://127.0.0.1:3101" + path,
// 订单服务
order: domain+ ":3103" + path,
order: domain2+ ":3103" + path,
// 发票服务
invoice: domain2 + ":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