diff --git a/script/3.6.2/data/1_bing_anxinproject_local/index.js b/script/3.6.2/data/1_bing_anxinproject_local/index.js index 92c6afa..acf6499 100644 --- a/script/3.6.2/data/1_bing_anxinproject_local/index.js +++ b/script/3.6.2/data/1_bing_anxinproject_local/index.js @@ -55,10 +55,10 @@ try { // 遍历项目 for (let project of projects) { - console.log(`遍历 ${project.id} ${project.name}`); + console.log(`遍历 ${project.name} [${project.id}]`); // 查项目下结构物 const strucCount = (await anxinClient.query(`SELECT count(*) FROM "t_project_structure" INNER JOIN "t_structure" ON "t_project_structure"."structure" = "t_structure"."id" WHERE "project" = ${project.id} AND "t_structure"."external_platform" IS NOT null`)).rows - // console.log(strucCount); + console.log('查得本地化结构物数量 ' + strucCount[0].count); if (strucCount[0].count > 0) { // 判断有没有创建这个项目 const projectPoms = (await pomsClient.query(`SELECT * FROM project_correlation WHERE anxin_project_id @> ARRAY[${project.id}];`)).rows