MaiXinRong 1 年之前
父節點
當前提交
6b075bf997
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 = {