Commit a5619791 by 王昆

gsb

parent 3a5d9e7c
......@@ -140,7 +140,16 @@ class StOrderService extends ServiceBase {
remark: params.remark,
auditType: 1
}
return await this.doAudit(_params);
return await this.doAudit(_params, async (order) => {
if (_params.status != "02") {
return;
}
order.trade_status = "02";
await order.save();
// 更新order_item状态
let rs = await this.storderitemDao.updateTradeByOrderId(order.id, order.trade_status);
console.log(rs);
});
}
// 二审
......@@ -153,10 +162,11 @@ class StOrderService extends ServiceBase {
auditType: 2
}
let rs = await this.doAudit(_params, async (order) => {
if (_params.status != "05") {
return;
if (_params.status == "05") {
order.trade_status = "00";
} else if (_params.status == "04") {
order.trade_status = "02";
}
order.trade_status = "00";
await order.save();
// 更新order_item状态
let rs = await this.storderitemDao.updateTradeByOrderId(order.id, order.trade_status);
......
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