|
@@ -316,7 +316,7 @@ module.exports = app => {
|
|
|
m_tp: this.ctx.helper.round(materialInfo.m_tp, 2),
|
|
|
hs_m_tp: this.ctx.helper.round(this.ctx.helper.mul(materialInfo.m_tp, 1+materialInfo.rate/100), 2),
|
|
|
};
|
|
|
- await this.ctx.helper.sendWechat(nextAudit.id, smsTypeConst.const.TC, smsTypeConst.judge.approval.toString(), wxConst.template.material, wechatData);
|
|
|
+ await this.ctx.helper.sendWechat(nextAudit.aid, smsTypeConst.const.TC, smsTypeConst.judge.approval.toString(), wxConst.template.material, wechatData);
|
|
|
|
|
|
|
|
|
// 添加短信通知-需要审批提醒功能
|
|
@@ -543,7 +543,7 @@ module.exports = app => {
|
|
|
m_tp: this.ctx.helper.round(materialInfo.m_tp, 2),
|
|
|
hs_m_tp: this.ctx.helper.round(this.ctx.helper.mul(materialInfo.m_tp, 1+materialInfo.rate/100), 2),
|
|
|
};
|
|
|
- await this.ctx.helper.sendWechat(audit.aid, smsTypeConst.const.TC, smsTypeConst.judge.approval.toString(), wxConst.template.material, wechatData);
|
|
|
+ await this.ctx.helper.sendWechat(preAuditor.aid, smsTypeConst.const.TC, smsTypeConst.judge.approval.toString(), wxConst.template.material, wechatData);
|
|
|
|
|
|
await transaction.insert(this.tableName, newAuditors);
|
|
|
await transaction.commit();
|