鼎鼎知识库
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.

2020淮安添加模块.md 28KB

пре 4 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  1. - 准备
  2. ```
  3. -- 查找模块:sudo arp-scan -I enp3s0 --localnet
  4. -- 指向地址:192.168.8.1:8080/ebx-bishop/data/carry
  5. -- 服务器:192.168.18.54 dingding teche123
  6. -- 管理员登录:13800000000 TecheFwd2018
  7. -- 时序数据库:use rlq_huaian_7_10;
  8. ```
  9. - 新添加模块
  10. ```
  11. -- 15层西箱,1EE44:服务器重指向并重启,添加开关,187ED531EE44,查看可视化界面,创建局域网云端时序子表,
  12. 187ed531e9cc 9个线路 东箱
  13. select Mac, LineAddress, Name from KaiGuan where Mac='187ed531e9cc'
  14. update KaiGuan set Name='采购' where Mac='187ed531e9cc' and LineAddress=1;
  15. update KaiGuan set Name='总经理' where Mac='187ed531e9cc' and LineAddress=2;
  16. update KaiGuan set Name='总经办' where Mac='187ed531e9cc' and LineAddress=3;
  17. update KaiGuan set Name='接待室' where Mac='187ed531e9cc' and LineAddress=4;
  18. update KaiGuan set Name='企划' where Mac='187ed531e9cc' and LineAddress=5;
  19. update KaiGuan set Name='财务' where Mac='187ed531e9cc' and LineAddress=6;
  20. update KaiGuan set Name='企管' where Mac='187ed531e9cc' and LineAddress=7;
  21. 187ed531ee44 6个线路 西箱
  22. select Mac, LineAddress, Name from KaiGuan where Mac='187ed531ee44'
  23. update KaiGuan set Name='公共照明' where Mac='187ed531ee44' and LineAddress=2;
  24. update KaiGuan set Name='公共插座' where Mac='187ed531ee44' and LineAddress=3;
  25. update KaiGuan set Name='公共卫生间' where Mac='187ed531ee44' and LineAddress=5;
  26. -- 11层东箱,1788C:已经在缓存,添加开关,删除缓存,可视化界面,创建局域网和云端时序子表,22个线路
  27. select Mac, LineAddress, Name from KaiGuan where Mac='187ed531788c'
  28. update KaiGuan set Name='东4' where Mac='187ed531788c' and LineAddress=1;
  29. update KaiGuan set Name='东2' where Mac='187ed531788c' and LineAddress=2;
  30. update KaiGuan set Name='东3' where Mac='187ed531788c' and LineAddress=3;
  31. update KaiGuan set Name='东1' where Mac='187ed531788c' and LineAddress=4;
  32. update KaiGuan set Name='东5' where Mac='187ed531788c' and LineAddress=5;
  33. update KaiGuan set Name='东6' where Mac='187ed531788c' and LineAddress=6;
  34. update KaiGuan set Name='东7' where Mac='187ed531788c' and LineAddress=7;
  35. update KaiGuan set Name='东8' where Mac='187ed531788c' and LineAddress=8;
  36. update KaiGuan set Name='东9' where Mac='187ed531788c' and LineAddress=9;
  37. update KaiGuan set Name='东10' where Mac='187ed531788c' and LineAddress=10;
  38. update KaiGuan set Name='东11' where Mac='187ed531788c' and LineAddress=11;
  39. update KaiGuan set Name='东16' where Mac='187ed531788c' and LineAddress=12;
  40. update KaiGuan set Name='东13' where Mac='187ed531788c' and LineAddress=13;
  41. update KaiGuan set Name='东14' where Mac='187ed531788c' and LineAddress=14;
  42. update KaiGuan set Name='东15' where Mac='187ed531788c' and LineAddress=15;
  43. update KaiGuan set Name='东12' where Mac='187ed531788c' and LineAddress=16;
  44. update KaiGuan set Name='北东1' where Mac='187ed531788c' and LineAddress=17;
  45. update KaiGuan set Name='北东2' where Mac='187ed531788c' and LineAddress=18;
  46. update KaiGuan set Name='北东3' where Mac='187ed531788c' and LineAddress=19;
  47. update KaiGuan set Name='北东4' where Mac='187ed531788c' and LineAddress=20;
  48. -- 11层西箱,22BC0:服务器重指向并重启,添加开关,删除缓存,可视化界面,创建局域网和云端时序子表,6个线路
  49. select Mac, LineAddress, Name from KaiGuan where Mac='187ed5322bc0'
  50. update KaiGuan set Name='公共照明' where Mac='187ed5322bc0' and LineAddress=1;
  51. update KaiGuan set Name='公共插座' where Mac='187ed5322bc0' and LineAddress=2;
  52. -- 14层西箱,1A3FC:服务器重指向并重启,添加开关,删除缓存,可视化界面,创建局域网和云端时序子表,6个线路
  53. select Mac, LineAddress, Name from KaiGuan where Mac='187ed531a3fc'
  54. update KaiGuan set Name='公共插座' where Mac='187ed531a3fc' and LineAddress=1;
  55. update KaiGuan set Name='公共照明' where Mac='187ed531a3fc' and LineAddress=2;
  56. update KaiGuan set Name='公共卫生间' where Mac='187ed531a3fc' and LineAddress=4;
  57. -- 14层东箱,177D0:已经指向到服务器,已经在缓存,但不在模块界面也不在数据库,也不是缓存实时数据中,重启该模块
  58. -- 16层西箱,1E310:服务器重指向并重启,添加开关,删除缓存,可视化界面,创建局域网和云端时序子表,6个线路
  59. select Mac, LineAddress, Name from KaiGuan where Mac='187ed531e310'
  60. update KaiGuan set Name='公共插座' where Mac='187ed531e310' and LineAddress=1;
  61. update KaiGuan set Name='公共照明' where Mac='187ed531e310' and LineAddress=2;
  62. update KaiGuan set Name='公共卫生间' where Mac='187ed531e310' and LineAddress=3;
  63. -- 16层东箱,1F144:服务器重指向并重启,添加开关,删除缓存,可视化界面,创建局域网和云端时序子表,8个线路
  64. select Mac, LineAddress, Name from KaiGuan where Mac='187ed531f144'
  65. update KaiGuan set Name='东南1东会议室' where Mac='187ed531f144' and LineAddress=1;
  66. update KaiGuan set Name='东南2' where Mac='187ed531f144' and LineAddress=2;
  67. update KaiGuan set Name='南会议室' where Mac='187ed531f144' and LineAddress=3;
  68. update KaiGuan set Name='东南3' where Mac='187ed531f144' and LineAddress=4;
  69. update KaiGuan set Name='东北1东会议室' where Mac='187ed531f144' and LineAddress=6;
  70. update KaiGuan set Name='北会议室' where Mac='187ed531f144' and LineAddress=7;
  71. -- 10层门锁了
  72. -- 5层西箱,1EFAC:服务器重指向并重启,添加开关,删除缓存,可视化界面,创建局域网和云端时序子表,5个线路
  73. select Mac, LineAddress, Name from KaiGuan where Mac='187ed531efac'
  74. update KaiGuan set Name='公共照明' where Mac='187ed531efac' and LineAddress=1;
  75. update KaiGuan set Name='公共插座' where Mac='187ed531efac' and LineAddress=2;
  76. -- 7层西箱,1D828:服务器重指向并重启,添加开关,187ED531D828,查看可视化界面,创建局域网云端时序子表,
  77. 187ED531D828 西箱 7个线路
  78. select Mac, LineAddress, Name from KaiGuan where Mac='187ED531D828'
  79. update KaiGuan set Name='公共照明' where Mac='187ED531D828' and LineAddress=1;
  80. update KaiGuan set Name='公共插座' where Mac='187ED531D828' and LineAddress=3;
  81. 187ed5318c48 北箱 24个线路
  82. select Mac, LineAddress, Name from KaiGuan where Mac='187ed5318c48'
  83. update KaiGuan set Name='东南1' where Mac='187ed5318c48' and LineAddress=1;
  84. update KaiGuan set Name='东南2' where Mac='187ed5318c48' and LineAddress=2;
  85. update KaiGuan set Name='东南3' where Mac='187ed5318c48' and LineAddress=3;
  86. update KaiGuan set Name='东南4' where Mac='187ed5318c48' and LineAddress=4;
  87. update KaiGuan set Name='东南5' where Mac='187ed5318c48' and LineAddress=5;
  88. update KaiGuan set Name='东南6' where Mac='187ed5318c48' and LineAddress=6;
  89. update KaiGuan set Name='东南7' where Mac='187ed5318c48' and LineAddress=7;
  90. update KaiGuan set Name='东南8' where Mac='187ed5318c48' and LineAddress=8;
  91. update KaiGuan set Name='东南9' where Mac='187ed5318c48' and LineAddress=9;
  92. update KaiGuan set Name='东南10' where Mac='187ed5318c48' and LineAddress=10;
  93. update KaiGuan set Name='东南11' where Mac='187ed5318c48' and LineAddress=11;
  94. update KaiGuan set Name='东南12' where Mac='187ed5318c48' and LineAddress=12;
  95. update KaiGuan set Name='东南13' where Mac='187ed5318c48' and LineAddress=13;
  96. update KaiGuan set Name='东南14' where Mac='187ed5318c48' and LineAddress=14;
  97. update KaiGuan set Name='东南15' where Mac='187ed5318c48' and LineAddress=15;
  98. update KaiGuan set Name='东南16' where Mac='187ed5318c48' and LineAddress=16;
  99. update KaiGuan set Name='东南17' where Mac='187ed5318c48' and LineAddress=17;
  100. update KaiGuan set Name='东南18' where Mac='187ed5318c48' and LineAddress=18;
  101. update KaiGuan set Name='东北1' where Mac='187ed5318c48' and LineAddress=19;
  102. update KaiGuan set Name='东北2' where Mac='187ed5318c48' and LineAddress=20;
  103. update KaiGuan set Name='东北3' where Mac='187ed5318c48' and LineAddress=21;
  104. update KaiGuan set Name='东北4' where Mac='187ed5318c48' and LineAddress=22;
  105. -- 8层西箱,1DF08:服务器重指向并重启,添加开关,删除缓存,可视化界面,创建局域网和云端时序子表,5个线路
  106. select Mac, LineAddress, Name from KaiGuan where Mac='187ed531df08'
  107. update KaiGuan set Name='公共照明' where Mac='187ed531df08' and LineAddress=1;
  108. update KaiGuan set Name='公共插座' where Mac='187ed531df08' and LineAddress=2;
  109. -- 9层西箱,228A4:已经在缓存,添加开关,删除缓存,可视化界面,创建局域网和云端时序子表,6个线路
  110. select Mac, LineAddress, Name from KaiGuan where Mac='187ed53228a4'
  111. update KaiGuan set Name='公共照明' where Mac='187ed53228a4' and LineAddress=1;
  112. update KaiGuan set Name='公共插座' where Mac='187ed53228a4' and LineAddress=2;
  113. -- 4层西箱,22B94,服务器重指向并重启添加开关,删除缓存,可视化界面,创建局域网和云端时序子表,5个线路
  114. select Mac, LineAddress, Name from KaiGuan where Mac='187ed5322b94'
  115. update KaiGuan set Name='公共照明' where Mac='187ed5322b94' and LineAddress=1;
  116. update KaiGuan set Name='公共插座' where Mac='187ed5322b94' and LineAddress=2;
  117. ```
  118. - 以前的模块
  119. ```
  120. -- 2层北箱,187ed531fbc4,8个
  121. select Mac, LineAddress, Name from KaiGuan where Mac='187ed531fbc4'
  122. update KaiGuan set Name='东北1' where Mac='187ed531fbc4' and LineAddress=1;
  123. update KaiGuan set Name='西北1' where Mac='187ed531fbc4' and LineAddress=2;
  124. update KaiGuan set Name='东南1' where Mac='187ed531fbc4' and LineAddress=3;
  125. update KaiGuan set Name='东南2' where Mac='187ed531fbc4' and LineAddress=4;
  126. update KaiGuan set Name='东南3' where Mac='187ed531fbc4' and LineAddress=5;
  127. update KaiGuan set Name='东南4' where Mac='187ed531fbc4' and LineAddress=6;
  128. update KaiGuan set Name='东南5' where Mac='187ed531fbc4' and LineAddress=7;
  129. -- 2层西箱,没有
  130. -- 4层北箱,187ed531e260
  131. select Mac, LineAddress, Name from KaiGuan where Mac='187ed531e260'
  132. update KaiGuan set Name='东南1' where Mac='187ed531e260' and LineAddress=1;
  133. update KaiGuan set Name='东南2' where Mac='187ed531e260' and LineAddress=2;
  134. update KaiGuan set Name='东南3' where Mac='187ed531e260' and LineAddress=3;
  135. update KaiGuan set Name='东南4' where Mac='187ed531e260' and LineAddress=4;
  136. update KaiGuan set Name='东南5' where Mac='187ed531e260' and LineAddress=5;
  137. update KaiGuan set Name='东南6' where Mac='187ed531e260' and LineAddress=6;
  138. update KaiGuan set Name='东南7' where Mac='187ed531e260' and LineAddress=7;
  139. update KaiGuan set Name='东南8' where Mac='187ed531e260' and LineAddress=8;
  140. update KaiGuan set Name='东南9' where Mac='187ed531e260' and LineAddress=9;
  141. update KaiGuan set Name='东南10' where Mac='187ed531e260' and LineAddress=10;
  142. update KaiGuan set Name='东南11' where Mac='187ed531e260' and LineAddress=11;
  143. update KaiGuan set Name='东南12' where Mac='187ed531e260' and LineAddress=12;
  144. update KaiGuan set Name='东南13' where Mac='187ed531e260' and LineAddress=13;
  145. update KaiGuan set Name='东南14' where Mac='187ed531e260' and LineAddress=14;
  146. update KaiGuan set Name='东南15' where Mac='187ed531e260' and LineAddress=15;
  147. update KaiGuan set Name='东南16' where Mac='187ed531e260' and LineAddress=16;
  148. update KaiGuan set Name='东南17' where Mac='187ed531e260' and LineAddress=17;
  149. update KaiGuan set Name='东南18' where Mac='187ed531e260' and LineAddress=18;
  150. update KaiGuan set Name='东北1' where Mac='187ed531e260' and LineAddress=19;
  151. update KaiGuan set Name='东北2' where Mac='187ed531e260' and LineAddress=20;
  152. update KaiGuan set Name='东北3' where Mac='187ed531e260' and LineAddress=21;
  153. update KaiGuan set Name='东北4' where Mac='187ed531e260' and LineAddress=22;
  154. -- 5层北箱,187ed5325394
  155. select Mac, LineAddress, Name from KaiGuan where Mac='187ed5325394'
  156. update KaiGuan set Name='东南1' where Mac='187ed5325394' and LineAddress=1;
  157. update KaiGuan set Name='东南2' where Mac='187ed5325394' and LineAddress=2;
  158. update KaiGuan set Name='东南3' where Mac='187ed5325394' and LineAddress=3;
  159. update KaiGuan set Name='东南4' where Mac='187ed5325394' and LineAddress=5;
  160. update KaiGuan set Name='东南6' where Mac='187ed5325394' and LineAddress=6;
  161. update KaiGuan set Name='东南5' where Mac='187ed5325394' and LineAddress=7;
  162. update KaiGuan set Name='东南7' where Mac='187ed5325394' and LineAddress=8;
  163. update KaiGuan set Name='东南8' where Mac='187ed5325394' and LineAddress=9;
  164. update KaiGuan set Name='东南9' where Mac='187ed5325394' and LineAddress=10;
  165. update KaiGuan set Name='东南10' where Mac='187ed5325394' and LineAddress=11;
  166. update KaiGuan set Name='东南11' where Mac='187ed5325394' and LineAddress=12;
  167. update KaiGuan set Name='东南12' where Mac='187ed5325394' and LineAddress=13;
  168. update KaiGuan set Name='东南13' where Mac='187ed5325394' and LineAddress=14;
  169. update KaiGuan set Name='东南14' where Mac='187ed5325394' and LineAddress=15;
  170. update KaiGuan set Name='东南15' where Mac='187ed5325394' and LineAddress=16;
  171. update KaiGuan set Name='东南16' where Mac='187ed5325394' and LineAddress=17;
  172. update KaiGuan set Name='东北3' where Mac='187ed5325394' and LineAddress=18;
  173. update KaiGuan set Name='东南18' where Mac='187ed5325394' and LineAddress=19;
  174. update KaiGuan set Name='东北1' where Mac='187ed5325394' and LineAddress=20;
  175. update KaiGuan set Name='东北2' where Mac='187ed5325394' and LineAddress=21;
  176. update KaiGuan set Name='东南17' where Mac='187ed5325394' and LineAddress=22;
  177. update KaiGuan set Name='东北4' where Mac='187ed5325394' and LineAddress=23;
  178. -- 6层北箱,187ed5323694,很多个线路
  179. select Mac, LineAddress, Name from KaiGuan where Mac='187ed5323694'
  180. update KaiGuan set Name='东南1' where Mac='187ed5323694' and LineAddress=1;
  181. update KaiGuan set Name='东南2' where Mac='187ed5323694' and LineAddress=2;
  182. update KaiGuan set Name='东南3' where Mac='187ed5323694' and LineAddress=3;
  183. update KaiGuan set Name='东南4' where Mac='187ed5323694' and LineAddress=4;
  184. update KaiGuan set Name='东南5' where Mac='187ed5323694' and LineAddress=5;
  185. update KaiGuan set Name='东南6' where Mac='187ed5323694' and LineAddress=6;
  186. update KaiGuan set Name='东南7' where Mac='187ed5323694' and LineAddress=7;
  187. update KaiGuan set Name='东南8' where Mac='187ed5323694' and LineAddress=8;
  188. update KaiGuan set Name='东南9' where Mac='187ed5323694' and LineAddress=9;
  189. update KaiGuan set Name='东南10' where Mac='187ed5323694' and LineAddress=10;
  190. update KaiGuan set Name='东南11' where Mac='187ed5323694' and LineAddress=11;
  191. update KaiGuan set Name='东南12' where Mac='187ed5323694' and LineAddress=12;
  192. update KaiGuan set Name='东南13' where Mac='187ed5323694' and LineAddress=13;
  193. update KaiGuan set Name='东南14' where Mac='187ed5323694' and LineAddress=14;
  194. update KaiGuan set Name='东南15' where Mac='187ed5323694' and LineAddress=15;
  195. update KaiGuan set Name='东南16' where Mac='187ed5323694' and LineAddress=16;
  196. update KaiGuan set Name='东南17' where Mac='187ed5323694' and LineAddress=17;
  197. update KaiGuan set Name='东南18' where Mac='187ed5323694' and LineAddress=18;
  198. update KaiGuan set Name='东北1' where Mac='187ed5323694' and LineAddress=19;
  199. update KaiGuan set Name='东北2' where Mac='187ed5323694' and LineAddress=20;
  200. update KaiGuan set Name='东北3' where Mac='187ed5323694' and LineAddress=21;
  201. update KaiGuan set Name='东北4' where Mac='187ed5323694' and LineAddress=22;
  202. -- 6层西箱,187ed53242fc,几个线路
  203. select Mac, LineAddress, Name from KaiGuan where Mac='187ed53242fc'
  204. update KaiGuan set Name='公共照明' where Mac='187ed53242fc' and LineAddress=1;
  205. update KaiGuan set Name='公共插座' where Mac='187ed53242fc' and LineAddress=2;
  206. -- 8层北箱,187ed531e9f8,很多线路
  207. select Mac, LineAddress, Name from KaiGuan where Mac='187ed531e9f8'
  208. update KaiGuan set Name='东南1' where Mac='187ed531e9f8' and LineAddress=1;
  209. update KaiGuan set Name='东南2' where Mac='187ed531e9f8' and LineAddress=2;
  210. update KaiGuan set Name='东南3' where Mac='187ed531e9f8' and LineAddress=3;
  211. update KaiGuan set Name='东南4' where Mac='187ed531e9f8' and LineAddress=4;
  212. update KaiGuan set Name='东南5' where Mac='187ed531e9f8' and LineAddress=5;
  213. update KaiGuan set Name='东南6' where Mac='187ed531e9f8' and LineAddress=6;
  214. update KaiGuan set Name='东南7' where Mac='187ed531e9f8' and LineAddress=7;
  215. update KaiGuan set Name='东南8' where Mac='187ed531e9f8' and LineAddress=8;
  216. update KaiGuan set Name='东南9' where Mac='187ed531e9f8' and LineAddress=9;
  217. update KaiGuan set Name='东南10' where Mac='187ed531e9f8' and LineAddress=10;
  218. update KaiGuan set Name='东南11' where Mac='187ed531e9f8' and LineAddress=11;
  219. update KaiGuan set Name='东南12' where Mac='187ed531e9f8' and LineAddress=12;
  220. update KaiGuan set Name='东南13' where Mac='187ed531e9f8' and LineAddress=13;
  221. update KaiGuan set Name='东南14' where Mac='187ed531e9f8' and LineAddress=14;
  222. update KaiGuan set Name='东南15' where Mac='187ed531e9f8' and LineAddress=15;
  223. update KaiGuan set Name='东南16' where Mac='187ed531e9f8' and LineAddress=16;
  224. update KaiGuan set Name='东南17' where Mac='187ed531e9f8' and LineAddress=17;
  225. update KaiGuan set Name='东南18' where Mac='187ed531e9f8' and LineAddress=18;
  226. update KaiGuan set Name='东北1' where Mac='187ed531e9f8' and LineAddress=19;
  227. update KaiGuan set Name='东北2' where Mac='187ed531e9f8' and LineAddress=20;
  228. update KaiGuan set Name='东北3' where Mac='187ed531e9f8' and LineAddress=21;
  229. update KaiGuan set Name='东北4' where Mac='187ed531e9f8' and LineAddress=22;
  230. -- 9层北箱,187ed531e5fc,很多线路
  231. select Mac, LineAddress, Name from KaiGuan where Mac='187ed531e5fc'
  232. update KaiGuan set Name='东南1' where Mac='187ed531e5fc' and LineAddress=1;
  233. update KaiGuan set Name='东南2' where Mac='187ed531e5fc' and LineAddress=2;
  234. update KaiGuan set Name='东南3' where Mac='187ed531e5fc' and LineAddress=3;
  235. update KaiGuan set Name='东南4' where Mac='187ed531e5fc' and LineAddress=4;
  236. update KaiGuan set Name='东南5' where Mac='187ed531e5fc' and LineAddress=5;
  237. update KaiGuan set Name='东南6' where Mac='187ed531e5fc' and LineAddress=6;
  238. update KaiGuan set Name='东南7' where Mac='187ed531e5fc' and LineAddress=7;
  239. update KaiGuan set Name='东南8' where Mac='187ed531e5fc' and LineAddress=8;
  240. update KaiGuan set Name='东南9' where Mac='187ed531e5fc' and LineAddress=9;
  241. update KaiGuan set Name='东南10' where Mac='187ed531e5fc' and LineAddress=10;
  242. update KaiGuan set Name='东南11' where Mac='187ed531e5fc' and LineAddress=11;
  243. update KaiGuan set Name='东南12' where Mac='187ed531e5fc' and LineAddress=12;
  244. update KaiGuan set Name='东南13' where Mac='187ed531e5fc' and LineAddress=13;
  245. update KaiGuan set Name='东南14' where Mac='187ed531e5fc' and LineAddress=14;
  246. update KaiGuan set Name='东南15' where Mac='187ed531e5fc' and LineAddress=17;
  247. update KaiGuan set Name='东南16' where Mac='187ed531e5fc' and LineAddress=18;
  248. update KaiGuan set Name='东南17' where Mac='187ed531e5fc' and LineAddress=19;
  249. update KaiGuan set Name='东南18' where Mac='187ed531e5fc' and LineAddress=20;
  250. update KaiGuan set Name='东北1' where Mac='187ed531e5fc' and LineAddress=21;
  251. update KaiGuan set Name='东北2' where Mac='187ed531e5fc' and LineAddress=22;
  252. update KaiGuan set Name='东北3' where Mac='187ed531e5fc' and LineAddress=23;
  253. update KaiGuan set Name='东北4' where Mac='187ed531e5fc' and LineAddress=24;
  254. ```
  255. > 暂存问题
  256. ```
  257. -- 14层东箱,177D0:已经指向到服务器,已经在缓存,但不在模块界面也不在数据库,也不是缓存实时数据中,重启该模块
  258. -- 10层门锁了
  259. ```
  260. > 4-8层改名
  261. ```
  262. -- 4层:187ed531e260
  263. select Mac, LineAddress, Name from KaiGuan where Mac='187ed531e260'
  264. update KaiGuan set Name='410' where Mac='187ed531e260' and LineAddress=1;
  265. update KaiGuan set Name='408' where Mac='187ed531e260' and LineAddress=2;
  266. update KaiGuan set Name='406' where Mac='187ed531e260' and LineAddress=3;
  267. update KaiGuan set Name='402' where Mac='187ed531e260' and LineAddress=4;
  268. update KaiGuan set Name='401' where Mac='187ed531e260' and LineAddress=5;
  269. update KaiGuan set Name='403' where Mac='187ed531e260' and LineAddress=6;
  270. update KaiGuan set Name='405' where Mac='187ed531e260' and LineAddress=7;
  271. update KaiGuan set Name='407' where Mac='187ed531e260' and LineAddress=8;
  272. update KaiGuan set Name='409' where Mac='187ed531e260' and LineAddress=9;
  273. update KaiGuan set Name='411' where Mac='187ed531e260' and LineAddress=10;
  274. update KaiGuan set Name='412' where Mac='187ed531e260' and LineAddress=11;
  275. update KaiGuan set Name='413' where Mac='187ed531e260' and LineAddress=12;
  276. update KaiGuan set Name='415' where Mac='187ed531e260' and LineAddress=13;
  277. update KaiGuan set Name='416' where Mac='187ed531e260' and LineAddress=14;
  278. update KaiGuan set Name='416' where Mac='187ed531e260' and LineAddress=15;
  279. update KaiGuan set Name='419' where Mac='187ed531e260' and LineAddress=16;
  280. update KaiGuan set Name='421' where Mac='187ed531e260' and LineAddress=17;
  281. update KaiGuan set Name='423' where Mac='187ed531e260' and LineAddress=18;
  282. update KaiGuan set Name='426' where Mac='187ed531e260' and LineAddress=19;
  283. update KaiGuan set Name='422' where Mac='187ed531e260' and LineAddress=20;
  284. update KaiGuan set Name='420' where Mac='187ed531e260' and LineAddress=21;
  285. update KaiGuan set Name='418' where Mac='187ed531e260' and LineAddress=22;
  286. -- 5层:187ed5325394
  287. select Mac, LineAddress, Name from KaiGuan where Mac='187ed5325394'
  288. update KaiGuan set Name='510' where Mac='187ed5325394' and LineAddress=1;
  289. update KaiGuan set Name='508' where Mac='187ed5325394' and LineAddress=2;
  290. update KaiGuan set Name='506' where Mac='187ed5325394' and LineAddress=3;
  291. update KaiGuan set Name='502' where Mac='187ed5325394' and LineAddress=5;
  292. update KaiGuan set Name='501' where Mac='187ed5325394' and LineAddress=6;
  293. update KaiGuan set Name='503' where Mac='187ed5325394' and LineAddress=7;
  294. update KaiGuan set Name='505' where Mac='187ed5325394' and LineAddress=8;
  295. update KaiGuan set Name='507' where Mac='187ed5325394' and LineAddress=9;
  296. update KaiGuan set Name='509' where Mac='187ed5325394' and LineAddress=10;
  297. update KaiGuan set Name='511' where Mac='187ed5325394' and LineAddress=11;
  298. update KaiGuan set Name='512' where Mac='187ed5325394' and LineAddress=12;
  299. update KaiGuan set Name='513' where Mac='187ed5325394' and LineAddress=13;
  300. update KaiGuan set Name='515' where Mac='187ed5325394' and LineAddress=14;
  301. update KaiGuan set Name='516' where Mac='187ed5325394' and LineAddress=15;
  302. update KaiGuan set Name='516' where Mac='187ed5325394' and LineAddress=16;
  303. update KaiGuan set Name='519' where Mac='187ed5325394' and LineAddress=17;
  304. update KaiGuan set Name='521' where Mac='187ed5325394' and LineAddress=18;
  305. update KaiGuan set Name='523' where Mac='187ed5325394' and LineAddress=19;
  306. update KaiGuan set Name='526' where Mac='187ed5325394' and LineAddress=20;
  307. update KaiGuan set Name='522' where Mac='187ed5325394' and LineAddress=21;
  308. update KaiGuan set Name='520' where Mac='187ed5325394' and LineAddress=22;
  309. update KaiGuan set Name='518' where Mac='187ed5325394' and LineAddress=23;
  310. -- 6层:187ed5323694
  311. select Mac, LineAddress, Name from KaiGuan where Mac='187ed5323694'
  312. update KaiGuan set Name='610' where Mac='187ed5323694' and LineAddress=1;
  313. update KaiGuan set Name='608' where Mac='187ed5323694' and LineAddress=2;
  314. update KaiGuan set Name='606' where Mac='187ed5323694' and LineAddress=3;
  315. update KaiGuan set Name='602' where Mac='187ed5323694' and LineAddress=4;
  316. update KaiGuan set Name='601' where Mac='187ed5323694' and LineAddress=5;
  317. update KaiGuan set Name='603' where Mac='187ed5323694' and LineAddress=6;
  318. update KaiGuan set Name='605' where Mac='187ed5323694' and LineAddress=7;
  319. update KaiGuan set Name='607' where Mac='187ed5323694' and LineAddress=8;
  320. update KaiGuan set Name='609' where Mac='187ed5323694' and LineAddress=9;
  321. update KaiGuan set Name='611' where Mac='187ed5323694' and LineAddress=10;
  322. update KaiGuan set Name='612' where Mac='187ed5323694' and LineAddress=11;
  323. update KaiGuan set Name='613' where Mac='187ed5323694' and LineAddress=12;
  324. update KaiGuan set Name='615' where Mac='187ed5323694' and LineAddress=13;
  325. update KaiGuan set Name='616' where Mac='187ed5323694' and LineAddress=14;
  326. update KaiGuan set Name='616' where Mac='187ed5323694' and LineAddress=15;
  327. update KaiGuan set Name='619' where Mac='187ed5323694' and LineAddress=16;
  328. update KaiGuan set Name='621' where Mac='187ed5323694' and LineAddress=17;
  329. update KaiGuan set Name='623' where Mac='187ed5323694' and LineAddress=18;
  330. update KaiGuan set Name='626' where Mac='187ed5323694' and LineAddress=19;
  331. update KaiGuan set Name='622' where Mac='187ed5323694' and LineAddress=20;
  332. update KaiGuan set Name='620' where Mac='187ed5323694' and LineAddress=21;
  333. update KaiGuan set Name='618' where Mac='187ed5323694' and LineAddress=22;
  334. -- 7层:187ed5318c48
  335. select Mac, LineAddress, Name from KaiGuan where Mac='187ed5318c48'
  336. update KaiGuan set Name='710' where Mac='187ed5318c48' and LineAddress=1;
  337. update KaiGuan set Name='708' where Mac='187ed5318c48' and LineAddress=2;
  338. update KaiGuan set Name='706' where Mac='187ed5318c48' and LineAddress=3;
  339. update KaiGuan set Name='702' where Mac='187ed5318c48' and LineAddress=4;
  340. update KaiGuan set Name='701' where Mac='187ed5318c48' and LineAddress=5;
  341. update KaiGuan set Name='703' where Mac='187ed5318c48' and LineAddress=6;
  342. update KaiGuan set Name='705' where Mac='187ed5318c48' and LineAddress=7;
  343. update KaiGuan set Name='707' where Mac='187ed5318c48' and LineAddress=8;
  344. update KaiGuan set Name='709' where Mac='187ed5318c48' and LineAddress=9;
  345. update KaiGuan set Name='711' where Mac='187ed5318c48' and LineAddress=10;
  346. update KaiGuan set Name='712' where Mac='187ed5318c48' and LineAddress=11;
  347. update KaiGuan set Name='713' where Mac='187ed5318c48' and LineAddress=12;
  348. update KaiGuan set Name='715' where Mac='187ed5318c48' and LineAddress=13;
  349. update KaiGuan set Name='716' where Mac='187ed5318c48' and LineAddress=14;
  350. update KaiGuan set Name='716' where Mac='187ed5318c48' and LineAddress=15;
  351. update KaiGuan set Name='719' where Mac='187ed5318c48' and LineAddress=16;
  352. update KaiGuan set Name='721' where Mac='187ed5318c48' and LineAddress=17;
  353. update KaiGuan set Name='723' where Mac='187ed5318c48' and LineAddress=18;
  354. update KaiGuan set Name='726' where Mac='187ed5318c48' and LineAddress=19;
  355. update KaiGuan set Name='722' where Mac='187ed5318c48' and LineAddress=20;
  356. update KaiGuan set Name='720' where Mac='187ed5318c48' and LineAddress=21;
  357. update KaiGuan set Name='718' where Mac='187ed5318c48' and LineAddress=22;
  358. -- 8层:187ed531e9f8
  359. select Mac, LineAddress, Name from KaiGuan where Mac='187ed531e9f8'
  360. update KaiGuan set Name='810' where Mac='187ed531e9f8' and LineAddress=1;
  361. update KaiGuan set Name='808' where Mac='187ed531e9f8' and LineAddress=2;
  362. update KaiGuan set Name='806' where Mac='187ed531e9f8' and LineAddress=3;
  363. update KaiGuan set Name='802' where Mac='187ed531e9f8' and LineAddress=4;
  364. update KaiGuan set Name='801' where Mac='187ed531e9f8' and LineAddress=5;
  365. update KaiGuan set Name='803' where Mac='187ed531e9f8' and LineAddress=6;
  366. update KaiGuan set Name='805' where Mac='187ed531e9f8' and LineAddress=7;
  367. update KaiGuan set Name='807' where Mac='187ed531e9f8' and LineAddress=8;
  368. update KaiGuan set Name='809' where Mac='187ed531e9f8' and LineAddress=9;
  369. update KaiGuan set Name='811' where Mac='187ed531e9f8' and LineAddress=10;
  370. update KaiGuan set Name='812' where Mac='187ed531e9f8' and LineAddress=11;
  371. update KaiGuan set Name='813' where Mac='187ed531e9f8' and LineAddress=12;
  372. update KaiGuan set Name='815' where Mac='187ed531e9f8' and LineAddress=13;
  373. update KaiGuan set Name='816' where Mac='187ed531e9f8' and LineAddress=14;
  374. update KaiGuan set Name='816' where Mac='187ed531e9f8' and LineAddress=15;
  375. update KaiGuan set Name='819' where Mac='187ed531e9f8' and LineAddress=16;
  376. update KaiGuan set Name='821' where Mac='187ed531e9f8' and LineAddress=17;
  377. update KaiGuan set Name='823' where Mac='187ed531e9f8' and LineAddress=18;
  378. update KaiGuan set Name='826' where Mac='187ed531e9f8' and LineAddress=19;
  379. update KaiGuan set Name='822' where Mac='187ed531e9f8' and LineAddress=20;
  380. update KaiGuan set Name='820' where Mac='187ed531e9f8' and LineAddress=21;
  381. update KaiGuan set Name='818' where Mac='187ed531e9f8' and LineAddress=22;
  382. ```