Commit c6caa2f4 by 兰国旗

yimingCloseOrder

parent d62d6a85
...@@ -77,6 +77,9 @@ class OrderAPI extends APIBase { ...@@ -77,6 +77,9 @@ class OrderAPI extends APIBase {
case "delOrder"://删除订单 case "delOrder"://删除订单
opResult = await this.orderinfoSve.delOrder(pobj, pobj.actionBody); opResult = await this.orderinfoSve.delOrder(pobj, pobj.actionBody);
break; break;
case "delENameOrder"://删除易名订单
opResult = await this.orderinfoSve.delENameOrder(pobj, pobj.actionBody);
break;
case "queryVOrderByOrderStatusAndItemCode":// 2020 0918 lin 新增 根据OrderStatus查询订单 case "queryVOrderByOrderStatusAndItemCode":// 2020 0918 lin 新增 根据OrderStatus查询订单
opResult = await this.orderinfoSve.queryVOrderByOrderStatusAndItemCode(pobj, pobj.actionBody); opResult = await this.orderinfoSve.queryVOrderByOrderStatusAndItemCode(pobj, pobj.actionBody);
break; break;
......
...@@ -131,10 +131,13 @@ class QcAPI extends APIBase { ...@@ -131,10 +131,13 @@ class QcAPI extends APIBase {
case "addIcpSalesmanInfo"://添加业务员信息,用于直接下单的icp订单 case "addIcpSalesmanInfo"://添加业务员信息,用于直接下单的icp订单
opResult = await this.baiduqcSve.addIcpSalesmanInfo(pobj); opResult = await this.baiduqcSve.addIcpSalesmanInfo(pobj);
break; break;
case "tmFeedbackSubmit"://商标用户反馈 case "tmFeedbackSubmit"://商标用户反馈
opResult = await this.aliyunqcSve.tmFeedbackSubmit(pobj); opResult = await this.aliyunqcSve.tmFeedbackSubmit(pobj);
break; break;
// case "eNameCloseOrder"://易名退款
// opResult = await this.baiduqcSve.eNameCloseOrder(pobj);
// break;
default: default:
opResult = system.getResult(null, "action_type参数错误"); opResult = system.getResult(null, "action_type参数错误");
break; break;
......
...@@ -1019,6 +1019,12 @@ class OrderInfoService extends ServiceBase { ...@@ -1019,6 +1019,12 @@ class OrderInfoService extends ServiceBase {
await this.dao.delOrderByOrderNo(actionBody.orderNo, pobj.appInfo.uapp_id, pobj.userInfo.channel_userid); await this.dao.delOrderByOrderNo(actionBody.orderNo, pobj.appInfo.uapp_id, pobj.userInfo.channel_userid);
return system.getResultSuccess(); return system.getResultSuccess();
} }
async delENameOrder(pobj, actionBody) {//删除易名订单
let res = await this.dao.delOrderByOrderNo(actionBody.orderNo, pobj.appInfo.uapp_id, pobj.userInfo.channel_userid);
console.log("delENameOrder res----",system.getResultSuccess(res))
return system.getResultSuccess(res);
}
//baidureg关闭订单 2020-12-20 //baidureg关闭订单 2020-12-20
async delOrders(pobj, actionBody) {//删除订单 async delOrders(pobj, actionBody) {//删除订单
var i; var i;
......
...@@ -277,5 +277,29 @@ class BaiduQcService { ...@@ -277,5 +277,29 @@ class BaiduQcService {
return system.getResultSuccess(solutionContent); return system.getResultSuccess(solutionContent);
} }
// //易名退款2021-3-23
// async eNameCloseOrder(pobj){
// console.log('order----eNameCloseOrder',pobj)
// let orderNo
// let note
// orderNo = pobj.actionBody.orderNo
// note = pobj.actionBody.note
// if(!orderNo){
// return system.getResultFail(-1011, "订单号不能为空");
// }
// if(!note){
// return system.getResultFail(-1012, "订单关闭理由不能为空");
// }
// let orderInfo = await this.orderinfoDao.model.findOne({
// where: { channelOrderNo: orderNo }, raw: true
// });
// let UpdateObj = {
// id: orderInfo.id,
// orderStatus: 16,
// orderStatusName:"已退款"
// }
// let res = await this.orderinfoDao.update(UpdateObj);//更新订单
// }
} }
module.exports = BaiduQcService; module.exports = BaiduQcService;
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