|
|
@@ -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) : [];
|