Commit c432ab07 by 宋毅

增加内容

parent 9840e8b8
...@@ -8,6 +8,7 @@ const moment = require('moment'); ...@@ -8,6 +8,7 @@ const moment = require('moment');
*/ */
class BaseQcService { class BaseQcService {
constructor() { constructor() {
this.execClientNew = system.getObject("util.execClientNew");
this.needsolutionDao = system.getObject("db.dbneed.needsolutionDao"); this.needsolutionDao = system.getObject("db.dbneed.needsolutionDao");
this.needinfoDao = system.getObject("db.dbneed.needinfoDao"); this.needinfoDao = system.getObject("db.dbneed.needinfoDao");
this.orderinfoDao = system.getObject("db.dbcorder.orderinfoDao"); this.orderinfoDao = system.getObject("db.dbcorder.orderinfoDao");
...@@ -425,6 +426,7 @@ class BaseQcService { ...@@ -425,6 +426,7 @@ class BaseQcService {
//交付商通知状态变更 //交付商通知状态变更
async serviceProviderNotification(pobj) { async serviceProviderNotification(pobj) {
try {
let ab = pobj.actionBody; let ab = pobj.actionBody;
if (!pobj.userInfo || !pobj.userInfo.id) { if (!pobj.userInfo || !pobj.userInfo.id) {
return system.getResultFail(-1100, "未知用户"); return system.getResultFail(-1100, "未知用户");
...@@ -452,12 +454,18 @@ class BaseQcService { ...@@ -452,12 +454,18 @@ class BaseQcService {
} }
pobj.actionBody = ab; pobj.actionBody = ab;
return this.acceptIcpPartnerNotification(pobj); return this.acceptIcpPartnerNotification(pobj);
} catch (e) {
const stackStr = e.stack ? e.stack : JSON.stringify(e);
this.execClientNew.execLogs("serviceProviderNotification-reqError:", pobj, "center-order-serviceProviderNotification", null, stackStr);
return system.getResultFail(-200, "serviceProviderNotification操作异常");
}
} }
//服务商通知状态变更 //服务商通知状态变更
async acceptIcpPartnerNotification(pobj) { async acceptIcpPartnerNotification(pobj) {
let self = this; let self = this;
let ab = pobj.actionBody; let ab = pobj.actionBody;
try {
let needSolutionWhere = {}; let needSolutionWhere = {};
if (ab.solutionNo) { if (ab.solutionNo) {
needSolutionWhere = {solutionNo: ab.solutionNo}; needSolutionWhere = {solutionNo: ab.solutionNo};
...@@ -620,6 +628,11 @@ class BaseQcService { ...@@ -620,6 +628,11 @@ class BaseQcService {
statusObj['channelOrderNo'] = channelOrderNo; statusObj['channelOrderNo'] = channelOrderNo;
return system.getResultSuccess(statusObj); return system.getResultSuccess(statusObj);
}) })
} catch (e) {
const stackStr = e.stack ? e.stack : JSON.stringify(e);
this.execClientNew.execLogs("acceptIcpPartnerNotification-reqError:", pobj, "center-order-acceptIcpPartnerNotification", null, stackStr);
return system.getResultFail(-200, "acceptIcpPartnerNotification操作异常");
}
} }
/* /*
......
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