|
|
@ -50,9 +50,17 @@ module.exports = function (app, opts) { |
|
|
|
await clickHouse.projectManage.query( |
|
|
|
` |
|
|
|
SELECT |
|
|
|
id, project_name AS name, isdelete |
|
|
|
t_pim_project.id AS id, |
|
|
|
t_pim_project.project_name AS projectName, |
|
|
|
t_pim_project.isdelete AS isdelete, |
|
|
|
t_pim_project_construction.construction_status_id AS constructionStatusId, |
|
|
|
t_pim_project_state.construction_status AS constructionStatus |
|
|
|
FROM |
|
|
|
t_pim_project |
|
|
|
LEFT JOIN t_pim_project_construction |
|
|
|
ON t_pim_project.id = t_pim_project_construction.project_id |
|
|
|
LEFT JOIN t_pim_project_state |
|
|
|
ON t_pim_project_construction.construction_status_id = t_pim_project_state.id |
|
|
|
WHERE |
|
|
|
id IN (${pepProjectIds.join(',')}) |
|
|
|
${pepProjectWhereOptions.length ? `AND ${pepProjectWhereOptions.join(' AND ')}` |
|
|
|