Просмотр исходного кода

修改报警运营后台需求

master
qdjjx 4 лет назад
Родитель
Сommit
c5154d9a74

+ 1129
- 105
实践/安装/2020.09胶州加模块.md
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 134
- 1
实践/安装/2020诺德局域网上云.md Просмотреть файл

@@ -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
+```

+ 106
- 0
实践/安装/更换模块.md Просмотреть файл

@@ -0,0 +1,106 @@
1
+> 10.6 更换成28658
2
+
3
+-局域网找新模块确认指向?已确认。
4
+-新模块是否最新?确实最新。最新。
5
+-确认旧模块是否不再更新?最后一次更新时间在2020-10-06 09:34:19,确实不再更新。
6
+-记录旧模块的开关编号和开关名称?
7
+select * from KaiGuan where Mac='187ed5315034'
8
+in ('260','261','262','263','264','265','266','267','268','269', '270','271','272','273','274','275')
9
+-记录旧模块的场景
10
+-1D区晚上21点关 2,4,6,8,10,14
11
+-1层D区下班关 1,3,5,7,9,11,12,13,16
12
+-1层收银下班 14,15
13
+-1层D区上班开 2,4,5,6,8,10,11,12,13,14,15,16
14
+-1层E区上班早开 1,3,7,9
15
+粮油调味区盘点关 1-10
16
+粮油调味区盘点开 1-10
17
+
18
+-删除旧模块SceneDetails
19
+select * from sceneDetails where mac='187ed5315034'
20
+delete from sceneDetails where mac='187ed5315034'
21
+
22
+-删除旧模块SceneItem
23
+select * from SceneItem where KaiGuanId in ('260','261','262','263','264','265','266','267','268','269', '270','271','272','273','274','275')
24
+delete from SceneItem where KaiGuanId in ('260','261','262','263','264','265','266','267','268','269', '270','271','272','273','274','275')
25
+
26
+
27
+-删除旧模块warninghistories
28
+select * from warningHistories where KaiGuanId in ('260','261','262','263','264','265','266','267','268','269', '270','271','272','273','274','275')
29
+delete from warningHistories where KaiGuanId in ('260','261','262','263','264','265','266','267','268','269', '270','271','272','273','274','275')
30
+
31
+-删除旧模块kaiguanwarning
32
+select * from kaiguanwarning where KaiGuanId in ('260','261','262','263','264','265','266','267','268','269', '270','271','272','273','274','275')
33
+delete from KaiGuanWarning where KaiGuanId in ('260','261','262','263','264','265','266','267','268','269', '270','271','272','273','274','275')
34
+
35
+-删除旧模块开关
36
+select * from KaiGuan where Mac='187ed5315034'
37
+delete from KaiGuan where Mac='187ed5315034'
38
+
39
+-删除缓存
40
+AllMac
41
+其它相关缓存
42
+
43
+
44
+-添加新模块开关
45
+select Mac, LineAddress, Name from KaiGuan where Mac='187ed5328658'
46
+
47
+update KaiGuan Set Name='射灯2' where Mac='187ed5328658' and LineAddress='1';
48
+update KaiGuan Set Name='灯带9' where Mac='187ed5328658' and LineAddress='2';
49
+update KaiGuan Set Name='灯带10' where Mac='187ed5328658' and LineAddress='3';
50
+update KaiGuan Set Name='灯带10' where Mac='187ed5328658' and LineAddress='4';
51
+update KaiGuan Set Name='灯带11' where Mac='187ed5328658' and LineAddress='5';
52
+update KaiGuan Set Name='灯带11' where Mac='187ed5328658' and LineAddress='6';
53
+update KaiGuan Set Name='灯带12' where Mac='187ed5328658' and LineAddress='7';
54
+update KaiGuan Set Name='灯带12' where Mac='187ed5328658' and LineAddress='8';
55
+update KaiGuan Set Name='灯带14' where Mac='187ed5328658' and LineAddress='9';
56
+-设置新模块相关场景
57
+S3上班
58
+S3下班
59
+
60
+
61
+> 14E38更换成14784
62
+
63
+- 确认缓存中是否有14784的数据
64
+- 记录当前的开关编号,1015-1024
65
+- 删除相关
66
+```
67
+-- KaiGuan
68
+编号:1015-1024
69
+Mac:187ed5314e38
70
+地址:1-10
71
+
72
+-- SceneItem
73
+select * from sceneitem where KaiGuanId in ('1015','1016','1017','1018','1019','1020','1021','1022','1023','1024')
74
+
75
+-- SceneDetails
76
+select * from scenedetails limit 1
77
+select * from scenedetails where mac='187ed5314e38'
78
+
79
+-- warninghistories
80
+select * from warninghistories where KaiGuanId in ('1015','1016','1017','1018','1019','1020','1021','1022','1023','1024')
81
+
82
+-- kaiguanwarning
83
+select * from kaiguanwarning where KaiGuanId in ('1015','1016','1017','1018','1019','1020','1021','1022','1023','1024')
84
+
85
+-- 删除
86
+delete from scenedetails where mac='187ed5314e38'
87
+
88
+delete from sceneitem where KaiGuanId in ('1015','1016','1017','1018','1019','1020','1021','1022','1023','1024')
89
+
90
+delete from warninghistories where KaiGuanId in ('1015','1016','1017','1018','1019','1020','1021','1022','1023','1024')
91
+
92
+delete from kaiguanwarning where KaiGuanId in ('1015','1016','1017','1018','1019','1020','1021','1022','1023','1024')
93
+
94
+delete from kaiguan where Mac='187ed5314e38'
95
+```
96
+- 添加新开关
97
+
98
+```
99
+select * from kaiguan where Mac='187ed5314c38' sort=3
100
+select * from kaiguan where Mac='187ed5314d98' sort=1
101
+187ed5314784 sort=2
102
+select * from kaiguan where Mac='187ed5314784'
103
+```
104
+- 可视化界面-1层F区,尝试是否可以分断合闸
105
+- 添加到场景中
106
+```

