Commit b832c8f8 by 兰国旗

修改icp更新状态判断需求needNo为channelNeedNo

parent f6762d84
...@@ -463,7 +463,7 @@ class BaseQcService { ...@@ -463,7 +463,7 @@ class BaseQcService {
} }
//获取方案信息 //获取方案信息
var needsolutioninfo = await this.needsolutionDao.model.findOne({ var needsolutioninfo = await this.needsolutionDao.model.findOne({
attributes: ["id", "status", "solutionContent", "needNo"], attributes: ["id", "status", "solutionContent", "needNo","channelNeedNo"],
where: { solutionNo: ab.solutionNo }, raw: true where: { solutionNo: ab.solutionNo }, raw: true
}); });
if (!needsolutioninfo || !needsolutioninfo.id) { if (!needsolutioninfo || !needsolutioninfo.id) {
...@@ -503,12 +503,12 @@ class BaseQcService { ...@@ -503,12 +503,12 @@ class BaseQcService {
var uappId = orderuappId.uapp_id; var uappId = orderuappId.uapp_id;
} }
if (uappId != '50') { if (uappId != '50') {
if (!needsolutioninfo.needNo) { if (!needsolutioninfo.channelNeedNo) {
return system.getResultFail(-401, "方案需求信息有误"); return system.getResultFail(-401, "方案需求信息有误");
} }
//获取需求信息 //获取需求信息
var needinfo = await this.needinfoDao.model.findOne({ var needinfo = await this.needinfoDao.model.findOne({
where: { needNo: needsolutioninfo.needNo }, raw: true where: { channelNeedNo: needsolutioninfo.channelNeedNo }, raw: true
}); });
if (!needinfo || !needinfo.id) { if (!needinfo || !needinfo.id) {
return system.getResultFail(-201, "未知需求信息"); return system.getResultFail(-201, "未知需求信息");
......
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