浏览代码

修复调差管理员修改流程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 '该审核人已存在,请勿重复添加';
                 }