鼎鼎知识库
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

vor 4 Jahren
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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. > 更新某个模块的所有开关
  49. ```
  50. update KaiGuan Set Name='插座', Code='1' where Mac='187ed532d2cc' and LineAddress='1';
  51. update KaiGuan Set Name='插座', Code='2' where Mac='187ed532d2cc' and LineAddress='2';
  52. update KaiGuan Set Name='插座', Code='3' where Mac='187ed532d2cc' and LineAddress='3';
  53. update KaiGuan Set Name='插座', Code='4' where Mac='187ed532d2cc' and LineAddress='4';
  54. update KaiGuan Set Name='插座', Code='5' where Mac='187ed532d2cc' and LineAddress='5';
  55. update KaiGuan Set Name='插座', Code='6' where Mac='187ed532d2cc' and LineAddress='6';
  56. update KaiGuan Set Name='插座', Code='7' where Mac='187ed532d2cc' and LineAddress='7';
  57. update KaiGuan Set Name='插座', Code='8' where Mac='187ed532d2cc' and LineAddress='8';
  58. update KaiGuan Set Name='插座', Code='9' where Mac='187ed532d2cc' and LineAddress='9';
  59. update KaiGuan Set Name='插座', Code='10' where Mac='187ed532d2cc' and LineAddress='10';
  60. update KaiGuan Set Name='插座', Code='11' where Mac='187ed532d2cc' and LineAddress='11';
  61. update KaiGuan Set Name='插座', Code='12' where Mac='187ed532d2cc' and LineAddress='12';
  62. update KaiGuan Set Name='插座', Code='13' where Mac='187ed532d2cc' and LineAddress='13';
  63. update KaiGuan Set Name='插座', Code='14' where Mac='187ed532d2cc' and LineAddress='14';
  64. update KaiGuan Set Name='插座', Code='15' where Mac='187ed532d2cc' and LineAddress='15';
  65. update KaiGuan Set Name='插座', Code='16' where Mac='187ed532d2cc' and LineAddress='16';
  66. update KaiGuan Set Name='插座', Code='17' where Mac='187ed532d2cc' and LineAddress='17';
  67. update KaiGuan Set Name='插座', Code='18' where Mac='187ed532d2cc' and LineAddress='18';
  68. update KaiGuan Set Name='插座', Code='19' where Mac='187ed532d2cc' and LineAddress='19';
  69. update KaiGuan Set Name='插座', Code='20' where Mac='187ed532d2cc' and LineAddress='20';
  70. update KaiGuan Set Name='插座', Code='1' where Mac='187ed532d2cc' and LineAddress='1';
  71. update KaiGuan Set Name='筒灯', Code='2' where Mac='187ed532d2cc' and LineAddress='2';
  72. update KaiGuan Set Name='筒灯', Code='3' where Mac='187ed532d2cc' and LineAddress='3';
  73. update KaiGuan Set Name='筒灯', Code='4' where Mac='187ed532d2cc' and LineAddress='4';
  74. update KaiGuan Set Name='筒灯', Code='5' where Mac='187ed532d2cc' and LineAddress='5';
  75. update KaiGuan Set Name='筒灯', Code='6' where Mac='187ed532d2cc' and LineAddress='6';
  76. update KaiGuan Set Name='筒灯', Code='7' where Mac='187ed532d2cc' and LineAddress='7';
  77. update KaiGuan Set Name='筒灯', Code='8' where Mac='187ed532d2cc' and LineAddress='8';
  78. update KaiGuan Set Name='筒灯', Code='9' where Mac='187ed532d2cc' and LineAddress='9';
  79. update KaiGuan Set Name='筒灯', Code='10' where Mac='187ed532d2cc' and LineAddress='10';
  80. update KaiGuan Set Name='筒灯', Code='11' where Mac='187ed532d2cc' and LineAddress='11';
  81. update KaiGuan Set Name='筒灯', Code='12' where Mac='187ed532d2cc' and LineAddress='12';
  82. update KaiGuan Set Name='筒灯', Code='13' where Mac='187ed532d2cc' and LineAddress='13';
  83. update KaiGuan Set Name='筒灯', Code='14' where Mac='187ed532d2cc' and LineAddress='14';
  84. update KaiGuan Set Name='筒灯', Code='15' where Mac='187ed532d2cc' and LineAddress='15';
  85. update KaiGuan Set Name='筒灯', Code='16' where Mac='187ed532d2cc' and LineAddress='16';
  86. update KaiGuan Set Name='筒灯', Code='17' where Mac='187ed532d2cc' and LineAddress='17';
  87. update KaiGuan Set Name='插座', Code='18' where Mac='187ed532d2cc' and LineAddress='18';
  88. update KaiGuan Set Name='插座', Code='19' where Mac='187ed532d2cc' and LineAddress='19';
  89. update KaiGuan Set Name='筒灯', Code='20' where Mac='187ed532d2cc' and LineAddress='20';
  90. ```
  91. > 14E38更换成14784
  92. - 确认缓存中是否有14784的数据
  93. - 记录当前的开关编号,1015-1024
  94. - 删除相关
  95. ```
  96. -- KaiGuan
  97. 编号:1015-1024
  98. Mac:187ed5314e38
  99. 地址:1-10
  100. -- SceneItem
  101. select * from sceneitem where KaiGuanId in ('1015','1016','1017','1018','1019','1020','1021','1022','1023','1024')
  102. -- SceneDetails
  103. select * from scenedetails limit 1
  104. select * from scenedetails where mac='187ed5314e38'
  105. -- warninghistories
  106. select * from warninghistories where KaiGuanId in ('1015','1016','1017','1018','1019','1020','1021','1022','1023','1024')
  107. -- kaiguanwarning
  108. select * from kaiguanwarning where KaiGuanId in ('1015','1016','1017','1018','1019','1020','1021','1022','1023','1024')
  109. -- 删除
  110. delete from scenedetails where mac='187ed5314e38'
  111. delete from sceneitem where KaiGuanId in ('1015','1016','1017','1018','1019','1020','1021','1022','1023','1024')
  112. delete from warninghistories where KaiGuanId in ('1015','1016','1017','1018','1019','1020','1021','1022','1023','1024')
  113. delete from kaiguanwarning where KaiGuanId in ('1015','1016','1017','1018','1019','1020','1021','1022','1023','1024')
  114. delete from kaiguan where Mac='187ed5314e38'
  115. ```
  116. - 添加新开关
  117. ```
  118. select * from kaiguan where Mac='187ed5314c38' sort=3
  119. select * from kaiguan where Mac='187ed5314d98' sort=1
  120. 187ed5314784 sort=2
  121. select * from kaiguan where Mac='187ed5314784'
  122. ```
  123. - 可视化界面-1层F区,尝试是否可以分断合闸
  124. - 添加到场景中
  125. ```