|
@@ -1768,7 +1768,7 @@ module.exports = app => {
|
|
await this._timesDelete(this.ctx.stage.id, nowTimes, transaction);
|
|
await this._timesDelete(this.ctx.stage.id, nowTimes, transaction);
|
|
}
|
|
}
|
|
// 添加上一次审批人
|
|
// 添加上一次审批人
|
|
- const sql = 'SELECT `tid`, `sid`, `aid`, `order` FROM ?? WHERE `sid` = ? and `times` = ? GROUP BY `aid` ORDER BY `id` ASC';
|
|
|
|
|
|
+ const sql = 'SELECT `tid`, `sid`, `aid`, `order`, `audit_type`, `audit_order` FROM ?? WHERE `sid` = ? and `times` = ? GROUP BY `aid` ORDER BY `id` ASC';
|
|
const sqlParam = [this.tableName, this.ctx.stage.id, nowTimes - 1];
|
|
const sqlParam = [this.tableName, this.ctx.stage.id, nowTimes - 1];
|
|
const auditors = await this.db.query(sql, sqlParam);
|
|
const auditors = await this.db.query(sql, sqlParam);
|
|
let order = 1;
|
|
let order = 1;
|