已更新脚本 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. INSERT INTO `sys_function_code` (`FunctionCode`, `FunctionName`, `ParentFunctionCode`, `OrderNo`) VALUES
  2. ('T01220101', '日报', 'T012201', 1),
  3. ('T01220201', '周报', 'T012202', 1),
  4. ('T01220202', '周报评阅', 'T012202', 2),
  5. ('T01220301', '月报', 'T012203', 1),
  6. ('T01220302', '月报评阅', 'T012203', 2),
  7. ('T01220304', '编辑月报', 'T012203', 4),
  8. ('T01220401', '实习总结及鉴定', 'T012204', 1),
  9. ('T01220402', '实习总结及鉴定评阅', 'T012204', 2);
  10. update sys_menu set FunctionCode = MenuNo where MenuNo='S01220201';
  11. update sys_menu set FunctionCode = MenuNo where MenuNo='S01220203';
  12. update sys_menu set FunctionCode = MenuNo where MenuNo='S01220204';
  13. update sys_menu set FunctionCode = MenuNo where MenuNo='S01220301';
  14. update sys_menu set FunctionCode = MenuNo where MenuNo='S01220303';
  15. update sys_menu set FunctionCode = MenuNo where MenuNo='S01220304';
  16. update sys_menu set FunctionCode = MenuNo where MenuNo='S01220401';
  17. update sys_menu set FunctionCode = MenuNo where MenuNo='S01220403';
  18. update sys_menu set FunctionCode = MenuNo where MenuNo='S01220404';
  19. update sys_menu set FunctionCode = MenuNo where MenuNo='T01220102';
  20. update sys_menu set FunctionCode = MenuNo where MenuNo='T01220103';
  21. update sys_menu set FunctionCode = MenuNo where MenuNo='T01220203';
  22. update sys_menu set FunctionCode = MenuNo where MenuNo='T01220204';
  23. update sys_menu set FunctionCode = MenuNo where MenuNo='T01220303';
  24. update sys_menu set FunctionCode = MenuNo where MenuNo='T01220403';
  25. update sys_menu set FunctionCode = MenuNo where MenuNo='T01220404';
  26. update sys_menu set FunctionCode = MenuNo where MenuNo='T01220101';
  27. update sys_menu set FunctionCode = MenuNo where MenuNo='T01220201';
  28. update sys_menu set FunctionCode = MenuNo where MenuNo='T01220202';
  29. update sys_menu set FunctionCode = MenuNo where MenuNo='T01220301';
  30. update sys_menu set FunctionCode = MenuNo where MenuNo='T01220302';
  31. update sys_menu set FunctionCode = MenuNo where MenuNo='T01220304';
  32. update sys_menu set FunctionCode = MenuNo where MenuNo='T01220401';
  33. update sys_menu set FunctionCode = MenuNo where MenuNo='T01220402';
  34. update sys_menu set FunctionCode = MenuNo where MenuNo='S01220101';
  35. update sys_menu set FunctionCode = ParentMenuNo where (MenuNo like 'T0122%' or MenuNo like 'S0122%') and ParentMenuNo not like '%0122' and MenuNo not like '%0122'
  36. -- 以上sql测试服已执行-----------------------------------------------------------------------------------------------------------------
  37. --- 2023.04.10
  38. create table sys_role_sys_menu_shortcut
  39. (
  40. RoleID varchar(50) not null,
  41. MenuNo varchar(50) not null,
  42. primary key (RoleID, MenuNo)
  43. );
  44. alter table sys_role_sys_menu_shortcut add constraint FK_Reference_110 foreign key (RoleID)
  45. references sys_role (RoleID) on delete restrict on update restrict;
  46. alter table sys_role_sys_menu_shortcut add constraint FK_Reference_111 foreign key (MenuNo)
  47. references sys_menu (MenuNo) on delete restrict on update restrict;
  48. alter table sys_menu add ShortcutIcon varchar(50);
  49. update sys_menu set shortcutIcon='实习任务.png' where menuno='T0112';
  50. update sys_menu set shortcutIcon='实习生名单.png' where menuno='T0114';
  51. update sys_menu set shortcutIcon='请假申请(请假管理).png' where menuno='T013007';
  52. update sys_menu set shortcutIcon='补签申请(补签管理).png' where menuno='T013004';
  53. update sys_menu set shortcutIcon='周报.png' where menuno='T01220201';
  54. update sys_menu set shortcutIcon='月报.png' where menuno='T01220301';
  55. update sys_menu set shortcutIcon='实习任务.png' where menuno='S0111';
  56. update sys_menu set shortcutIcon='日报.png' where menuno='S01220101';
  57. update sys_menu set shortcutIcon='周报.png' where menuno='S01220201';
  58. update sys_menu set shortcutIcon='轮科记录.png' where menuno='S010901';
  59. update sys_menu set shortcutIcon='补签申请(补签管理).png' where menuno='S010701';
  60. update sys_menu set shortcutIcon='请假申请(请假管理).png' where menuno='S010801';
  61. update sys_menu set shortcutIcon='实习生名单.png' where menuno='E0103';
  62. update sys_menu set shortcutIcon='非轮科成绩.png' where menuno='E010401';
  63. update sys_menu set shortcutIcon='轮科成绩.png' where menuno='E010402';
  64. insert into sys_role_sys_menu_shortcut
  65. values('8f5eb41d-fb05-48b7-9e2f-40b034918236','T0112'),('8f5eb41d-fb05-48b7-9e2f-40b034918236','T0114'),('8f5eb41d-fb05-48b7-9e2f-40b034918236','T013007'),
  66. ('8f5eb41d-fb05-48b7-9e2f-40b034918236','T013004'),('8f5eb41d-fb05-48b7-9e2f-40b034918236','T01220201'),('8f5eb41d-fb05-48b7-9e2f-40b034918236','T01220301');
  67. insert into sys_role_sys_menu_shortcut
  68. values('0a683b13-0b3b-43a3-9e66-3d45fc045cb5','T0112'),('0a683b13-0b3b-43a3-9e66-3d45fc045cb5','T0114'),('0a683b13-0b3b-43a3-9e66-3d45fc045cb5','T013007'),
  69. ('0a683b13-0b3b-43a3-9e66-3d45fc045cb5','T013004'),('0a683b13-0b3b-43a3-9e66-3d45fc045cb5','T01220201'),('0a683b13-0b3b-43a3-9e66-3d45fc045cb5','T01220301');
  70. insert into sys_role_sys_menu_shortcut
  71. values('20afde90-a81a-11ed-a6c5-7085c2a9999e','T0112'),('20afde90-a81a-11ed-a6c5-7085c2a9999e','T0114'),('20afde90-a81a-11ed-a6c5-7085c2a9999e','T013007'),
  72. ('20afde90-a81a-11ed-a6c5-7085c2a9999e','T013004'),('20afde90-a81a-11ed-a6c5-7085c2a9999e','T01220201'),('20afde90-a81a-11ed-a6c5-7085c2a9999e','T01220301');
  73. insert into sys_role_sys_menu_shortcut
  74. values('dda836b7-cf68-11ed-acb0-7085c2a9999e','T0112'),('dda836b7-cf68-11ed-acb0-7085c2a9999e','T0114'),('dda836b7-cf68-11ed-acb0-7085c2a9999e','T013007'),
  75. ('dda836b7-cf68-11ed-acb0-7085c2a9999e','T013004'),('dda836b7-cf68-11ed-acb0-7085c2a9999e','T01220201'),('dda836b7-cf68-11ed-acb0-7085c2a9999e','T01220301');
  76. insert into sys_role_sys_menu_shortcut
  77. values('8e814c6d-b40b-11ed-be3c-7085c2a9999e','S0111'),('8e814c6d-b40b-11ed-be3c-7085c2a9999e','S01220101'),('8e814c6d-b40b-11ed-be3c-7085c2a9999e','S01220201'),
  78. ('8e814c6d-b40b-11ed-be3c-7085c2a9999e','S010901'),('8e814c6d-b40b-11ed-be3c-7085c2a9999e','S010701'),('8e814c6d-b40b-11ed-be3c-7085c2a9999e','S010801');
  79. insert into sys_role_sys_menu_shortcut
  80. values('db894e5f-258f-4f62-b91b-4b4772ac5233','E0103'),('db894e5f-258f-4f62-b91b-4b4772ac5233','E010401'),('db894e5f-258f-4f62-b91b-4b4772ac5233','E010402');
  81. INSERT INTO sys_function_code (`FunctionCode`, `FunctionName`, `ParentFunctionCode`, `OrderNo`) VALUES
  82. ('E0105', '签到信息', 'E01', 5),
  83. ('E0106', '请假信息', 'E01', 6);
  84. INSERT INTO sys_menu (`MenuNo`, `OrderNo`, `MenuName`, `Icon`, `ViewPath`, `Url`, `ParentMenuNo`, `Description`, `IsTopMenu`, `IsVisible`, `IsLeaf`, `FunctionCode`, `RecordStatus`, `ShortcutIcon`) VALUES
  85. ('E0105', 5, '签到信息', 'EditOutlined', 'views/attendance/enterpriseindex', '/attendance/enterpriseindex', 'E01', '', 0, 1, 1, 'E0105', 1, '签到信息.png'),
  86. ('E0106', 6, '请假信息', 'SolutionOutlined', 'views/attendance/timeoff/enterpriseindex', '/attendance/timeoff/enterpriseindex', 'E01', '', 0, 1, 1, 'E0106', 1, '请假信息.png');
  87. INSERT INTO sys_menu (`MenuNo`, `OrderNo`, `MenuName`, `Icon`, `ViewPath`, `Url`, `ParentMenuNo`, `Description`, `IsTopMenu`, `IsVisible`, `IsLeaf`, `FunctionCode`, `RecordStatus`, `ShortcutIcon`) VALUES
  88. ('E010601', 0, '请假详细', '', 'views/attendance/timeoff/enterprisedetail', '/attendance/timeoff/detail', 'E01', NULL, 0, 0, 1, null, 1, NULL);
  89. ---2023-4-17 数据范围
  90. update sys_menu set FunctionCode='T0118' where MenuNo='T011801';
  91. update sys_menu set FunctionCode='T0126' where MenuNo='T012601';
  92. update sys_menu set FunctionCode='T013001' where MenuNo='T013001';
  93. update sys_menu set FunctionCode='T013004' where MenuNo='T013004';
  94. update sys_menu set FunctionCode='T013007' where MenuNo='T013007';
  95. update sys_menu set FunctionCode='T0132' where MenuNo='T013201';
  96. update sys_menu set functioncode='S0107' where menuno='S010701';
  97. update sys_menu set functioncode='S0108' where menuno='S010801';
  98. update sys_menu set functioncode='S0109' where menuno='S010901';
  99. -- 以上sql测试服已执行-----------------------------------------------------------------------------------------------------------------
  100. --- 2023.04.17 删除无效的数据范围
  101. delete from sys_dictionary_item where DictionaryCode='DataRange' and Value>1;
  102. ---2023.4.18
  103. alter table pm_practice_self_contact add PositionID varchar(50);
  104. ---2023.04.19
  105. alter table pm_practice_task_student add arrangeType int;
  106. ---2023.04.19 补充测试表字段
  107. alter table cf_classroom add column Practice text
  108. -- 以上sql测试服已执行-----------------------------------------------------------------------------------------------------------------
  109. ---2023.04.28
  110. INSERT INTO `sys_menu` (`MenuNo`, `OrderNo`, `MenuName`, `Icon`, `ViewPath`, `Url`, `ParentMenuNo`, `Description`, `IsTopMenu`, `IsVisible`, `IsLeaf`, `FunctionCode`, `RecordStatus`, `ShortcutIcon`) VALUES
  111. ('T01020102', 2, '新增院系信息', NULL, 'views/schoolinformation/college/edit', '/add', 'T010201', NULL, 0, 0, 1, NULL, 1, NULL),
  112. ('T01020103', 3, '编辑院系信息', NULL, 'views/schoolinformation/college/edit', '/edit', 'T010201', NULL, 0, 0, 1, NULL, 1, NULL),
  113. ('T0102020102', 2, '新增院系专业', NULL, 'views/schoolinformation/professionclass/major/edit', '/add', 'T01020201', NULL, 0, 0, 1, NULL, 1, NULL),
  114. ('T0102020103', 3, '编辑院系专业', NULL, 'views/schoolinformation/professionclass/major/edit', '/edit', 'T01020201', NULL, 0, 0, 1, NULL, 1, NULL),
  115. ('T01020502', 2, '新增学年学期', '', 'views/schoolinformation/schoolyear/edit', '/add', 'T010205', NULL, 0, 0, 1, NULL, 1, NULL),
  116. ('T01020503', 3, '编辑学年学期', '', 'views/schoolinformation/schoolyear/edit', '/edit', 'T010205', NULL, 0, 0, 1, NULL, 1, NULL);
  117. update sys_menu set FunctionCode='T01020201' where ParentMenuNo = 'T01020201';
  118. update sys_menu set FunctionCode='T010201' where ParentMenuNo = 'T010201';
  119. update sys_menu set FunctionCode='T010205' where ParentMenuNo = 'T010205';
  120. -- 以上sql测试服已执行-----------------------------------------------------------------------------------------------------------------
  121. ---2023.4.20
  122. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441901', '156441901', '东城街道', '156441900');
  123. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441902', '156441902', '南城街道', '156441900');
  124. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441903', '156441903', '万江街道', '156441900');
  125. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441904', '156441904', '莞城街道', '156441900');
  126. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441905', '156441905', '石碣镇', '156441900');
  127. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441906', '156441906', '石龙镇', '156441900');
  128. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441907', '156441907', '茶山镇', '156441900');
  129. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441908', '156441908', '石排镇', '156441900');
  130. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441909', '156441909', '企石镇', '156441900');
  131. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441910', '156441910', '横沥镇', '156441900');
  132. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441911', '156441911', '桥头镇', '156441900');
  133. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441912', '156441912', '谢岗镇', '156441900');
  134. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441913', '156441913', '东坑镇', '156441900');
  135. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441914', '156441914', '常平镇', '156441900');
  136. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441915', '156441915', '察步镇', '156441900');
  137. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441916', '156441916', '樟木头镇', '156441900');
  138. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441917', '156441917', '大朗镇', '156441900');
  139. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441918', '156441918', '黄江镇', '156441900');
  140. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441919', '156441919', '清溪镇', '156441900');
  141. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441920', '156441920', '塘厦镇', '156441900');
  142. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441921', '156441921', '凤岗镇', '156441900');
  143. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441922', '156441922', '大岭山镇', '156441900');
  144. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441923', '156441923', '长安镇', '156441900');
  145. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441924', '156441924', '虎门镇', '156441900');
  146. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441925', '156441925', '厚街镇', '156441900');
  147. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441926', '156441926', '沙田镇', '156441900');
  148. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441927', '156441927', '道溶镇', '156441900');
  149. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441928', '156441928', '洪梅镇', '156441900');
  150. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441929', '156441929', '麻涌镇', '156441900');
  151. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441930', '156441930', '望牛墩镇', '156441900');
  152. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441931', '156441931', '中堂镇', '156441900');
  153. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('156441932', '156441932', '高步镇', '156441900');
  154. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000001', '442000001', '石岐街道', '156442000');
  155. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000002', '442000002', '东区街道', '156442000');
  156. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000003', '442000003', '西区街道', '156442000');
  157. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000004', '442000004', '南区街道', '156442000');
  158. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000005', '442000005', '五桂山街道', '156442000');
  159. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000006', '442000006', '中山港街道', '156442000');
  160. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000007', '442000007', '黄圃镇', '156442000');
  161. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000008', '442000008', '南头镇', '156442000');
  162. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000101', '442000101', '东凤镇', '156442000');
  163. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000103', '442000103', '阜沙镇', '156442000');
  164. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000105', '442000105', '小榄镇', '156442000');
  165. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000106', '442000106', '东升镇', '156442000');
  166. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000107', '442000107', '古镇镇', '156442000');
  167. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000108', '442000108', '横栏镇', '156442000');
  168. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000109', '442000109', '三角镇', '156442000');
  169. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000110', '442000110', '民众镇', '156442000');
  170. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000111', '442000111', '南朗镇', '156442000');
  171. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000112', '442000112', '港口镇', '156442000');
  172. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000114', '442000114', '大涌镇', '156442000');
  173. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000115', '442000115', '沙溪镇', '156442000');
  174. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000116', '442000116', '三乡镇', '156442000');
  175. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000117', '442000117', '板芙镇', '156442000');
  176. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000118', '442000118', '神湾镇', '156442000');
  177. INSERT INTO sys_area (AreaID, Code, Name, ParentAreaID) VALUES ('442000119', '442000119', '坦洲镇', '156442000');
  178. ---2023.4.26
  179. INSERT INTO sys_function_code
  180. values ('T019902','通知公告','T0199',105);
  181. INSERT INTO sys_menu (`MenuNo`, `OrderNo`, `MenuName`, `Icon`, `ViewPath`, `Url`, `ParentMenuNo`, `Description`, `IsTopMenu`, `IsVisible`, `IsLeaf`, `FunctionCode`, `RecordStatus`, `ShortcutIcon`) VALUES
  182. ('T019902', 102, '通知公告', '', 'views/announcement', '/announcement', 'T0199', NULL, 0, 1, 1, 'T019902', 1, NULL);
  183. insert into sys_dictionary values('AnnouncementStatus','公告通知状态',30,1);
  184. insert into sys_dictionary_item values(uuid(),'','AnnouncementStatus',1,'正常',1,1,0);
  185. insert into sys_dictionary_item values(uuid(),'','AnnouncementStatus',2,'置顶',2,1,0);
  186. insert into sys_dictionary_item values(uuid(),'','AnnouncementStatus',3,'删除',3,1,0);
  187. --2023/6/12 学校信息教师信息,年级专业,班级信息,学生信息新增编辑脚本
  188. INSERT INTO `practicedb`.`sys_menu` (`MenuNo`, `OrderNo`, `MenuName`, `Icon`, `ViewPath`, `Url`, `ParentMenuNo`, `Description`, `IsTopMenu`, `IsVisible`, `IsLeaf`, `FunctionCode`, `RecordStatus`, `ShortcutIcon`) VALUES ('T01020302', 2, '新增教师信息', '', 'views/schoolinformation/teacher/edit', '/add', 'T010203', NULL, 0, 0, 1, 'T010203', 1, NULL);
  189. INSERT INTO `practicedb`.`sys_menu` (`MenuNo`, `OrderNo`, `MenuName`, `Icon`, `ViewPath`, `Url`, `ParentMenuNo`, `Description`, `IsTopMenu`, `IsVisible`, `IsLeaf`, `FunctionCode`, `RecordStatus`, `ShortcutIcon`) VALUES ('T01020303', 3, '编辑教师信息', '', 'views/schoolinformation/teacher/edit', '/edit', 'T010203', NULL, 0, 0, 1, 'T010203', 1, NULL);
  190. INSERT INTO `practicedb`.`sys_menu` (`MenuNo`, `OrderNo`, `MenuName`, `Icon`, `ViewPath`, `Url`, `ParentMenuNo`, `Description`, `IsTopMenu`, `IsVisible`, `IsLeaf`, `FunctionCode`, `RecordStatus`, `ShortcutIcon`) VALUES ('T0102020202', 2, '新增年级专业', '', 'views/schoolinformation/professionclass/majorgrade/edit', '/add', 'T01020202', NULL, 0, 0, 1, 'T01020202', 1, NULL);
  191. INSERT INTO `practicedb`.`sys_menu` (`MenuNo`, `OrderNo`, `MenuName`, `Icon`, `ViewPath`, `Url`, `ParentMenuNo`, `Description`, `IsTopMenu`, `IsVisible`, `IsLeaf`, `FunctionCode`, `RecordStatus`, `ShortcutIcon`) VALUES ('T0102020203', 3, '编辑年级专业', '', 'views/schoolinformation/professionclass/majorgrade/edit', '/edit', 'T01020202', NULL, 0, 0, 1, 'T01020202', 1, NULL);
  192. INSERT INTO `practicedb`.`sys_menu` (`MenuNo`, `OrderNo`, `MenuName`, `Icon`, `ViewPath`, `Url`, `ParentMenuNo`, `Description`, `IsTopMenu`, `IsVisible`, `IsLeaf`, `FunctionCode`, `RecordStatus`, `ShortcutIcon`) VALUES ('T0102020302', 2, '新增班级信息', '', 'views/schoolinformation/professionclass/majorclass/edit', '/add', 'T01020203', NULL, 0, 0, 1, 'T01020203', 1, NULL);
  193. INSERT INTO `practicedb`.`sys_menu` (`MenuNo`, `OrderNo`, `MenuName`, `Icon`, `ViewPath`, `Url`, `ParentMenuNo`, `Description`, `IsTopMenu`, `IsVisible`, `IsLeaf`, `FunctionCode`, `RecordStatus`, `ShortcutIcon`) VALUES ('T0102020303', 3, '编辑班级信息', '', 'views/schoolinformation/professionclass/majorclass/edit', '/edit', 'T01020203', NULL, 0, 0, 1, 'T01020203', 1, NULL);
  194. INSERT INTO `practicedb`.`sys_menu` (`MenuNo`, `OrderNo`, `MenuName`, `Icon`, `ViewPath`, `Url`, `ParentMenuNo`, `Description`, `IsTopMenu`, `IsVisible`, `IsLeaf`, `FunctionCode`, `RecordStatus`, `ShortcutIcon`) VALUES ('T01020402', 2, '新增学生信息', '', 'views/schoolinformation/student/edit', '/add', 'T010204', NULL, 0, 0, 1, 'T010204', 1, NULL);
  195. INSERT INTO `practicedb`.`sys_menu` (`MenuNo`, `OrderNo`, `MenuName`, `Icon`, `ViewPath`, `Url`, `ParentMenuNo`, `Description`, `IsTopMenu`, `IsVisible`, `IsLeaf`, `FunctionCode`, `RecordStatus`, `ShortcutIcon`) VALUES ('T01020403', 3, '编辑学生信息', '', 'views/schoolinformation/student/edit', '/edit', 'T010204', NULL, 0, 0, 1, 'T010204', 1, NULL);
  196. --2023/6/21 待办退回地址,68测试已经执行过了
  197. alter table sys_task add ReturnUrl varchar(1024)
  198. go
  199. update sys_menu set viewPath='selfcontactdetail' where menuno='S010203'
  200. update sys_menu set viewPath='selfcontactstudetail' where menuno='T012602'
  201. go
  202. --2023/6/29 日报表增加字段为“任务标题“
  203. alter table pr_daily_report add tasktitle varchar(50)
  204. --- 2023.6.29
  205. insert into sys_function_code
  206. values('E0107','学校实习计划','E01',7);
  207. insert into sys_menu
  208. values
  209. ('E0107','7','学校实习计划','OrderedListOutlined','','/plan/school','E01','','0','1','1','E0107',1,null),
  210. ('E010701','1','学校实习计划','','views/practice/plan/school/practicebase-index','/practicebase-list','E0107','','0','0','1','E0107',1,null),
  211. ('E010702','2','查看学校实习计划','','views/practice/plan/school/practicebase-detail','/practicebase-detail','E0107','','0','0','1','E0107',1,null);
  212. --- 2023.6.30
  213. alter table pm_practice_student_intention add IntentionCityID varchar(50);
  214. alter table pm_practice_student_intention add constraint FK_Reference_1001 foreign key (IntentionCityID)
  215. references sys_area (AreaID) on delete restrict on update restrict;
  216. alter table sys_area add orderNo int;
  217. update sys_area set orderNo=1 where areaID='156445300';
  218. update sys_area set orderNo=2 where ParentAreaID='156440000' and areaID<>'156445300';
  219. --- 2023.07.04 按钮权限
  220. insert into sys_function_code
  221. values
  222. ('T01080100','查看','T010801','0'),
  223. ('T01080101','新增','T010801','1'),
  224. ('T01080102','修改','T010801','2'),
  225. ('T01080103','删除','T010801','3'),
  226. ('T01080200','查看','T010802','0'),
  227. ('T01080201','新增','T010802','1'),
  228. ('T01080202','修改','T010802','2'),
  229. ('T01080203','删除','T010802','3'),
  230. ('T011200','查看','T0112','0'),
  231. ('T011201','生成实习任务','T0112','1'),
  232. ('T011202','指派管理人员','T0112','2'),
  233. ('T011203','指派单位岗位','T0112','3'),
  234. ('T011204','删除任务','T0112','4'),
  235. ('T011400','查看','T0114','0'),
  236. ('T011401','指派单位岗位','T0114','1');
  237. ---2023.7.4 日报改成日常作业
  238. update sys_menu set MenuName='日常作业' where MenuName='日报';
  239. update sys_menu set MenuName='日常作业列表' where MenuName='日报列表';
  240. update sys_menu set MenuName='查看日常作业' where MenuName='查看日报';
  241. alter table pr_daily_report add TaskTitle varchar(200);
  242. insert into sys_function_code
  243. values
  244. ('T01380100','查看','T013801',0),
  245. ('T01380101','导入成绩','T013801',1),
  246. ('T01380102','录入成绩','T013801',2),
  247. ('T01380200','查看','T013802',0),
  248. ('T01380201','录入成绩','T013802',1);
  249. update sys_function_code set FunctionName=replace(FunctionName,'日报','日常作业') where FunctionName like '%日报%';
  250. update sys_function_code set FunctionName='实习基地管理' where FunctionCode='T010403';
  251. insert into sys_function_code
  252. values
  253. ('T01040300','查看','T010403',0),
  254. ('T01040301','新增','T010403',1),
  255. ('T01040302','导入','T010403',2),
  256. ('T01040303','编辑','T010403',3),
  257. ('T01040304','删除','T010403',4);
  258. insert into sys_function_code
  259. values
  260. ('T01040100','查看','T010401',0),
  261. ('T01040101','新增','T010401',1),
  262. ('T01040102','导入','T010401',2),
  263. ('T01040103','编辑','T010401',3),
  264. ('T01040104','删除','T010401',4);
  265. insert into sys_function_code
  266. values
  267. ('T010600','查看','T0106',0),
  268. ('T010601','新增','T0106',1),
  269. ('T010602','导入','T0106',2),
  270. ('T010603','编辑','T0106',3),
  271. ('T010604','删除','T0106',4);
  272. insert into sys_function_code
  273. values
  274. ('T01160100','查看','T011601',0),
  275. ('T01160101','审核','T011601',1);
  276. insert into sys_function_code
  277. values
  278. ('T011800','查看','T0118',0),
  279. ('T011801','审核','T0118',1);
  280. insert into sys_function_code
  281. values
  282. ('T012000','查看','T0120',0),
  283. ('T012001','新增','T0120',1),
  284. ('T012002','导入','T0120',2),
  285. ('T012003','编辑','T0120',3),
  286. ('T012004','删除','T0120',4),
  287. ('T012005','通知补实习','T0120',5);
  288. insert into sys_function_code
  289. values
  290. ('T012600','查看','T0126',0),
  291. ('T012601','审核','T0126',1);
  292. insert into sys_function_code
  293. values
  294. ('T01300100','查看','T013001',0),
  295. ('T01300101','编辑','T013001',1),
  296. ('T01300102','删除','T013001',2);
  297. insert into sys_function_code
  298. values
  299. ('T01300400','查看','T013004',0),
  300. ('T01300401','审核','T013004',1);
  301. insert into sys_function_code
  302. values
  303. ('T01300700','查看','T013007',0),
  304. ('T01300701','审核','T013007',1);
  305. insert into sys_function_code
  306. values
  307. ('T0122020100','查看','T01220201',0),
  308. ('T0122020101','评阅','T01220201',1);
  309. insert into sys_function_code
  310. values
  311. ('T0122030100','查看','T01220301',0),
  312. ('T0122030101','评阅','T01220301',1);
  313. insert into sys_function_code
  314. values
  315. ('T0122040100','查看','T01220401',0),
  316. ('T0122040101','评阅','T01220401',1);
  317. insert into sys_function_code
  318. values
  319. ('T01360100','查看','T013601',0),
  320. ('T01360101','新增','T013601',1),
  321. ('T01360102','修改','T013601',2),
  322. ('T01360103','删除','T013601',3);
  323. insert into sys_function_code
  324. values
  325. ('T0136030100','查看','T01360301',0),
  326. ('T0136030101','新增','T01360301',1),
  327. ('T0136030102','修改','T01360301',2),
  328. ('T0136030103','删除','T01360301',3);
  329. insert into sys_function_code
  330. values
  331. ('T0199010100','查看','T01990101',0),
  332. ('T0199010101','新增','T01990101',1),
  333. ('T0199010102','启用','T01990101',2),
  334. ('T0199010103','禁用','T01990101',3),
  335. ('T0199010104','修改密码','T01990101',4);
  336. insert into sys_function_code
  337. values
  338. ('T0199010200','查看','T01990102',0),
  339. ('T0199010201','新增','T01990102',1),
  340. ('T0199010202','编辑','T01990102',2),
  341. ('T0199010203','删除','T01990102',3);
  342. insert into sys_function_code
  343. values
  344. ('S010200','查看','S0102',0),
  345. ('S010201','新增','S0102',1),
  346. ('S010202','编辑','S0102',2),
  347. ('S010203','删除','S0102',3);
  348. insert into sys_function_code
  349. values
  350. ('S010400','查看','S0104',0),
  351. ('S010401','发起申请','S0104',1),
  352. ('S010402','编辑','S0104',2),
  353. ('S010403','删除','S0104',3);
  354. insert into sys_function_code
  355. values
  356. ('S010500','查看','S0105',0),
  357. ('S010501','新增','S0105',1),
  358. ('S010502','编辑','S0105',2),
  359. ('S010503','删除','S0105',3);
  360. insert into sys_function_code
  361. values
  362. ('S010700','查看','S0107',0),
  363. ('S010701','新增','S0107',1),
  364. ('S010702','编辑','S0107',2),
  365. ('S010703','删除','S0107',3);
  366. insert into sys_function_code
  367. values
  368. ('S010800','查看','S0108',0),
  369. ('S010801','新增','S0108',1),
  370. ('S010802','编辑','S0108',2),
  371. ('S010803','删除','S0108',3);
  372. insert into sys_function_code
  373. values
  374. ('S010900','查看','S0109',0),
  375. ('S010901','新增','S0109',1),
  376. ('S010902','编辑','S0109',2),
  377. ('S010903','删除','S0109',3);
  378. insert into sys_function_code
  379. values
  380. ('S01220105','删除','S012201',5);
  381. insert into sys_function_code
  382. values
  383. ('S01220206','删除','S012202',5);
  384. insert into sys_function_code
  385. values
  386. ('S01220306','删除','S012203',6);
  387. insert into sys_function_code
  388. values
  389. ('S01220406','删除','S012204',6);
  390. --2023-7-7 考勤情况统计报表
  391. INSERT INTO sys_function_code (`FunctionCode`, `FunctionName`, `ParentFunctionCode`, `OrderNo`)
  392. VALUES ('T013008', '考勤情况统计报表', 'T0130', 8);
  393. INSERT INTO sys_menu (`MenuNo`, `OrderNo`, `MenuName`, `Icon`, `ViewPath`, `Url`, `ParentMenuNo`, `Description`, `IsTopMenu`, `IsVisible`, `IsLeaf`, `FunctionCode`, `RecordStatus`, `ShortcutIcon`)
  394. VALUES ('T013008', 8, '考勤情况统计报表', '', 'views/attendanceReport', '/attendance/attendanceReport', 'T0130', '', 0, 1, 1, 'T013008', 1, '');
  395. --2023-7-10学校信息管理模块增加按钮权限
  396. insert into sys_function_code
  397. values
  398. ('T01020100','查看','T010201',0),
  399. ('T01020101','新增','T010201',1),
  400. ('T01020102','编辑','T010201',2),
  401. ('T01020103','删除','T010201',3);
  402. insert into sys_function_code
  403. values
  404. ('T0102020100','查看','T01020201',0),
  405. ('T0102020101','新增','T01020201',1),
  406. ('T0102020102','编辑','T01020201',2),
  407. ('T0102020103','删除','T01020201',3);
  408. insert into sys_function_code
  409. values
  410. ('T0102020200','查看','T01020202',0),
  411. ('T0102020201','新增','T01020202',1),
  412. ('T0102020202','编辑','T01020202',2),
  413. ('T0102020203','删除','T01020202',3),
  414. ('T0102020204','同步','T01020202',4),
  415. ('T0102020205','导入','T01020202',5);
  416. insert into sys_function_code
  417. values
  418. ('T0102020300','查看','T01020203',0),
  419. ('T0102020301','新增','T01020203',1),
  420. ('T0102020302','编辑','T01020203',2),
  421. ('T0102020303','删除','T01020203',3),
  422. ('T0102020304','同步','T01020203',4),
  423. ('T0102020305','导入','T01020203',5);
  424. insert into sys_function_code
  425. values
  426. ('T01020300','查看','T010203',0),
  427. ('T01020301','新增','T010203',1),
  428. ('T01020302','编辑','T010203',2),
  429. ('T01020303','删除','T010203',3),
  430. ('T01020304','同步','T010203',4),
  431. ('T01020305','导入','T010203',5);
  432. insert into sys_function_code
  433. values
  434. ('T01020400','查看','T010204',0),
  435. ('T01020401','新增','T010204',1),
  436. ('T01020402','编辑','T010204',2),
  437. ('T01020403','删除','T010204',3),
  438. ('T01020404','同步','T010204',4),
  439. ('T01020405','导入','T010204',5);
  440. insert into sys_function_code
  441. values
  442. ('T01020500','查看','T010205',0),
  443. ('T01020501','新增','T010205',1),
  444. ('T01020502','编辑','T010205',2),
  445. ('T01020503','删除','T010205',3);
  446. ---2023-7-13 学生端实习手册
  447. insert into sys_function_code
  448. values('S0125','实习手册','S01',15);
  449. insert into sys_menu
  450. values('S0125',15,'实习手册','FolderOpenOutlined','views/databank/practicenote/studentlist','/practicenote/studentlist','T01','',0,1,0,'S0125',1,null);
  451. --- 2023.08.02
  452. create table Sys_Log
  453. (
  454. LogID varchar(50) not null,
  455. PageName varchar(500),
  456. PageUrl varchar(500),
  457. ActionName varchar(500),
  458. UserID varchar(50),
  459. LogTime datetime,
  460. primary key (LogID)
  461. );
  462. alter table Sys_Log add constraint FK_Reference_124 foreign key (UserID)
  463. references sys_user (UserID) on delete restrict on update restrict;
  464. insert into sys_function_code
  465. values('T019903','日志管理','T0199','106');
  466. insert into sys_menu
  467. values('T019903','103','日志管理','','views/log','/log','T0199',null,0,1,1,'T019903',1,null);
  468. --- 2023.08.18
  469. alter table ch_check add CheckDepartmentName varchar(300);
  470. --- 2023.09.07
  471. ---新增表结构pb_ledgerRecord【问题台账登记表】
  472. drop table if exists pb_ledgerRecord;
  473. /*==============================================================*/
  474. /* Table: pb_ledgerRecord */
  475. /*==============================================================*/
  476. create table pb_ledgerRecord
  477. (
  478. ProblemLedgerRecordID varchar(50) not null,
  479. SchoolYearID varchar(50),
  480. CollegeID varchar(50),
  481. FeedbackDate datetime,
  482. ProblemCharacteristics int comment '关联字典',
  483. ProblemDesc text,
  484. ResolvePlan text,
  485. IsResolve int,
  486. ResolveDate datetime,
  487. RecordStatus int,
  488. CreateBy varchar(50),
  489. CreateTime datetime,
  490. UpdateBy varchar(50),
  491. UpdateTime datetime,
  492. primary key (ProblemLedgerRecordID)
  493. );
  494. alter table pb_ledgerRecord add constraint FK_Reference_116 foreign key (SchoolYearID)
  495. references cf_schoolyear (SchoolYearID) on delete restrict on update restrict;
  496. alter table pb_ledgerRecord add constraint FK_Reference_117 foreign key (CollegeID)
  497. references cf_college (CollegeID) on delete restrict on update restrict;
  498. ---插入菜单、按钮功能码数据
  499. insert into sys_function_code values('T0140','问题台账登记','T01',20)
  500. insert into sys_menu values('T0140',20,'问题台账登记','FilePptOutlined','views/problem/index','/index','T01',null,0,1,1,'T0140',1,null)
  501. insert sys_function_code VALUES('T014000','查看','T0140',1)
  502. insert sys_function_code VALUES('T014001','新增','T0140',2)
  503. insert sys_function_code VALUES('T014002','编辑','T0140',3)
  504. insert sys_function_code VALUES('T014003','删除','T0140',4)
  505. ---插入字典【问题特性】
  506. insert sys_dictionary values('Characteristics','问题特性',25,1);
  507. insert sys_dictionary_item values('24870d11-ad0d-175e-a6c5-7085c84ej79e','','Characteristics',1,'共性',1,1,0);
  508. insert sys_dictionary_item values('24870d11-84id-15rt-iuj5-784oj467j78h','','Characteristics',2,'个性',2,1,0);