|
@@ -277,9 +277,9 @@ module.exports = app => {
|
|
|
if (!auditor) {
|
|
|
throw '该审核人不存在';
|
|
|
}
|
|
|
- await this._syncOrderByDelete(transaction, stageId, auditor.order, times);
|
|
|
// 移除整个流程的人
|
|
|
await transaction.delete(this.tableName, { sid: stageId, order: auditor.order, times});
|
|
|
+ await this._syncOrderByDelete(transaction, stageId, auditor.order, times);
|
|
|
await transaction.commit();
|
|
|
} catch (err) {
|
|
|
await transaction.rollback();
|
|
@@ -1650,8 +1650,8 @@ module.exports = app => {
|
|
|
|
|
|
sql = 'SELECT la.`aid`, pa.`name`, pa.`company`, pa.`role`, la.`times`, la.`sid`, la.`order`, la.audit_order, la.audit_type ' +
|
|
|
' FROM ?? AS la Left Join ?? AS pa On la.`aid` = pa.`id` ' +
|
|
|
- ' WHERE la.`sid` = ? and la.`order` = ?';
|
|
|
- sqlParam = [this.tableName, this.ctx.service.projectAccount.tableName, stageId, cur.order];
|
|
|
+ ' WHERE la.`sid` = ? and la.`order` = ? and times = ?';
|
|
|
+ sqlParam = [this.tableName, this.ctx.service.projectAccount.tableName, stageId, cur.order, times];
|
|
|
auditor = await this.db.query(sql, sqlParam);
|
|
|
break;
|
|
|
case auditConst.status.checkNo:
|