|
@@ -372,6 +372,7 @@ module.exports = app => {
|
|
|
if (!transaction) throw '未定义事务';
|
|
|
|
|
|
const subProject = await this.getDataById(spid);
|
|
|
+ if (!subProject) throw '所属项目不存在';
|
|
|
const rela = subProject.rela_tender.split(',');
|
|
|
if (rela.indexOf(tid + '') >= 0) return;
|
|
|
|
|
@@ -385,6 +386,7 @@ module.exports = app => {
|
|
|
if (!transaction) throw '未定义事务';
|
|
|
|
|
|
const subProject = await this.getDataById(spid);
|
|
|
+ if (!subProject) throw '所属项目不存在';
|
|
|
const rela = subProject.rela_tender.split(',');
|
|
|
if (rela.indexOf(tid + '') < 0) return;
|
|
|
|