|
@@ -273,9 +273,12 @@ module.exports = app => {
|
|
|
const sql = 'SELECT `tid`, `sid`, `aid`, `order` FROM ?? WHERE `sid` = ? and `times` = ? GROUP BY `aid`';
|
|
|
const sqlParam = [this.tableName, stageId, times];
|
|
|
const auditors = await this.db.query(sql, sqlParam);
|
|
|
+ let order = 1;
|
|
|
for (const a of auditors) {
|
|
|
a.times = times + 1;
|
|
|
+ a.order = order;
|
|
|
a.status = auditConst.status.uncheck;
|
|
|
+ order++;
|
|
|
}
|
|
|
await transaction.insert(this.tableName, auditors);
|
|
|
// 计算该审批人最终数据
|