浏览代码

变更方案自动编号bug

ellisran 1 年之前
父节点
当前提交
5d58f2f2e7
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/controller/change_controller.js

+ 2 - 0
app/controller/change_controller.js

@@ -235,6 +235,8 @@ module.exports = app => {
                     cConnector = c_code_rules && c_code_rules[data.type + '_connector'] ? c_code_rules[data.type + '_connector'] : null;
                     if (data.type === codeRuleConst.ruleField[codeRuleConst.ruleType.apply]) {
                         changeCount = await ctx.service.changeApply.count({ tid: tenderId });
+                    } else if (data.type === codeRuleConst.ruleField[codeRuleConst.ruleType.plan]) {
+                        changeCount = await ctx.service.changePlan.count({ tid: tenderId });
                     } else {
                         changeCount = await ctx.service.changeProject.count({ tid: tenderId, type: codeRuleConst.ruleType[data.type] });
                     }