Bladeren bron

修复结算期继承用户id bug

ellisran 1 jaar geleden
bovenliggende
commit
dbd9b11d13
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      app/service/settle_audit.js

+ 2 - 1
app/service/settle_audit.js

@@ -241,7 +241,7 @@ module.exports = app => {
                 if (a.audit_order === 0) continue;
                 newAuditors.push({
                     tid: newSettle.tid, settle_id: newSettle.id,
-                    audit_id: a.id,
+                    audit_id: a.audit_id,
                     audit_times: 1, audit_order: a.audit_order, audit_type: a.audit_type,
                     active_order: a.audit_order, audit_status: auditConst.settle.status.uncheck,
                     name: a.name, company: a.company, role: a.role, mobile: a.mobile,
@@ -386,6 +386,7 @@ module.exports = app => {
                     code: this.ctx.session.sessionProject.code,
                 };
                 await this.ctx.helper.sendWechat(users, smsTypeConst.const.JS, smsTypeConst.judge.approval.toString(), wxConst.template.settle, wechatData);
+                console.log(audits);
                 for (const a of audits) {
                     await this.ctx.service.noticeAgain.addNoticeAgain(transaction, smsTypeConst.const.JS, {
                         pid: this.ctx.session.sessionProject.id,