Commit 20743871 by 庄冰

事务

parent c5ab604f
...@@ -2484,7 +2484,7 @@ class OrderInfoService extends ServiceBase { ...@@ -2484,7 +2484,7 @@ class OrderInfoService extends ServiceBase {
}; };
var self = this; var self = this;
return await self.db.transaction(async function (t) { return await self.db.transaction(async function (t) {
var o = await self.dao.create(ab); var o = await self.dao.create(ab,t);
var orderProduct = await self.orderproductDao.create(orderProductObj, t);//订单产品 var orderProduct = await self.orderproductDao.create(orderProductObj, t);//订单产品
return system.getResultSuccess(o); return system.getResultSuccess(o);
}) })
......
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