|
@@ -627,6 +627,15 @@ module.exports = app => {
|
|
|
];
|
|
|
return await this.db.query(sql, sqlParam);
|
|
|
}
|
|
|
+
|
|
|
+ async updateAuditByReport(transaction, td_id, times, uid) {
|
|
|
+ const auditor = await this.getDataByCondition({ td_id, times, aid: uid });
|
|
|
+ if (auditor) {
|
|
|
+ // 更新order
|
|
|
+ await this._syncOrderByDelete(transaction, td_id, auditor.order, times);
|
|
|
+ return await transaction.delete(this.tableName, { id: auditor.id });
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
return PaymentDetailAudit;
|