Commit d79b8cd5 by 孙亚楠

dd

parent db8343e7
...@@ -36,6 +36,18 @@ class TestAPI extends APIBase { ...@@ -36,6 +36,18 @@ class TestAPI extends APIBase {
return "success"; return "success";
} }
/**
* 重置订单处理流程
* @param pobj
* @param query
* @param req
* @returns {Promise<void>}
*/
async resetOrderProcess(pobj, query, req){
await this.orderSve.resetOrderProcess(pobj);
return system.getResultSuccess();
}
async testInvoice() { async testInvoice() {
let params = { let params = {
uploadPeriod: "201910", uploadPeriod: "201910",
......
...@@ -288,5 +288,18 @@ class OrderService extends ServiceBase { ...@@ -288,5 +288,18 @@ class OrderService extends ServiceBase {
return system.getResult(null,`系统错误`); return system.getResult(null,`系统错误`);
} }
} }
// 重置订单处理流程
async resetOrderProcess(params) {
if (!params.id) {
return system.getResult(null, `参数错误 ID不能为空`);
}
try {
return await this.callms("order", "resetOrderProcess", params);
} catch (error) {
console.log(error);
return system.getResult(null,`系统错误 错误信息 ${error}`);
}
}
} }
module.exports = OrderService; module.exports = OrderService;
\ No newline at end of file
...@@ -182,7 +182,7 @@ class System { ...@@ -182,7 +182,7 @@ class System {
// merchant: "http://127.0.0.1:3101" + path, // merchant: "http://127.0.0.1:3101" + path,
// 订单服务 // 订单服务
order: domain + ":3103" + path, order: domain2 + ":3103" + path,
// order: domain + ":3103" + path, // order: domain + ":3103" + 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