+ 11
- 2
需求/报警版管理后台/需求.md Просмотреть файл

@@ -46,6 +46,7 @@
46 46
 - 电工未接单报警:即查看WarningStatus='Dispatched'的报警
47 47
 - 电工已接单报警:即查看WarningStatus='Accepted'的报警
48 48
 - 电工已处理报警:即查看WarningStatus='Repaired'的报警
49
+- 报警已闭环
49 50
 
50 51
 # 电工
51 52
 
@@ -58,14 +59,22 @@
58 59
 电工可以点击已处理按钮,让报警状态变成已处理,即WarningStatus='Repaired',并且,RepairTime=当前时间
59 60
 ```
60 61
 - 已处理报警:即查看WarningStatus='Repaired'的报警
62
+- 报警已闭环
61 63
 
62 64
 # 管理员
63 65
 
64 66
 - 客户未确认报警:即查看WarningStatus='Created'的报警
67
+- 客户已确认报警:
68
+- 未派单报警:
69
+- 电工未接单报警:即查看WarningStatus='Dispatched'的报警
70
+- 电工已接单报警:即查看WarningStatus='Accepted'的报警
71
+- 电工已处理报警:即查看WarningStatus='Repaired'的报警,加一个"系统已确认"按
72
+- 报警已闭环
73
+- 人员管理
65 74
 ```
66
-管理员可以点击确认维修按钮,让报警状态变成已确认维修,即WarningStatus='ApplyConfirmed',并且,ApplyConfirmedTime=当前时间
75
+- 客服管理
76
+- 电工管理
67 77
 ```
68
-- 客户已确认报警:即查看WarningStatus='ApplyConfirmed'之后的报警
69 78
 
70 79
 # 关于warnings表中的BreakerId
71 80
 

Загрузка…
Отмена
Сохранить