Преглед изворни кода

修复调差管理员修改流程bug

ellisran пре 6 месеци
родитељ
комит
396fb662b7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/controller/material_controller.js

+ 1 - 1
app/controller/material_controller.js

@@ -1230,7 +1230,7 @@ module.exports = app => {
 
                 ctx.material.auditorList = await ctx.service.materialAudit.getAuditors(ctx.material.id, ctx.material.times);
                 // 检查审核人是否已存在
-                const exist = this.app._.find(ctx.material.auditorList, { aid: id });
+                const exist = this.app._.find(ctx.material.auditorList, { aid: id, is_old: 0 });
                 if (exist) {
                     throw '该审核人已存在,请勿重复添加';
                 }