Commit 66ffbad1 by 宋毅

tj

parent 826dca43
......@@ -29,7 +29,7 @@ class OrderAPI extends APIBase {
var opResult = null;
switch (action_type) {
case "getOrderInfoByChannelOrderNo"://通过渠道订单号获取订单信息
opResult = await this.orderinfoSve.getOrderInfoByChannelOrderNo(pobj.actionBody.channelOrderNo);
opResult = await this.orderinfoSve.getOrderInfoByChannelOrderNo(pobj.actionBody.channelOrderNo, pobj.appInfo.uapp_id);
break;
case "updateOrderPushStatus"://更新订单推送状态
opResult = await this.orderinfoSve.updateOrderPushStatus(pobj.actionBody);
......
......@@ -36,6 +36,37 @@ class OrderInfoDao extends Dao {
}
return await this.model.findOne(sqlWhere);
}
async getItemStatusByChannelOrderNo(orderNo, uapp_id) {
var sqlWhere = {
where: {
orderNo: orderNo
},
attributes: [
"id",
"uapp_id",
"orderNo",
"channelServiceNo",
"channelOrderNo",
"orderServiceNo",
"channelUserId",
"ownerUserId",
"payTime",
"quantity",
"serviceQuantity",
"orderStatusName",
"orderStatus",
"totalSum",
"payTotalSum",
"refundSum",
"invoiceApplyStatus",
"created_at"],
raw: true
};
if (uapp_id) {
sqlWhere.where.uapp_id = uapp_id;
}
return await this.model.findOne(sqlWhere);
}
async delOrderByOrderNo(orderNo, uapp_id, channelUserId) {
var sqlWhere = {
orderNo: orderNo,
......
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