|
@@ -1255,7 +1255,7 @@ module.exports = app => {
|
|
}
|
|
}
|
|
if (this.ctx.tender.info.shenpi.material === shenpiConst.sp_status.gdspl) {
|
|
if (this.ctx.tender.info.shenpi.material === shenpiConst.sp_status.gdspl) {
|
|
const newAuditors = await transaction.select(this.tableName, { where: { mid: materialId, times } });
|
|
const newAuditors = await transaction.select(this.tableName, { where: { mid: materialId, times } });
|
|
- const newAuditorGroup = this.ctx.helper.groupAuditors(newAuditors);
|
|
|
|
|
|
+ const newAuditorGroup = this.ctx.helper.groupAuditors(newAuditors.filter(x => { return x.is_old === 0; }));
|
|
const uniqNewAuditorGroup = this.ctx.helper.groupAuditorsUniq(newAuditorGroup);
|
|
const uniqNewAuditorGroup = this.ctx.helper.groupAuditorsUniq(newAuditorGroup);
|
|
await this.ctx.service.shenpiAudit.updateAuditListWithAuditType(transaction, this.ctx.tender.id, this.ctx.tender.info.shenpi.material, shenpiConst.sp_type.material, uniqNewAuditorGroup, sp_group);
|
|
await this.ctx.service.shenpiAudit.updateAuditListWithAuditType(transaction, this.ctx.tender.id, this.ctx.tender.info.shenpi.material, shenpiConst.sp_type.material, uniqNewAuditorGroup, sp_group);
|
|
} else if (this.ctx.tender.info.shenpi.material === shenpiConst.sp_status.gdzs) {
|
|
} else if (this.ctx.tender.info.shenpi.material === shenpiConst.sp_status.gdzs) {
|