|
@@ -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 '该审核人已存在,请勿重复添加';
|
|
|
}
|