Explorar el Código

变更方案自动编号bug

ellisran hace 1 año
padre
commit
5d58f2f2e7
Se han modificado 1 ficheros con 2 adiciones y 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] });
                     }