Commit f31bd6ff by 兰国旗

关闭订单优化

parent 6b7ef214
...@@ -59,6 +59,9 @@ class IcAPI extends APIBase { ...@@ -59,6 +59,9 @@ class IcAPI extends APIBase {
case "getSolutionByChannelOrderNo"://渠道订单号获取方案详情 case "getSolutionByChannelOrderNo"://渠道订单号获取方案详情
opResult = await this.needinfoSve.getSolutionByChannelOrderNo(pobj, pobj.actionBody, req); opResult = await this.needinfoSve.getSolutionByChannelOrderNo(pobj, pobj.actionBody, req);
break; break;
case "getSolutionByChannelOrderNo"://渠道订单号获取订单信息
opResult = await this.needinfoSve.getSolutionByChannelOrderNo(pobj, pobj.actionBody, req);
break;
case "writeCommunicationLog"://渠道方案号获取需求详情 case "writeCommunicationLog"://渠道方案号获取需求详情
opResult = await this.needinfoSve2.writeCommunicationLog(pobj, pobj.actionBody, req); opResult = await this.needinfoSve2.writeCommunicationLog(pobj, pobj.actionBody, req);
break; break;
......
...@@ -237,6 +237,13 @@ class NeedinfoService extends ServiceBase { ...@@ -237,6 +237,13 @@ class NeedinfoService extends ServiceBase {
return system.getResultSuccess(item); return system.getResultSuccess(item);
} }
async getOrderInfoByChannelOrderNo(pobj){
var orderinfo = await this.orderinfoDao.findOne({ channelOrderNo: pobj.actionBody.orderNo });
if (!orderinfo || !orderinfo.orderNo) {
return system.getResult(null, "订单数据为空,302101");
}
return system.getResultSuccess(orderinfo);
}
async submitIcpIntention(pobj, actionBody, req) { async submitIcpIntention(pobj, actionBody, req) {
var needNo = await this.getBusUid("n"); var needNo = await this.getBusUid("n");
var nobj = { var nobj = {
......
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