修改部门.sql 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. -- 添加部门
  2. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('人力资源部', '人事部', '1',SYSDATE(),'626','1509','1');
  3. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('商务发展部', '', '1',SYSDATE(),'626','1509','1');
  4. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('市场拓展部', '市场部', '1',SYSDATE(),'626','1509','1');
  5. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('战略与投资管理部', '战略部', '1',SYSDATE(),'626','1509','1');
  6. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('财务部航都4楼', '财务部(航都)', '1',SYSDATE(),'626','1509','1');
  7. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('运营管理部', '运营部', '1',SYSDATE(),'626','1509','1');
  8. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('专家委员会', '专家委', '1',SYSDATE(),'626','1509','1');
  9. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('纪检审计监察部', '审计部', '1',SYSDATE(),'626','1509','1');
  10. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('公司总经理助理、专务', '', '1',SYSDATE(),'626','1509','1');
  11. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('公司领导', '', '1',SYSDATE(),'626','1509','1');
  12. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('党群工作部、行政管理部', '行政部', '1',SYSDATE(),'626','1509','1');
  13. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('协同地产事业部', '协同', '1',SYSDATE(),'626','1509','1');
  14. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('中航智泊', '', '1',SYSDATE(),'626','1509','1');
  15. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('总经办', '', '1',SYSDATE(),'615','1012','1');
  16. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('品牌部', '', '1',SYSDATE(),'615','1012','1');
  17. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('运营部', '', '1',SYSDATE(),'615','1012','1');
  18. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('大客户服务部', '', '1',SYSDATE(),'615','1012','1');
  19. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('IT部', '', '1',SYSDATE(),'615','1012','1');
  20. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('行政/人事', '', '1',SYSDATE(),'615','1012','1');
  21. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('1214', '', '1',SYSDATE(),'626','1509','1');
  22. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('商务发展部飞亚达8楼', '商务部(飞亚达)', '1',SYSDATE(),'626','1509','1');
  23. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('商务发展部航都4楼', '商务部(航都)', '1',SYSDATE(),'626','1509','1');
  24. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('高校事业部', '', '1',SYSDATE(),'626','1509','1');
  25. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('保安公司', '', '1',SYSDATE(),'626','1509','1');
  26. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('财务部飞亚达9楼', '财务部(飞亚达)', '1',SYSDATE(),'626','1509','1');
  27. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('客服部', '', '1',SYSDATE(),'645','2039','1');
  28. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('会务部', '', '1',SYSDATE(),'645','2039','1');
  29. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('安管部', '', '1',SYSDATE(),'645','2039','1');
  30. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('工程部', '', '1',SYSDATE(),'645','2039','1');
  31. INSERT INTO tb_department (name, shortName, creator, createTime,orgId, virId,isEnabled) VALUES ('保洁部', '', '1',SYSDATE(),'645','2039','1');
  32. -- 南昌
  33. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('南昌中航国际广场', '1',SYSDATE(),'649','1511','1');
  34. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('环境部', '1',SYSDATE(),'649','1511','1');
  35. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('财务部', '1',SYSDATE(),'649','1511','1');
  36. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('总经办', '1',SYSDATE(),'649','1511','1');
  37. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('商务发展部', '1',SYSDATE(),'649','1511','1');
  38. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('运营部', '1',SYSDATE(),'649','1511','1');
  39. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('其他项目', '1',SYSDATE(),'649','1511','1');
  40. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('人力资源部', '1',SYSDATE(),'649','1511','1');
  41. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('工程部', '1',SYSDATE(),'649','1511','1');
  42. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('公司领导', '1',SYSDATE(),'649','1511','1');
  43. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('保安公司', '1',SYSDATE(),'649','1511','1');
  44. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('安管部', '1',SYSDATE(),'649','1511','1');
  45. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('市场拓展部', '1',SYSDATE(),'649','1511','1');
  46. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('IT部', '1',SYSDATE(),'649','1511','1');
  47. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','1511','1');
  48. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('行政/人事', '1',SYSDATE(),'649','1511','1');
  49. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('餐饮公司', '1',SYSDATE(),'649','1511','1');
  50. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('工程部', '1',SYSDATE(),'649','2000','1');
  51. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('财务部', '1',SYSDATE(),'649','2000','1');
  52. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('行政/人事', '1',SYSDATE(),'649','2000','1');
  53. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('运营部', '1',SYSDATE(),'649','2000','1');
  54. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('南昌中航国际广场', '1',SYSDATE(),'649','2001','1');
  55. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('南昌中航国际广场', '1',SYSDATE(),'649','2002','1');
  56. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('南昌中航国际广场', '1',SYSDATE(),'649','2003','1');
  57. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('品牌部', '1',SYSDATE(),'649','2004','1');
  58. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('市场拓展部', '1',SYSDATE(),'649','2004','1');
  59. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('运营管理部', '1',SYSDATE(),'649','2004','1');
  60. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('财务部', '1',SYSDATE(),'649','2004','1');
  61. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('行政/人事', '1',SYSDATE(),'649','2004','1');
  62. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('公司领导', '1',SYSDATE(),'649','2005','1');
  63. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('市场拓展部', '1',SYSDATE(),'649','2005','1');
  64. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('南昌中航国际广场', '1',SYSDATE(),'649','2006','1');
  65. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2007','1');
  66. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('南昌中航国际广场', '1',SYSDATE(),'649','2008','1');
  67. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('南昌中航国际广场', '1',SYSDATE(),'649','2009','1');
  68. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('总经办', '1',SYSDATE(),'649','2010','1');
  69. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('运营部', '1',SYSDATE(),'649','2010','1');
  70. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('工程部', '1',SYSDATE(),'649','2010','1');
  71. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('财务部', '1',SYSDATE(),'649','2010','1');
  72. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('品牌部', '1',SYSDATE(),'649','2010','1');
  73. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('行政/人事', '1',SYSDATE(),'649','2010','1');
  74. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('南昌中航国际广场', '1',SYSDATE(),'649','2011','1');
  75. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('南昌中航国际广场', '1',SYSDATE(),'649','2012','1');
  76. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2012','1');
  77. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('南昌中航国际广场', '1',SYSDATE(),'649','2013','1');
  78. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('南昌中航国际广场', '1',SYSDATE(),'649','2014','1');
  79. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('南昌中航国际广场', '1',SYSDATE(),'649','2015','1');
  80. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('财务部', '1',SYSDATE(),'649','2016','1');
  81. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2016','1');
  82. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('工程部', '1',SYSDATE(),'649','2016','1');
  83. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('市场拓展部', '1',SYSDATE(),'649','2017','1');
  84. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2018','1');
  85. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2019','1');
  86. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2020','1');
  87. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2021','1');
  88. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2022','1');
  89. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('行政/人事', '1',SYSDATE(),'649','2022','1');
  90. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('财务部', '1',SYSDATE(),'649','2022','1');
  91. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2023','1');
  92. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('运营部', '1',SYSDATE(),'649','2024','1');
  93. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2025','1');
  94. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('行政/人事', '1',SYSDATE(),'649','2025','1');
  95. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('市场拓展部', '1',SYSDATE(),'649','2025','1');
  96. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2026','1');
  97. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2027','1');
  98. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('市场拓展部', '1',SYSDATE(),'649','2027','1');
  99. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('行政/人事', '1',SYSDATE(),'649','2027','1');
  100. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('总经办', '1',SYSDATE(),'649','2027','1');
  101. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2028','1');
  102. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2029','1');
  103. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2030','1');
  104. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2031','1');
  105. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2032','1');
  106. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2033','1');
  107. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('工程部', '1',SYSDATE(),'649','2034','1');
  108. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('财务部', '1',SYSDATE(),'649','2034','1');
  109. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('总经办', '1',SYSDATE(),'649','2034','1');
  110. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('运营部', '1',SYSDATE(),'649','2034','1');
  111. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2034','1');
  112. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2035','1');
  113. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2036','1');
  114. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2037','1');
  115. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('总经办', '1',SYSDATE(),'649','2040','1');
  116. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('行政/人事', '1',SYSDATE(),'649','2040','1');
  117. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2040','1');
  118. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('财务部', '1',SYSDATE(),'649','2040','1');
  119. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2041','1');
  120. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2042','1');
  121. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2043','1');
  122. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2044','1');
  123. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('行政/人事', '1',SYSDATE(),'649','2044','1');
  124. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('总经办', '1',SYSDATE(),'649','2044','1');
  125. INSERT INTO tb_department (name,creator, createTime,orgId, virId,isEnabled) VALUES ('综合部', '1',SYSDATE(),'649','2045','1');
  126. -- 修改部门
  127. update tb_user set departmentId=31 where departmentId=398 and organizationId=649 and virtualArchId=1511;
  128. update tb_user set departmentId=32 where departmentId=408 and organizationId=649 and virtualArchId=1511;
  129. update tb_user set departmentId=33 where departmentId=432 and organizationId=649 and virtualArchId=1511;
  130. update tb_user set departmentId=34 where departmentId=380 and organizationId=649 and virtualArchId=1511;
  131. update tb_user set departmentId=35 where departmentId=337 and organizationId=649 and virtualArchId=1511;
  132. update tb_user set departmentId=36 where departmentId=382 and organizationId=649 and virtualArchId=1511;
  133. update tb_user set departmentId=37 where departmentId=433 and organizationId=649 and virtualArchId=1511;
  134. update tb_user set departmentId=38 where departmentId=336 and organizationId=649 and virtualArchId=1511;
  135. update tb_user set departmentId=39 where departmentId=406 and organizationId=649 and virtualArchId=1511;
  136. update tb_user set departmentId=40 where departmentId=374 and organizationId=649 and virtualArchId=1511;
  137. update tb_user set departmentId=41 where departmentId=423 and organizationId=649 and virtualArchId=1511;
  138. update tb_user set departmentId=42 where departmentId=407 and organizationId=649 and virtualArchId=1511;
  139. update tb_user set departmentId=43 where departmentId=338 and organizationId=649 and virtualArchId=1511;
  140. update tb_user set departmentId=44 where departmentId=384 and organizationId=649 and virtualArchId=1511;
  141. update tb_user set departmentId=45 where departmentId=409 and organizationId=649 and virtualArchId=1511;
  142. update tb_user set departmentId=46 where departmentId=385 and organizationId=649 and virtualArchId=1511;
  143. update tb_user set departmentId=47 where departmentId=425 and organizationId=649 and virtualArchId=1511;
  144. update tb_user set departmentId=48 where departmentId=406 and organizationId=649 and virtualArchId=2000;
  145. update tb_user set departmentId=49 where departmentId=432 and organizationId=649 and virtualArchId=2000;
  146. update tb_user set departmentId=50 where departmentId=385 and organizationId=649 and virtualArchId=2000;
  147. update tb_user set departmentId=51 where departmentId=382 and organizationId=649 and virtualArchId=2000;
  148. update tb_user set departmentId=52 where departmentId=398 and organizationId=649 and virtualArchId=2001;
  149. update tb_user set departmentId=53 where departmentId=398 and organizationId=649 and virtualArchId=2002;
  150. update tb_user set departmentId=54 where departmentId=398 and organizationId=649 and virtualArchId=2003;
  151. update tb_user set departmentId=55 where departmentId=381 and organizationId=649 and virtualArchId=2004;
  152. update tb_user set departmentId=56 where departmentId=338 and organizationId=649 and virtualArchId=2004;
  153. update tb_user set departmentId=57 where departmentId=341 and organizationId=649 and virtualArchId=2004;
  154. update tb_user set departmentId=58 where departmentId=432 and organizationId=649 and virtualArchId=2004;
  155. update tb_user set departmentId=59 where departmentId=385 and organizationId=649 and virtualArchId=2004;
  156. update tb_user set departmentId=60 where departmentId=374 and organizationId=649 and virtualArchId=2005;
  157. update tb_user set departmentId=61 where departmentId=338 and organizationId=649 and virtualArchId=2005;
  158. update tb_user set departmentId=62 where departmentId=398 and organizationId=649 and virtualArchId=2006;
  159. update tb_user set departmentId=63 where departmentId=409 and organizationId=649 and virtualArchId=2007;
  160. update tb_user set departmentId=64 where departmentId=398 and organizationId=649 and virtualArchId=2008;
  161. update tb_user set departmentId=65 where departmentId=398 and organizationId=649 and virtualArchId=2009;
  162. update tb_user set departmentId=66 where departmentId=380 and organizationId=649 and virtualArchId=2010;
  163. update tb_user set departmentId=67 where departmentId=382 and organizationId=649 and virtualArchId=2010;
  164. update tb_user set departmentId=68 where departmentId=406 and organizationId=649 and virtualArchId=2010;
  165. update tb_user set departmentId=69 where departmentId=432 and organizationId=649 and virtualArchId=2010;
  166. update tb_user set departmentId=70 where departmentId=381 and organizationId=649 and virtualArchId=2010;
  167. update tb_user set departmentId=71 where departmentId=385 and organizationId=649 and virtualArchId=2010;
  168. update tb_user set departmentId=72 where departmentId=398 and organizationId=649 and virtualArchId=2011;
  169. update tb_user set departmentId=73 where departmentId=398 and organizationId=649 and virtualArchId=2012;
  170. update tb_user set departmentId=74 where departmentId=409 and organizationId=649 and virtualArchId=2012;
  171. update tb_user set departmentId=75 where departmentId=398 and organizationId=649 and virtualArchId=2013;
  172. update tb_user set departmentId=76 where departmentId=398 and organizationId=649 and virtualArchId=2014;
  173. update tb_user set departmentId=77 where departmentId=398 and organizationId=649 and virtualArchId=2015;
  174. update tb_user set departmentId=78 where departmentId=432 and organizationId=649 and virtualArchId=2016;
  175. update tb_user set departmentId=79 where departmentId=409 and organizationId=649 and virtualArchId=2016;
  176. update tb_user set departmentId=80 where departmentId=406 and organizationId=649 and virtualArchId=2016;
  177. update tb_user set departmentId=81 where departmentId=338 and organizationId=649 and virtualArchId=2017;
  178. update tb_user set departmentId=82 where departmentId=409 and organizationId=649 and virtualArchId=2018;
  179. update tb_user set departmentId=83 where departmentId=409 and organizationId=649 and virtualArchId=2019;
  180. update tb_user set departmentId=84 where departmentId=409 and organizationId=649 and virtualArchId=2020;
  181. update tb_user set departmentId=85 where departmentId=409 and organizationId=649 and virtualArchId=2021;
  182. update tb_user set departmentId=86 where departmentId=409 and organizationId=649 and virtualArchId=2022;
  183. update tb_user set departmentId=87 where departmentId=385 and organizationId=649 and virtualArchId=2022;
  184. update tb_user set departmentId=88 where departmentId=432 and organizationId=649 and virtualArchId=2022;
  185. update tb_user set departmentId=89 where departmentId=409 and organizationId=649 and virtualArchId=2023;
  186. update tb_user set departmentId=90 where departmentId=382 and organizationId=649 and virtualArchId=2024;
  187. update tb_user set departmentId=91 where departmentId=409 and organizationId=649 and virtualArchId=2025;
  188. update tb_user set departmentId=92 where departmentId=385 and organizationId=649 and virtualArchId=2025;
  189. update tb_user set departmentId=93 where departmentId=338 and organizationId=649 and virtualArchId=2025;
  190. update tb_user set departmentId=94 where departmentId=409 and organizationId=649 and virtualArchId=2026;
  191. update tb_user set departmentId=95 where departmentId=409 and organizationId=649 and virtualArchId=2027;
  192. update tb_user set departmentId=96 where departmentId=338 and organizationId=649 and virtualArchId=2027;
  193. update tb_user set departmentId=97 where departmentId=385 and organizationId=649 and virtualArchId=2027;
  194. update tb_user set departmentId=98 where departmentId=380 and organizationId=649 and virtualArchId=2027;
  195. update tb_user set departmentId=99 where departmentId=409 and organizationId=649 and virtualArchId=2028;
  196. update tb_user set departmentId=100 where departmentId=409 and organizationId=649 and virtualArchId=2029;
  197. update tb_user set departmentId=101 where departmentId=409 and organizationId=649 and virtualArchId=2030;
  198. update tb_user set departmentId=102 where departmentId=409 and organizationId=649 and virtualArchId=2031;
  199. update tb_user set departmentId=103 where departmentId=409 and organizationId=649 and virtualArchId=2032;
  200. update tb_user set departmentId=104 where departmentId=409 and organizationId=649 and virtualArchId=2033;
  201. update tb_user set departmentId=105 where departmentId=406 and organizationId=649 and virtualArchId=2034;
  202. update tb_user set departmentId=106 where departmentId=432 and organizationId=649 and virtualArchId=2034;
  203. update tb_user set departmentId=107 where departmentId=380 and organizationId=649 and virtualArchId=2034;
  204. update tb_user set departmentId=108 where departmentId=382 and organizationId=649 and virtualArchId=2034;
  205. update tb_user set departmentId=109 where departmentId=409 and organizationId=649 and virtualArchId=2034;
  206. update tb_user set departmentId=110 where departmentId=409 and organizationId=649 and virtualArchId=2035;
  207. update tb_user set departmentId=111 where departmentId=409 and organizationId=649 and virtualArchId=2036;
  208. update tb_user set departmentId=112 where departmentId=409 and organizationId=649 and virtualArchId=2037;
  209. update tb_user set departmentId=113 where departmentId=380 and organizationId=649 and virtualArchId=2040;
  210. update tb_user set departmentId=114 where departmentId=385 and organizationId=649 and virtualArchId=2040;
  211. update tb_user set departmentId=115 where departmentId=409 and organizationId=649 and virtualArchId=2040;
  212. update tb_user set departmentId=116 where departmentId=432 and organizationId=649 and virtualArchId=2040;
  213. update tb_user set departmentId=117 where departmentId=409 and organizationId=649 and virtualArchId=2041;
  214. update tb_user set departmentId=118 where departmentId=409 and organizationId=649 and virtualArchId=2042;
  215. update tb_user set departmentId=119 where departmentId=409 and organizationId=649 and virtualArchId=2043;
  216. update tb_user set departmentId=120 where departmentId=409 and organizationId=649 and virtualArchId=2044;
  217. update tb_user set departmentId=121 where departmentId=385 and organizationId=649 and virtualArchId=2044;
  218. update tb_user set departmentId=122 where departmentId=380 and organizationId=649 and virtualArchId=2044;
  219. update tb_user set departmentId=123 where departmentId=409 and organizationId=649 and virtualArchId=2045;
  220. update tb_user set departmentId=30 where departmentId=439;
  221. update tb_user set departmentId=29 where departmentId=438;
  222. update tb_user set departmentId=28 where departmentId=437;
  223. update tb_user set departmentId=27 where departmentId=436;
  224. update tb_user set departmentId=26 where departmentId=435;
  225. update tb_user set departmentId=25 where departmentId=430;
  226. update tb_user set departmentId=24 where departmentId=423;
  227. update tb_user set departmentId=23 where departmentId=422;
  228. update tb_user set departmentId=22 where departmentId=394;
  229. update tb_user set departmentId=21 where departmentId=393;
  230. update tb_user set departmentId=20 where departmentId=386;
  231. update tb_user set departmentId=19 where departmentId=385;
  232. update tb_user set departmentId=18 where departmentId=384;
  233. update tb_user set departmentId=17 where departmentId=383;
  234. update tb_user set departmentId=16 where departmentId=382;
  235. update tb_user set departmentId=15 where departmentId=381;
  236. update tb_user set departmentId=14 where departmentId=380;
  237. update tb_user set departmentId=13 where departmentId=377;
  238. update tb_user set departmentId=12 where departmentId=376;
  239. update tb_user set departmentId=11 where departmentId=375;
  240. update tb_user set departmentId=10 where departmentId=374;
  241. update tb_user set departmentId=9 where departmentId=373;
  242. update tb_user set departmentId=8 where departmentId=372;
  243. update tb_user set departmentId=7 where departmentId=342;
  244. update tb_user set departmentId=6 where departmentId=341;
  245. update tb_user set departmentId=5 where departmentId=340;
  246. update tb_user set departmentId=4 where departmentId=339;
  247. update tb_user set departmentId=3 where departmentId=338;
  248. update tb_user set departmentId=2 where departmentId=337;
  249. update tb_user set departmentId=1 where departmentId=336;
  250. -- 修改用户排序
  251. update tb_user set isLeader=1,orderNum=1 where userName='刘文波';
  252. update tb_user set isLeader=1,orderNum=2 where userName='张力';
  253. update tb_user set isLeader=1,orderNum=3 where userName='邹民';
  254. update tb_user set isLeader=1,orderNum=4 where userName='赵肖';
  255. update tb_user set isLeader=1,orderNum=5 where userName='许志平';
  256. update tb_user set isLeader=1,orderNum=6 where userName='王新里';
  257. update tb_user set isLeader=1,orderNum=7 where userName='陈传宇';
  258. update tb_user set isLeader=1,orderNum=8 where userName='高文田';
  259. update tb_user set isLeader=1,orderNum=1 where userName='宋立忠';