Browse Source

更新 'script/2.0.0/data/1_reset_project_bind_point/index.js'

master
sunyue 1 year ago
parent
commit
d04e0deaa4
  1. 124
      script/2.0.0/data/1_reset_project_bind_point/index.js

124
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,
})

Loading…
Cancel
Save