|
|
@ -210,8 +210,9 @@ async function apiErrorList (ctx) { |
|
|
|
}] |
|
|
|
}] |
|
|
|
} |
|
|
|
let projectRes = [] |
|
|
|
if (keyword) { |
|
|
|
const projectRes = await clickHouse.projectManage.query(` |
|
|
|
projectRes = await clickHouse.projectManage.query(` |
|
|
|
${pepProjectSql} |
|
|
|
WHERE project_name LIKE '%${keyword}%'` |
|
|
|
).toPromise() |
|
|
@ -221,7 +222,7 @@ async function apiErrorList (ctx) { |
|
|
|
'$projectApp.projectCorrelation.pep_project_id$': { |
|
|
|
$in: projectRes.map(p => p.id) |
|
|
|
}, |
|
|
|
'$projectApp.name$':{$like:`%${keyword}%`} |
|
|
|
'$projectApp.name$': { $like: `%${keyword}%` } |
|
|
|
} |
|
|
|
) |
|
|
|
} |
|
|
@ -264,6 +265,10 @@ async function apiErrorList (ctx) { |
|
|
|
const listRes = await models.AppAlarm.findAndCountAll(findOption) |
|
|
|
if (!keyword) { |
|
|
|
// 没有关键字筛选 查询关联的项目信息
|
|
|
|
let pepProjectIds = new Set() |
|
|
|
for(let lr of listRes){ |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
ctx.status = 200; |
|
|
|