@ -81,7 +81,7 @@ async function personnelApp (ctx) {
pepPojectIds.add(p.pepProjectId)
}
console.log([...pepPojectIds]);
// 查对应的项企项目信息
let pepProjectRes = pepPojectIds.size ?
await clickHouse.projectManage.query(`
@ -104,8 +104,10 @@ module.exports = function (app, opts) {
let pepPojectIds = new Set();
for (let p of projects) {
if (p.pepProjectId) {
pepPojectIds.add(p.pepProjectId);
let pepProjects = pepPojectIds.size ? await clickHouse.projectManage.query(`
SELECT id, project_name FROM t_pim_project WHERE id IN (${[...pepPojectIds]}, -1)`