Commit 9dda6aa3 by 宋毅

修改结果

parent aa2e4462
...@@ -221,6 +221,7 @@ class BaiduQcService { ...@@ -221,6 +221,7 @@ class BaiduQcService {
var ns = await this.needsolutionDao.model.findOne({ var ns = await this.needsolutionDao.model.findOne({
where: {orderNo: orderInfo.orderNo, isInvalid: 0}, raw: true where: {orderNo: orderInfo.orderNo, isInvalid: 0}, raw: true
}); });
console.log("获取方案信息........................", JSON.stringify(ns))
if (!ns || !ns.id) { if (!ns || !ns.id) {
return system.getResultFail(-102, "未知方案"); return system.getResultFail(-102, "未知方案");
} }
...@@ -253,9 +254,9 @@ class BaiduQcService { ...@@ -253,9 +254,9 @@ class BaiduQcService {
}; };
var self = this; var self = this;
return await this.needsolutionDao.db.transaction(async function (t) { return await this.needsolutionDao.db.transaction(async function (t) {
await self.needsolutionDao.update(updateObj);//方案状态修改 await self.needsolutionDao.update(updateObj, t);//方案状态修改
if (ab.isNewMethod && ab.isNewMethod == 1) { if (ab.isNewMethod && ab.isNewMethod == 1) {
await this.orderinfoDao.update({id: orderInfo.id, orderStatus: 16});//订单状态修改 await this.orderinfoDao.update({id: orderInfo.id, orderStatus: 16}, t);//订单状态修改
} }
let new_ns = await self.needsolutionDao.model.findOne({ let new_ns = await self.needsolutionDao.model.findOne({
where: {id: ns.id}, raw: true where: {id: ns.id}, raw: true
......
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