|
@@ -365,4 +365,137 @@ select * from real_187ed5314b84 where ts >= NOW - 1h;
|
365
|
365
|
- warningtj_187ed5314e0c_h; warningtj_187ed5314e0c_d; warningtj_187ed5314e0c_n;warningtj_187ed5314e0c_y;
|
366
|
366
|
- dl_187ed5314e0c
|
367
|
367
|
```
|
368
|
|
-- 云端同步
|
|
368
|
+- 云端同步
|
|
369
|
+
|
|
370
|
+# 2020年10月7日 换模块
|
|
371
|
+
|
|
372
|
+```
|
|
373
|
+
|
|
374
|
+192.168.18.38
|
|
375
|
+TecheFwd123
|
|
376
|
+192.168.0.215
|
|
377
|
+http://192.168.0.1/ admin admin
|
|
378
|
+LAN设置 客户端列表
|
|
379
|
+192.168.0.252:8080/ebx-bishop/data/carry
|
|
380
|
+
|
|
381
|
+-- 粮油区第6排和第5排
|
|
382
|
+-- 15034换成2F658 192.168.0.141 第5排
|
|
383
|
+-- 16484换成2CB7C 192.168.0.71 第6排
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+select * from kaiguan where Mac='187ed5316484' ip 192.168.0.64 不对
|
|
387
|
+新模块:
|
|
388
|
+
|
|
389
|
+# 15034换成2F658
|
|
390
|
+
|
|
391
|
+-局域网找新模块确认指向?已确认。
|
|
392
|
+-新模块是否最新?确实最新。最新。
|
|
393
|
+-确认旧模块是否不再更新?最后一次更新时间在2020-10-06 09:34:19,确实不再更新。
|
|
394
|
+-记录旧模块的开关编号和开关名称?
|
|
395
|
+select * from KaiGuan where Mac='187ed5315034'
|
|
396
|
+in ('260','261','262','263','264','265','266','267','268','269', '270','271','272','273','274','275')
|
|
397
|
+-记录旧模块的场景
|
|
398
|
+-1D区晚上21点关 2,4,6,8,10,14
|
|
399
|
+-1层D区下班关 1,3,5,7,9,11,12,13,16
|
|
400
|
+-1层收银下班 14,15
|
|
401
|
+-1层D区上班开 2,4,5,6,8,10,11,12,13,14,15,16
|
|
402
|
+-1层E区上班早开 1,3,7,9
|
|
403
|
+粮油调味区盘点关 1-10
|
|
404
|
+粮油调味区盘点开 1-10
|
|
405
|
+
|
|
406
|
+-删除旧模块SceneDetails
|
|
407
|
+select * from sceneDetails where mac='187ed5315034'
|
|
408
|
+delete from sceneDetails where mac='187ed5315034'
|
|
409
|
+
|
|
410
|
+-删除旧模块SceneItem
|
|
411
|
+select * from SceneItem where KaiGuanId in ('260','261','262','263','264','265','266','267','268','269', '270','271','272','273','274','275')
|
|
412
|
+delete from SceneItem where KaiGuanId in ('260','261','262','263','264','265','266','267','268','269', '270','271','272','273','274','275')
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+-删除旧模块warninghistories
|
|
416
|
+select * from warningHistories where KaiGuanId in ('260','261','262','263','264','265','266','267','268','269', '270','271','272','273','274','275')
|
|
417
|
+delete from warningHistories where KaiGuanId in ('260','261','262','263','264','265','266','267','268','269', '270','271','272','273','274','275')
|
|
418
|
+
|
|
419
|
+-删除旧模块kaiguanwarning
|
|
420
|
+select * from kaiguanwarning where KaiGuanId in ('260','261','262','263','264','265','266','267','268','269', '270','271','272','273','274','275')
|
|
421
|
+delete from KaiGuanWarning where KaiGuanId in ('260','261','262','263','264','265','266','267','268','269', '270','271','272','273','274','275')
|
|
422
|
+
|
|
423
|
+-删除旧模块开关
|
|
424
|
+select * from KaiGuan where Mac='187ed5315034'
|
|
425
|
+delete from KaiGuan where Mac='187ed5315034'
|
|
426
|
+
|
|
427
|
+-删除缓存
|
|
428
|
+AllMac
|
|
429
|
+其它相关缓存
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+-添加新模块开关
|
|
433
|
+select Mac, LineAddress, Name from KaiGuan where Mac='187ed5328658'
|
|
434
|
+
|
|
435
|
+update KaiGuan Set Name='射灯2' where Mac='187ed5328658' and LineAddress='1';
|
|
436
|
+update KaiGuan Set Name='灯带9' where Mac='187ed5328658' and LineAddress='2';
|
|
437
|
+update KaiGuan Set Name='灯带10' where Mac='187ed5328658' and LineAddress='3';
|
|
438
|
+update KaiGuan Set Name='灯带10' where Mac='187ed5328658' and LineAddress='4';
|
|
439
|
+update KaiGuan Set Name='灯带11' where Mac='187ed5328658' and LineAddress='5';
|
|
440
|
+update KaiGuan Set Name='灯带11' where Mac='187ed5328658' and LineAddress='6';
|
|
441
|
+update KaiGuan Set Name='灯带12' where Mac='187ed5328658' and LineAddress='7';
|
|
442
|
+update KaiGuan Set Name='灯带12' where Mac='187ed5328658' and LineAddress='8';
|
|
443
|
+update KaiGuan Set Name='灯带14' where Mac='187ed5328658' and LineAddress='9';
|
|
444
|
+-设置新模块相关场景
|
|
445
|
+S3上班
|
|
446
|
+S3下班
|
|
447
|
+
|
|
448
|
+#16484换成2CB7C
|
|
449
|
+
|
|
450
|
+-局域网找新模块确认指向?
|
|
451
|
+-新模块是否最新?确实最新。
|
|
452
|
+-确认旧模块是否不再更新?最后一次更新时间在2020-10-06 09:34:19,确实不再更新。
|
|
453
|
+-记录旧模块的开关编号和开关名称?
|
|
454
|
+select * from KaiGuan where Mac='187ed5316484'
|
|
455
|
+in ('276','277','278','279','280','281','282')
|
|
456
|
+-记录旧模块的场景
|
|
457
|
+-1D区晚上21点关 1
|
|
458
|
+-1层D区下班关 2,3,4,5,6,7
|
|
459
|
+-1层收银下班 5
|
|
460
|
+-1层D区上班开 1-7
|
|
461
|
+-删除旧模块SceneDetails
|
|
462
|
+select * from sceneDetails where mac='187ed5316484'
|
|
463
|
+delete from sceneDetails where mac='187ed5316484'
|
|
464
|
+
|
|
465
|
+-删除旧模块SceneItem
|
|
466
|
+select * from SceneItem where KaiGuanId in ('276','277','278','279','280','281','282')
|
|
467
|
+delete from SceneItem where KaiGuanId in ('276','277','278','279','280','281','282')
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+-删除旧模块warninghistories
|
|
471
|
+select * from warningHistories where KaiGuanId in ('276','277','278','279','280','281','282')
|
|
472
|
+delete from warningHistories where KaiGuanId in ('276','277','278','279','280','281','282')
|
|
473
|
+
|
|
474
|
+-删除旧模块kaiguanwarning
|
|
475
|
+select * from kaiguanwarning where KaiGuanId in ('276','277','278','279','280','281','282')
|
|
476
|
+delete from KaiGuanWarning where KaiGuanId in ('276','277','278','279','280','281','282')
|
|
477
|
+
|
|
478
|
+-删除旧模块开关
|
|
479
|
+select * from KaiGuan where Mac='187ed5316484'
|
|
480
|
+delete from KaiGuan where Mac='187ed5316484'
|
|
481
|
+
|
|
482
|
+-删除缓存
|
|
483
|
+AllMac
|
|
484
|
+其它相关缓存
|
|
485
|
+
|
|
486
|
+-添加新模块开关
|
|
487
|
+select Mac, LineAddress, Name from KaiGuan where Mac='187ed5328658'
|
|
488
|
+
|
|
489
|
+update KaiGuan Set Name='射灯2' where Mac='187ed5328658' and LineAddress='1';
|
|
490
|
+update KaiGuan Set Name='灯带9' where Mac='187ed5328658' and LineAddress='2';
|
|
491
|
+update KaiGuan Set Name='灯带10' where Mac='187ed5328658' and LineAddress='3';
|
|
492
|
+update KaiGuan Set Name='灯带10' where Mac='187ed5328658' and LineAddress='4';
|
|
493
|
+update KaiGuan Set Name='灯带11' where Mac='187ed5328658' and LineAddress='5';
|
|
494
|
+update KaiGuan Set Name='灯带11' where Mac='187ed5328658' and LineAddress='6';
|
|
495
|
+update KaiGuan Set Name='灯带12' where Mac='187ed5328658' and LineAddress='7';
|
|
496
|
+update KaiGuan Set Name='灯带12' where Mac='187ed5328658' and LineAddress='8';
|
|
497
|
+update KaiGuan Set Name='灯带14' where Mac='187ed5328658' and LineAddress='9';
|
|
498
|
+-设置新模块相关场景
|
|
499
|
+S3上班
|
|
500
|
+S3下班
|
|
501
|
+```
|