|
@@ -1056,7 +1056,7 @@ module.exports = app => {
|
|
|
const existAudit = auditList.find(x => { return x.audit_id === lastId });
|
|
|
let order = auditList.length > 0 ? auditList.reduce((rst, a) => { return Math.max(rst, a.audit_order)}, 0) + 1 : 1; // 最大值 + 1
|
|
|
if (existAudit) {
|
|
|
- await transaction.delete(this.tableName, { sid: stage.id, times: stage.times, audit_id: lastId });
|
|
|
+ await transaction.delete(this.tableName, { rid: revise.id, times: revise.times, audit_id: lastId });
|
|
|
const sameOrder = auditList.filter(x => { return x.audit_order === existAudit.audit_order });
|
|
|
if (sameOrder.length === 1) {
|
|
|
const updateData = [];
|