鼎鼎知识库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

更换模块.md 4.2KB

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