瀏覽代碼

撤回金额相关

MaiXinRong 2 年之前
父節點
當前提交
4fb9296bb2
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/service/stage_audit.js

+ 2 - 2
app/service/stage_audit.js

@@ -1070,7 +1070,7 @@ module.exports = app => {
                         yf_tp: yfPay.tp,
                         sf_tp: sfPay.tp,
                     };
-                    this.ctx.stage.tp_history.push({ times, order: curAudit.order, ...stageTp });
+                    this.ctx.stage.tp_history.push({ times, order: curAudit.order, ...stageTp }, { times, order: curAudit.order, ...stageTp });
                     // 同步 期信息
                     await transaction.update(this.ctx.service.stage.tableName, {
                         id: stageId,
@@ -1209,7 +1209,7 @@ module.exports = app => {
                         yf_tp: yfPay.tp,
                         sf_tp: sfPay.tp,
                     };
-                    this.ctx.stage.tp_history.push({ times: times - 1, order: curAudit.order, ...stageTp });
+                    this.ctx.stage.tp_history.push({ times: curAudit.times, order: curAudit.order + 1, ...stageTp }, { times: curAudit.times, order: curAudit.order + 2, ...stageTp });
                     await transaction.update(this.ctx.service.stage.tableName, {
                         id: stageId,
                         times: times - 1,