소스 검색

变更方案自动编号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] });
                     }