ellisran пре 1 година
родитељ
комит
5020a31a81
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      app/service/change_apply_audit.js
  2. 1 1
      app/service/change_plan_audit.js

+ 1 - 1
app/service/change_apply_audit.js

@@ -286,7 +286,7 @@ module.exports = app => {
                     c_name: this.ctx.change.name,
                 };
                 await this.ctx.helper.sendWechat(audit.aid, smsTypeConst.const.BG, smsTypeConst.judge.approval.toString(), wxConst.template.change, wechatData);
-                await transaction.delete(this.ctx.service.changeProjectHistory.tableName, { caid: caId });
+                await transaction.delete(this.ctx.service.changeApplyHistory.tableName, { caid: caId });
                 // todo 更新标段tender状态 ?
                 await transaction.commit();
             } catch (err) {

+ 1 - 1
app/service/change_plan_audit.js

@@ -290,7 +290,7 @@ module.exports = app => {
                     c_name: this.ctx.change.name,
                 };
                 await this.ctx.helper.sendWechat(audit.aid, smsTypeConst.const.BG, smsTypeConst.judge.approval.toString(), wxConst.template.change, wechatData);
-                await transaction.delete(this.ctx.service.changeProjectHistory.tableName, { cpid: cpId });
+                await transaction.delete(this.ctx.service.changePlanHistory.tableName, { cpid: cpId });
                 // todo 更新标段tender状态 ?
                 await transaction.commit();
             } catch (err) {