Commit 1b464c01 by 庄冰

nsSve

parent 87740834
...@@ -792,6 +792,7 @@ class NeedsolutionService extends ServiceBase { ...@@ -792,6 +792,7 @@ class NeedsolutionService extends ServiceBase {
} }
//获取方案信息 //获取方案信息
var needsolutioninfo = await this.dao.model.findOne({ var needsolutioninfo = await this.dao.model.findOne({
attributes:["id","needNo","solutionContent","status"],
where: { channelSolutionNo: ab.BizId }, raw: true where: { channelSolutionNo: ab.BizId }, raw: true
}); });
if (!needsolutioninfo || !needsolutioninfo.id) { if (!needsolutioninfo || !needsolutioninfo.id) {
...@@ -881,9 +882,9 @@ class NeedsolutionService extends ServiceBase { ...@@ -881,9 +882,9 @@ class NeedsolutionService extends ServiceBase {
var self = this; var self = this;
return await this.db.transaction(async function (t) { return await this.db.transaction(async function (t) {
await self.dao.update(needsolutioninfo, t); await self.dao.update(needsolutioninfo, t);
needsolutioninfo = await self.dao.model.findOne({ // needsolutioninfo = await self.dao.model.findOne({
where: { channelSolutionNo: ab.BizId }, raw: true // where: { channelSolutionNo: ab.BizId }, raw: true
}); // });
statusObj["BizId"] = ab.BizId; statusObj["BizId"] = ab.BizId;
return system.getResultSuccess(statusObj); return system.getResultSuccess(statusObj);
}) })
......
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