MaiXinRong 1 неделя назад
Родитель
Сommit
012419316a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/service/stage_audit.js

+ 1 - 1
app/service/stage_audit.js

@@ -439,7 +439,7 @@ module.exports = app => {
                 const sql = 'SELECT * FROM ?? WHERE id = ? FOR UPDATE';
                 const sqlParam = [this.ctx.service.stage.tableName, stageId];
                 const currentStage = await transaction.queryOne(sql, sqlParam);
-                if (!currentStage || currentStage.times !== times || currentStage.status !== auditConst.status.checking) {
+                if (!currentStage || currentStage.times !== times || [auditConst.status.checking, auditConst.status.checkNoPre].indexOf(currentStage.status) < 0) {
                     throw '计量期状态已变化,请刷新后重试';
                 }
                 this.ctx.stage.tp_history = currentStage.tp_history ? JSON.parse(currentStage.tp_history) : [];