|
@@ -255,7 +255,7 @@ module.exports = app => {
|
|
|
}
|
|
|
|
|
|
// 是否加入到决策大屏中
|
|
|
- if (sessionProject.addDataCollect === 0) {
|
|
|
+ if (sessionProject.page_show.addDataCollect === 0) {
|
|
|
await this.ctx.service.datacollectTender.add(sessionProject.id, operate.insertId);
|
|
|
}
|
|
|
return tender;
|
|
@@ -370,6 +370,8 @@ module.exports = app => {
|
|
|
|
|
|
await transaction.delete(this.ctx.service.advanceFile.tableName, { tid: id });
|
|
|
|
|
|
+ await transaction.delete(this.ctx.service.datacollectTender.tableName, { pid: this.ctx.session.sessionProject.id, tid: id });
|
|
|
+
|
|
|
// 记录删除日志
|
|
|
await this.ctx.service.projectLog.addProjectLog(transaction, projectLogConst.type.tender, projectLogConst.status.delete, tenderMsg.name, id);
|
|
|
await transaction.commit();
|