From d04e0deaa43e7e3bb53eb3c819d1a05e0c1942d6 Mon Sep 17 00:00:00 2001 From: sunyue Date: Fri, 27 Oct 2023 10:28:19 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'script/2.0.0/data/1=5Fres?= =?UTF-8?q?et=5Fproject=5Fbind=5Fpoint/index.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/1_reset_project_bind_point/index.js | 124 +++++++++++++++++- 1 file changed, 119 insertions(+), 5 deletions(-) diff --git a/script/2.0.0/data/1_reset_project_bind_point/index.js b/script/2.0.0/data/1_reset_project_bind_point/index.js index dff1b2c..5964ace 100644 --- a/script/2.0.0/data/1_reset_project_bind_point/index.js +++ b/script/2.0.0/data/1_reset_project_bind_point/index.js @@ -9,16 +9,130 @@ try { //! points 是要归属到这个结构物下的点位 id const resetBing = [ { - projectId: 1, - points: [1, 2, 3] - } + projectId: 12, + points: [187,196, +188, +189, +186, +190, +191, +193, +194, +195, +197, +182, +178, +179, +180, +181, +183, +184 +] + }, + { + projectId: 12, + points: [138] + }, + { + projectId: 12, + points: [135] + }, + { + projectId: 12, + points: [137] + }, + { + projectId: 12, + points: [135] + }, + { + projectId: 12, + points: [121, +122, +123, +124, +217, +125, +126, +127, +128, +130, +131, +132, +120, +119, +212, +213, +216, +208, +215 +] + }, + { + projectId: 12, + points: [159, +169, +165, +160, +161, +166, +162, +163, +164, +167, +168, +172, +170, +175, +171, +173, +174, +176, +177 +] + }, + { + projectId: 12, + points: [136] + }, + { + projectId: 12, + points: [133] + }, + { + projectId: 12, + points: [108, +106, +112, +142, +105, +145, +146, +148, +153, +149, +150, +151, +152, +156, +154, +155, +157, +158, +109 +] + }, + { + projectId: 12, + points: [139] + }, ] // 测试环境 const pool = new Pool({ user: 'FashionAdmin', - host: '10.8.30.39', - database: 'Inspection_20231016', + host: '10.8.30.166', + database: 'inspection-bak', password: '123456', port: 5432, })