|
@@ -607,8 +607,7 @@ module.exports = app => {
|
|
|
};
|
|
|
await transaction.update(this.ctx.service.change.tableName, updateData, options);
|
|
|
// 清空audit_amount
|
|
|
- if(times > 1) await transaction.update(this.ctx.service.changeAuditList.tableName, { audit_amount: null }, options);
|
|
|
-
|
|
|
+ if(times > 1) await transaction.update(this.ctx.service.changeAuditList.tableName, { audit_amount: null }, { where: { cid: cid } });
|
|
|
// 添加短信通知-需要审批提醒功能
|
|
|
const sms = new SMS(this.ctx);
|
|
|
const code = await sms.contentChange(this.ctx.change.code);
|