Commit 7c851294 by 庄冰

ybh

parent c87a0879
...@@ -121,13 +121,16 @@ class AliyunQcService{ ...@@ -121,13 +121,16 @@ class AliyunQcService{
ab.solutionContent.typeCode = needinfo.typeCode; ab.solutionContent.typeCode = needinfo.typeCode;
ab.solutionContent.typeName = needinfo.typeName; ab.solutionContent.typeName = needinfo.typeName;
var ns = await this.needsolutionDao.model.findAll({ var ns = await this.needsolutionDao.model.findAll({
where: { channelNeedNo: ab.needNo }, raw: true where: { channelNeedNo: ab.needNo }, raw: true,order: [["id", 'asc']],
}); });
for (var i = 0; i < ns.length; i++) { for (var i = 0; i < ns.length; i++) {
var fa = ns[i]; var fa = ns[i];
if (fa.status == "dqr" || fa.status == "ywc") { if (fa.status == "dqr" || fa.status == "ywc") {
return system.getResultFail(-207, "需求方案已存在,不能重复提交"); return system.getResultFail(-207, "需求方案已存在,不能重复提交");
} }
if (fa.status == "ybh") {
ab.channelSolutionNo = fa.channelSolutionNo;
}
} }
// if (!ab.solutionContent.solution) { // if (!ab.solutionContent.solution) {
// return system.getResultFail(-104, "业务方案信息不能为空"); // return system.getResultFail(-104, "业务方案信息不能为空");
......
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