Commit 363efa33 by 王栋源

wdy

parent 3adb7ab6
...@@ -49,6 +49,9 @@ class OrderAPI extends APIBase { ...@@ -49,6 +49,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 "channeldelOrder"://阿里工商注册退款
opResult = await this.orderinfoSve.channeldelOrder(pobj, pobj.actionBody);
break;
//--------------------------------支付相关接口------------开始 //--------------------------------支付相关接口------------开始
case "getPayOrderInfo"://获取付款订单信息 case "getPayOrderInfo"://获取付款订单信息
opResult = await this.orderinfoSve.getPayOrderInfo(pobj, pobj.actionBody); opResult = await this.orderinfoSve.getPayOrderInfo(pobj, pobj.actionBody);
......
...@@ -42,5 +42,12 @@ class OrderInfoDao extends Dao { ...@@ -42,5 +42,12 @@ class OrderInfoDao extends Dao {
}; };
return await this.delete(sqlWhere); return await this.delete(sqlWhere);
} }
async channeldelOrder(channelOrderNo, uapp_id) {
var sqlWhere = {
channelOrderNo: channelOrderNo,
uapp_id: uapp_id,
};
return await this.delete(sqlWhere);
}
} }
module.exports = OrderInfoDao; module.exports = OrderInfoDao;
...@@ -4,7 +4,7 @@ const uiconfig = system.getUiConfig2(settings.appKey); ...@@ -4,7 +4,7 @@ const uiconfig = system.getUiConfig2(settings.appKey);
module.exports = (db, DataTypes) => { module.exports = (db, DataTypes) => {
return db.define("orderinfo", { return db.define("orderinfo", {
uapp_id :DataTypes.INTEGER,// uapp_id :DataTypes.INTEGER,//
solutionId :DataTypes.STRING(128),// 方案ID // solutionId :DataTypes.STRING(128),// 方案ID
orderNo :DataTypes.STRING(128),// 订单号 orderNo :DataTypes.STRING(128),// 订单号
channelServiceNo :DataTypes.STRING(128),// 渠道服务单号 channelServiceNo :DataTypes.STRING(128),// 渠道服务单号
channelOrderNo :DataTypes.STRING(128),// 渠道订单号(页面中列表中显示该单号) channelOrderNo :DataTypes.STRING(128),// 渠道订单号(页面中列表中显示该单号)
......
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