|
@@ -29,7 +29,7 @@ module.exports = options => {
|
|
|
if ((revise.status === status.uncheck || revise.status === status.checkNo) && this.tender.info.shenpi.revise !== shenpiConst.sp_status.sqspr) {
|
|
|
const shenpi_status = this.tender.info.shenpi.revise;
|
|
|
// 进一步比较审批流是否与审批流程设置的相同,不同则替换为固定审批流或固定的终审
|
|
|
- const auditList = yield this.service.reviseAudit.getAllDataByCondition({ where: { tender_id: this.tender.id, times: revise.times } });
|
|
|
+ const auditList = yield this.service.reviseAudit.getAllDataByCondition({ where: { rid: revise.id, times: revise.times } });
|
|
|
const auditIdList = _.map(auditList, 'audit_id');
|
|
|
if (shenpi_status === shenpiConst.sp_status.gdspl) {
|
|
|
const shenpiList = yield this.service.shenpiAudit.getAllDataByCondition({ where: { tid: this.tender.id, sp_type: shenpiConst.sp_type.revise, sp_status: shenpi_status } });
|