Commit 861d9645 by 宋毅

tj

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