From 8891fd7f222c2c05212a11668af075853f707994 Mon Sep 17 00:00:00 2001 From: CODE <1650192445@qq.com> Date: Tue, 7 Nov 2023 10:35:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=84=9A=E6=9C=AC=E4=BF=A1=E6=81=AF=E8=BE=93?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/3.6.2/data/1_bing_anxinproject_local/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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