|
@@ -502,7 +502,7 @@ module.exports = app => {
|
|
|
*/
|
|
|
async addStage(tender, date, period) {
|
|
|
const stages = await this.getAllDataByCondition({
|
|
|
- where: { tid: tenderId },
|
|
|
+ where: { tid: tender.id },
|
|
|
orders: [['order', 'DESC']],
|
|
|
});
|
|
|
const preStage = stages[0];
|
|
@@ -591,14 +591,14 @@ module.exports = app => {
|
|
|
// 新增期拷贝报表相关配置/签名角色 等
|
|
|
if (preStage) {
|
|
|
const rptResult = await this.ctx.service.rptCustomDefine.addInitialStageData(newStage, preStage, transaction);
|
|
|
- await this.ctx.service.roleRptRel.addInitialStageData(tenderId, newStage, preStage);
|
|
|
+ await this.ctx.service.roleRptRel.addInitialStageData(tender.id, newStage, preStage);
|
|
|
}
|
|
|
|
|
|
await transaction.commit();
|
|
|
// 通知发送 - 第三方更新
|
|
|
if (this.ctx.session.sessionProject.custom && syncApiConst.notice_type.indexOf(this.ctx.session.sessionProject.customType) !== -1) {
|
|
|
const base_data = {
|
|
|
- tid: tenderId,
|
|
|
+ tid: tender.id,
|
|
|
sid: result.insertId,
|
|
|
op: 'insert',
|
|
|
};
|