Commit 5a7346ba by 兰国旗

laolan

parent b14e36f6
...@@ -607,13 +607,13 @@ class RegCenterOrderService{ ...@@ -607,13 +607,13 @@ class RegCenterOrderService{
} }
//查询对应类型方案是否有提交,提交过的不能重复提交 //查询对应类型方案是否有提交,提交过的不能重复提交
var ns = await this.needsolutionDao.model.findAll({ var ns = await this.needsolutionDao.model.findAndCountAll({
where: { channelNeedNo: ab.needNo ,isInvalid: 0 }, raw: true, order: [["id", 'asc']] where: { channelNeedNo: ab.needNo ,isInvalid: 0 }, raw: true, order: [["id", 'asc']]
}); });
console.log('ns----', ns) console.log('ns----', ns)
var nsRegType = []; var nsRegType = [];
if (ns) { if (ns) {
var nsLength = ns.length; var nsLength = ns.rows.length;
for (l = 0; l < nsLength; l++) { for (l = 0; l < nsLength; l++) {
nsRegType.push(ns[l].solutionContent.solution.regType) nsRegType.push(ns[l].solutionContent.solution.regType)
} }
...@@ -630,7 +630,7 @@ class RegCenterOrderService{ ...@@ -630,7 +630,7 @@ class RegCenterOrderService{
ab.solutionList[j].solutionContent.bizType = bizType; ab.solutionList[j].solutionContent.bizType = bizType;
ab.solutionList[j].solutionContent.typeCode = needinfo.typeCode; ab.solutionList[j].solutionContent.typeCode = needinfo.typeCode;
ab.solutionList[j].solutionContent.typeName = needinfo.typeName; ab.solutionList[j].solutionContent.typeName = needinfo.typeName;
for (k = 0; k < ns.length; k++) { for (k = 0; k < ns.rows.length; k++) {
var fa = ns[k]; var fa = ns[k];
// if (fa.status == "dqr" || fa.status == "ywc") { // if (fa.status == "dqr" || fa.status == "ywc") {
// return system.getResultFail(-207, "需求方案已存在,不能重复提交"); // return system.getResultFail(-207, "需求方案已存在,不能重复提交");
......
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