// let userPepRes = await clickHouse.pepEmis.query(`SELECT "user"."name" FROM department_user LEFT JOIN user ON department_user.user=user.id `).toPromise()
letuserIds=newSet()
for(letuofuserRes.rows.concat(adminRes)){
userIds.add(u.pepUserId)
}
letuserPepRes=awaitclickHouse.pepEmis.query(`SELECT user.id AS id, "user"."name" AS name, department.name AS depName FROM department_user LEFT JOIN user ON department_user.user=user.id LEFT JOIN department ON department.id=department_user.department WHERE user.id IN (${[...userIds].join(',')})`).toPromise()
// const userDepRes = await clickHouse.pepEmis.query(`SELECT * FROM department`).toPromise()