|
|
@@ -40,8 +40,8 @@ module.exports = app => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- async getStageData(sid, cancel = false) {
|
|
|
- const data = await this.getAllDataByCondition({where: { sid: sid }});
|
|
|
+ async getStageData(stage, cancel = false) {
|
|
|
+ const data = await this.getAllDataByCondition({where: { sid: stage.id }});
|
|
|
this._parseData(data);
|
|
|
if (!stage || cancel || !stage.readOnly || this.ctx.tender.isTourist || stage.status === auditConst.status.checked
|
|
|
|| (stage.flowAuditorIds && stage.flowAuditorIds.indexOf(this.ctx.session.sessionUser.accountId) > 0)) return data;
|
|
|
@@ -177,7 +177,7 @@ module.exports = app => {
|
|
|
}
|
|
|
|
|
|
async updateHistory4TimesOrder(stage, times, order, transaction) {
|
|
|
- const datas = await this.getStageData(stage.id);
|
|
|
+ const datas = await this.getStageData(stage);
|
|
|
if (datas.length === 0) return;
|
|
|
|
|
|
const updateDatas = [];
|