Explorar o código

变更方案自动编号bug

ellisran hai 1 ano
pai
achega
5d58f2f2e7
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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] });
                     }