MaiXinRong před 1 rokem
rodič
revize
6b075bf997
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app/service/stage_audit.js

+ 1 - 1
app/service/stage_audit.js

@@ -1134,7 +1134,7 @@ module.exports = app => {
                 await transaction.insert(this.tableName, [...checkCancelAuditors, ...checkingAuditors]);
                 // 当前审批人变成待审批
                 await transaction.update(this.tableName, { begin_time: null, status: auditConst.status.uncheck, order: stage.curAuditors[0].order + 2 },
-                    { where: { sid: stage.sid, times: stage.times, order: stage.curAuditors[0].order } });
+                    { where: { sid: stage.id, times: stage.curAuditors[0].times, order: stage.curAuditors[0].order } });
                 // 计算并合同支付最终数据
                 const [yfPay, sfPay] = await this.ctx.service.stagePay.calcAllStagePays(this.ctx.stage, transaction);
                 const stageTp = {