Commit 5b6a02a2 by 宋毅

tj

parent 02d21ce8
...@@ -128,9 +128,10 @@ class OrderService extends ServiceBase { ...@@ -128,9 +128,10 @@ class OrderService extends ServiceBase {
//更新付款状态 //更新付款状态
async updateOrderPayStatus(action_body, pobj, req) { async updateOrderPayStatus(action_body, pobj, req) {
var payStatus = action_body.payStatus || "dfk"; var payStatus = action_body.payStatus || "dfk";
var self = this;
return await this.db.transaction(async function (t) { return await this.db.transaction(async function (t) {
await this.dao.updateByWhere({ orderPayStatus: payStatus, buyerMoblie: action_body.buyerMoblie || "" }, { where: { needNoOrderNo: action_body.needNoOrderNo, app_id: req.app.id } }, t); await self.dao.updateByWhere({ orderPayStatus: payStatus, buyerMoblie: action_body.buyerMoblie || "" }, { where: { needNoOrderNo: action_body.needNoOrderNo, app_id: req.app.id } }, t);
await this.ordertmproductDao.updateByWhere({ payStatus: payStatus }, { where: { needNoOrderNo: action_body.needNoOrderNo, app_id: req.app.id } }, t); await self.ordertmproductDao.updateByWhere({ payStatus: payStatus }, { where: { needNoOrderNo: action_body.needNoOrderNo, app_id: req.app.id } }, t);
return system.getResultSuccess(); return system.getResultSuccess();
}); });
} }
......
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