Commit 5dd8ee5d by linboxuan

Merge branch 'center-order' of http://gitlab.gongsibao.com/jiangyong/zhichan into center-order

parents 3e17e4e2 1b464c01
......@@ -474,6 +474,7 @@ class NeedsolutionService extends ServiceBase {
// return system.getResultFail(-102,"状态不能为空");
// }
var needsolutioninfo = await this.dao.model.findOne({
attributes:["id","solutionContent","status","orderNo"],
where: { channelSolutionNo: ab.channelSolutionNo,isInvalid:0 }, raw: true
});
if (!needsolutioninfo || !needsolutioninfo.id) {
......@@ -791,6 +792,7 @@ class NeedsolutionService extends ServiceBase {
}
//获取方案信息
var needsolutioninfo = await this.dao.model.findOne({
attributes:["id","needNo","solutionContent","status"],
where: { channelSolutionNo: ab.BizId }, raw: true
});
if (!needsolutioninfo || !needsolutioninfo.id) {
......@@ -880,9 +882,9 @@ class NeedsolutionService extends ServiceBase {
var self = this;
return await this.db.transaction(async function (t) {
await self.dao.update(needsolutioninfo, t);
needsolutioninfo = await self.dao.model.findOne({
where: { channelSolutionNo: ab.BizId }, raw: true
});
// needsolutioninfo = await self.dao.model.findOne({
// where: { channelSolutionNo: ab.BizId }, raw: true
// });
statusObj["BizId"] = ab.BizId;
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