|
@@ -858,7 +858,7 @@ module.exports = app => {
|
|
|
await this.transaction.insert('zh_notice', records);
|
|
|
// 判断是否终审方法需要更改了,因为存在修改审批流程的操作,会使判断是否终审有问题
|
|
|
const curAudit = await this.ctx.service.changeAudit.getCurAuditor(changeData.cid, changeData.times);
|
|
|
- const nextAudit = await this.ctx.service.changeAudit.getDataByCondition({ cid: changeData.cid, times: changeData.times, usite: curAudit.usite + 1 });
|
|
|
+ const nextAudit = await this.ctx.service.changeAudit.getDataByCondition({ cid: changeData.cid, times: changeData.times, usort: curAudit.usort + 1, status: audit.flow.auditStatus.uncheck });
|
|
|
// 设置审批人通过
|
|
|
const audit_update = {
|
|
|
id: curAudit.id,
|