|
@@ -202,7 +202,7 @@ module.exports = app => {
|
|
|
const curInfo = await this.ctx.service.projectAccount.getAccountCacheData(stage.user_id,
|
|
|
{ order: stage.order, audit_order: 0, audit_type: auditConst.auditType.key.common, status: auditConst.stage.status.uncheck });
|
|
|
data.stage_flow_cur_info = JSON.stringify(curInfo);
|
|
|
- const preAuditors = await this.ctx.service.stageAudit.getLastestAuditors(stage.id, times, auditConst.stage.status.checkNo);
|
|
|
+ const preAuditors = await this.ctx.service.stageAudit.getLastestAuditors(stage.id, times - 1, auditConst.stage.status.checkNo);
|
|
|
const preAuditorIds = preAuditors.map(x => { return x.aid; });
|
|
|
data.stage_flow_pre_uid = preAuditorIds.join(',');
|
|
|
data.stage_flow_pre_info = preAuditors.length > 0 ? JSON.stringify(preAuditors.map(preAuditor => { return {
|