浜屾湡.sql 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. drop table if exists jetplasma_alteration_apply;
  2. CREATE TABLE `jetplasma_alteration_apply` (
  3. `id` bigint(20) not null auto_increment primary key comment '主键ID',
  4. `no` varchar(20) COMMENT '申请编号',
  5. `type` varchar(20) NOT NULL COMMENT '变更类型',
  6. `child_type` varchar(50) NOT NULL COMMENT '变更子类型',
  7. `item_type` varchar(100) NOT NULL COMMENT '变更项目',
  8. `apply_depart` bigint(20) NULL DEFAULT NULL COMMENT '申请部门',
  9. `apply_user` bigint(20) NULL DEFAULT NULL COMMENT '申请人',
  10. `apply_date` datetime COMMENT '申请日期',
  11. `reason` longtext COMMENT '变更原因',
  12. `description` longtext COMMENT '变更详细描述',
  13. `problem` longtext COMMENT '问题描述',
  14. `suggest` longtext COMMENT '改善建议',
  15. `level` varchar(1) COMMENT '重要程度: S / A / B / C',
  16. `approve_status` int COMMENT '审核状态:1 - 创建, 2 - 审核中 3 - 审核未通过 4 - 审核通过',
  17. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
  18. ) engine=innodb comment = '变更申请表';
  19. INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2023, '变更管理', 0, 6, 'alteration', null, null, 1, 0, 'M', '0', '0', '', 'table', 'admin', '2024-05-17 16:39:18', 'admin', '2024-05-22 11:48:34', '');
  20. INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2053, '变更申请', 2023, 1, 'apply', 'alteration/apply/index', null, 1, 0, 'C', '0', '0', '', 'edit', 'admin', '2024-05-17 16:44:03', 'admin', '2024-05-17 21:27:53', '');
  21. INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2054, 'ECO验证', 2023, 2, 'verify', 'alteration/verify/index', null, 1, 0, 'C', '0', '0', '', 'server', 'admin', '2024-05-17 16:49:08', 'admin', '2024-05-23 17:52:02', '');
  22. INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2055, 'ECN执行', 2023, 3, 'execute', 'alteration/execute/index', null, 1, 0, 'C', '0', '0', 'jetplasma:alteration:execute', 'excel', 'admin', '2024-05-17 16:50:32', 'admin', '2024-05-25 00:34:14', '');
  23. INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2056, 'DEMO管理', 0, 7, 'demo', null, null, 1, 0, 'M', '0', '0', '', 'clipboard', 'admin', '2024-05-17 16:51:07', 'admin', '2024-05-22 17:55:37', '');
  24. INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2057, 'DEMO申请', 2027, 1, 'demo/apply', 'demo/apply/index', null, 1, 0, 'C', '0', '0', '', 'druid', 'admin', '2024-05-17 16:52:28', 'admin', '2024-05-25 11:31:50', '');
  25. INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2058, 'DEMO执行', 2027, 2, 'demo/execute', 'demo/execute/index', '', 1, 0, 'C', '0', '0', 'jetplasma:demo:execute', 'job', 'admin', '2024-05-17 16:53:45', 'admin', '2024-05-25 21:16:11', '');
  26. INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2059, '验证报告预览', 2054, 1, '', null, null, 1, 0, 'F', '0', '0', 'jetplasma:verify:preview', '#', 'admin', '2024-05-25 00:17:24', '', null, '');
  27. INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2060, '验证报告下载', 2054, 1, '', null, null, 1, 0, 'F', '0', '0', 'jetplasma:verify:download', '#', 'admin', '2024-05-25 00:17:49', 'admin', '2024-05-25 00:21:00', '');
  28. INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2061, '进度执行报告预览', 2055, 0, '', null, null, 1, 0, 'F', '0', '0', 'jetplasma:progress:preview', '#', 'admin', '2024-05-25 00:20:14', '', null, '');
  29. INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2062, '进度执行报告下载', 2055, 1, '', null, null, 1, 0, 'F', '0', '0', 'jetplasma:progress:download', '#', 'admin', '2024-05-25 00:20:44', 'admin', '2024-05-25 00:21:10', '');
  30. INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2063, '技术要求附件预览', 2057, 1, '', null, null, 1, 0, 'F', '0', '0', 'jetplasma:demo:preview', '#', 'admin', '2024-05-25 16:42:40', '', null, '');
  31. INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2064, '技术要求附件下载', 2057, 2, '', null, null, 1, 0, 'F', '0', '0', 'jetplasma:demo:download', '#', 'admin', '2024-05-25 16:43:01', '', null, '');
  32. INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2065, '阶段成果报告预览', 2058, 0, '', null, null, 1, 0, 'F', '0', '0', 'jetplasma:demo:exec:preview', '#', 'admin', '2024-05-25 23:51:16', '', null, '');
  33. INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2066, '阶段成果报告下载', 2058, 1, '', null, null, 1, 0, 'F', '0', '0', 'jetplasma:demo:exec:download', '#', 'admin', '2024-05-25 23:51:38', '', null, '');
  34. INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2067, 'ECO确认', 2054, 3, '', null, null, 1, 0, 'F', '0', '0', 'jetplasma:verify:confirm', '#', 'admin', '2024-06-02 17:04:24', '', null, '');
  35. update sys_menu set order_num = 1, path = 'approve' , component = 'flow/approve/index' where menu_id = 2001;
  36. update sys_menu set order_num = 2, path = 'definition' ,component = 'flow/definition/index' where menu_id = 2002;
  37. update sys_menu set order_num = 8, path = 'flow' where menu_id = 2013;
  38. update sys_menu set order_num = 9 where menu_id = 2020;
  39. alter table app_master change cip_id alteration_id bigint null comment '变更申请编号';
  40. alter table app_master
  41. add eco_id bigint null comment 'ECO验证ID' after alteration_id;
  42. alter table app_master
  43. add demo_id int null comment 'demo编号' after eco_id;
  44. drop table if exists jetplasma_eco;
  45. CREATE TABLE `jetplasma_eco` (
  46. `id` bigint(20) not null auto_increment primary key comment '主键ID',
  47. `alteration_id` bigint(20) NULL DEFAULT NULL COMMENT '变更申请ID',
  48. `alteration_no` varchar(20) COMMENT '申请编号',
  49. `item_type` varchar(100) NOT NULL COMMENT '变更项目',
  50. `approve_status` int COMMENT '审核状态:1 - 创建, 2 - 审核中 3 - 审核不通过 4 - 审核通过',
  51. `description` longtext COMMENT '验证过程描述',
  52. `result` int NULL DEFAULT NULL COMMENT '验证结果: 1 - 通过,0 - 未通过',
  53. `report` varchar(200) COMMENT '验证报告',
  54. `confirm` int COMMENT '是否已确认:1 - 已确认, 0 - 未确认',
  55. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
  56. ) engine=innodb comment = 'ECO验证';
  57. drop table if exists jetplasma_ecn;
  58. create table jetplasma_ecn
  59. (
  60. id bigint auto_increment comment '主键ID' primary key,
  61. alteration_id bigint null comment '变更申请ID',
  62. alteration_no varchar(20) null comment '变更申请编号',
  63. eco_id bigint null comment 'ECO编号',
  64. ecn_no varchar(20) null comment 'ECN单号',
  65. device_type varchar(500) null comment '设备类型',
  66. module varchar(200) null comment '模块',
  67. ecn_depart varchar(200) null comment '负责部门',
  68. ecn_user varchar(200) null comment '负责人',
  69. pri int(1) null comment 'pri',
  70. suggestion longtext null comment '改善方案',
  71. open_day datetime null comment 'OPEN_DAY',
  72. due_day datetime null comment 'OPEN_DAY',
  73. close_day datetime null comment 'OPEN_DAY',
  74. status varchar(10) null comment '状态',
  75. create_at datetime default CURRENT_TIMESTAMP null comment '创建时间'
  76. ) engine=innodb comment 'ECN执行';
  77. drop table if exists jetplasma_ecn_progress;
  78. CREATE TABLE `jetplasma_ecn_progress` (
  79. `id` bigint(20) not null auto_increment primary key comment '主键ID',
  80. `ecn_id` bigint(20) NULL DEFAULT NULL COMMENT '关联ECN ID',
  81. `user_id` bigint(20) NULL DEFAULT NULL COMMENT '填写人',
  82. `depart_id` bigint(20) NULL DEFAULT NULL COMMENT '填写部门',
  83. `apply_date` datetime NULL COMMENT '填写日期',
  84. `description` longtext COMMENT '进度描述',
  85. `report` varchar(200) COMMENT '进度执行报告',
  86. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
  87. ) engine=innodb comment = 'ECN执行进度';
  88. drop table if exists jetplasma_ecn_spread;
  89. CREATE TABLE `jetplasma_ecn_spread` (
  90. `id` bigint(20) not null auto_increment primary key comment '主键ID',
  91. `ecn_id` bigint(20) NULL DEFAULT NULL COMMENT '所属ECN编号',
  92. `alteration_no` varchar(20) NULL DEFAULT NULL COMMENT '变更申请编号',
  93. `device_type` varchar(200) NULL DEFAULT NULL COMMENT '设备类型',
  94. `remark` varchar(200) COMMENT '备注',
  95. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
  96. ) engine=innodb comment = 'ECN展开机型';
  97. drop table if exists jetplasma_demo;
  98. CREATE TABLE `jetplasma_demo` (
  99. `id` bigint(20) not null auto_increment primary key comment '主键ID',
  100. `demo_no` varchar(20) NULL DEFAULT NULL COMMENT '申请单号',
  101. `customer` varchar(20) NULL DEFAULT NULL COMMENT '客户名称',
  102. `device_type` varchar(200) NULL DEFAULT NULL COMMENT '产品类型',
  103. `order_num` int(4) COMMENT '预计订单量',
  104. `requirements` longtext comment '技术要求',
  105. `saler` varchar(200) NULL DEFAULT NULL COMMENT '负责销售',
  106. `delivery` datetime comment '预计交付日期',
  107. `blanket_qty` int comment 'Blanket Qty',
  108. `paffern_qty` int comment 'Paffern Qty',
  109. `structure_qty` int comment 'Structure Qty',
  110. `wafer_return` varchar(100) comment 'Wafer Return Or Not',
  111. `por_chamber` varchar(100) comment 'POR chamber type',
  112. `attachment` varchar(100) comment '技术要求附件',
  113. `approve_status` int COMMENT '审核状态:1 - 创建, 2 - 审核中 3 - 审核不通过 4- 审核通过',
  114. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
  115. ) engine=innodb comment = 'DEMO申请表';
  116. drop table if exists jetplasma_demo_execute;
  117. CREATE TABLE `jetplasma_demo_execute` (
  118. `id` bigint(20) not null auto_increment primary key comment '主键ID',
  119. `demo_id` bigint(20) NULL DEFAULT NULL COMMENT 'DEMO编号',
  120. `exec_no` varchar(20) NULL DEFAULT NULL COMMENT '执行编号',
  121. `exec_date` datetime NULL DEFAULT NULL COMMENT '执行日期',
  122. `principals` varchar(200) NULL DEFAULT NULL COMMENT '执行负责人',
  123. `exec_status` int(1) NULL DEFAULT NULL COMMENT '执行状态:1 - 进行中, 2 - 已完成',
  124. `exec_result` varchar(20) NULL DEFAULT NULL COMMENT '执行结果, positive match、partial match、miss match',
  125. `suggestion` longtext COMMENT '建议',
  126. `conclusion` longtext COMMENT '销售结论',
  127. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
  128. ) engine=innodb comment = 'DEMO执行表';
  129. drop table if exists jetplasma_demo_execute_progress;
  130. CREATE TABLE `jetplasma_demo_execute_progress` (
  131. `id` bigint(20) not null auto_increment primary key comment '主键ID',
  132. `exec_id` bigint(20) NULL DEFAULT NULL COMMENT 'demo执行ID',
  133. `description` longtext COMMENT '执行进展描述',
  134. `report` varchar(200) COMMENT '阶段成果报告',
  135. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
  136. ) engine=innodb comment = 'DEMO执行进度表';
  137. alter table jetplasma_demo_execute
  138. add attachment varchar(200) null comment '附件' after conclusion;
  139. drop view if exists jetplasma_demo_execute_view;
  140. create view jetplasma_demo_execute_view as
  141. select e.*, d.customer, d.device_type, d.saler, d.requirements from jetplasma_demo d, jetplasma_demo_execute e where d.id = e.demo_id;
  142. INSERT INTO jetplasma.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2042, 'DEMO执行附件预览', 2029, 2, '', null, null, 1, 0, 'F', '0', '0', 'jetplasma:demo:attachment:preview', '#', 'admin', '2021-07-22 16:23:23', 'admin', '2021-07-22 16:23:23', null);preview', '#', 'admin', '2024-06-03 18:46:56', '', null, '');
  143. INSERT INTO jetplasma.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2043, 'DEMO执行附件下载', 2029, 3, '', null, null, 1, 0, 'F', '0', '0', 'jetplasma:demo:attachment:download', '#', 'admin', '2024-06-03 18:47:24', '', null, '');
  144. INSERT INTO jetplasma.sys_dict_type (dict_id, dict_name, dict_type, status, create_by, create_time, update_by, update_time, remark) VALUES (100, '流程流转状态', 'flow_status', '0', 'admin', '2024-05-28 20:33:24', '', null, null);
  145. INSERT INTO jetplasma.sys_dict_type (dict_id, dict_name, dict_type, status, create_by, create_time, update_by, update_time, remark) VALUES (101, '是否发布', 'is_publish', '0', 'admin', '2024-06-04 09:43:29', '', null, null);
  146. INSERT INTO jetplasma.sys_dict_type (dict_id, dict_name, dict_type, status, create_by, create_time, update_by, update_time, remark) VALUES (102, '重要程度', 'level', '0', 'admin', '2024-06-04 17:05:24', '', null, null);
  147. INSERT INTO jetplasma.sys_dict_data (dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (100, 0, '待提交', '0', 'flow_status', null, 'info', 'N', '0', 'admin', '2024-05-28 20:34:27', 'admin', '2024-05-28 20:35:07', null);
  148. INSERT INTO jetplasma.sys_dict_data (dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (101, 0, '审批中', '1', 'flow_status', null, 'primary', 'N', '0', 'admin', '2024-05-28 20:35:31', '', null, null);
  149. INSERT INTO jetplasma.sys_dict_data (dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (102, 0, '审批通过', '2', 'flow_status', null, 'primary', 'N', '0', 'admin', '2024-05-28 20:35:41', '', null, null);
  150. INSERT INTO jetplasma.sys_dict_data (dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (103, 0, '已完成', '3', 'flow_status', null, 'success', 'N', '0', 'admin', '2024-05-28 20:36:02', 'admin', '2024-06-04 11:11:35', null);
  151. INSERT INTO jetplasma.sys_dict_data (dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (104, 0, '审批不通过', '9', 'flow_status', null, 'danger', 'N', '0', 'admin', '2024-05-30 17:17:26', '', null, null);
  152. INSERT INTO jetplasma.sys_dict_data (dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (105, 0, '失效', '10', 'flow_status', null, 'danger', 'N', '0', 'admin', '2024-05-30 17:43:08', 'admin', '2024-06-04 11:11:56', null);
  153. INSERT INTO jetplasma.sys_dict_data (dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (106, 0, '未发布', '0', 'is_publish', null, 'info', 'N', '0', 'admin', '2024-06-04 09:43:50', 'admin', '2024-06-04 14:49:19', null);
  154. INSERT INTO jetplasma.sys_dict_data (dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (107, 1, '已发布', '1', 'is_publish', null, 'success', 'N', '0', 'admin', '2024-06-04 09:44:12', '', null, null);
  155. INSERT INTO jetplasma.sys_dict_data (dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (108, 0, 'S', 'S', 'level', null, 'default', 'N', '0', 'admin', '2024-06-04 17:05:51', '', null, null);
  156. INSERT INTO jetplasma.sys_dict_data (dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (109, 0, 'A', 'A', 'level', null, 'default', 'N', '0', 'admin', '2024-06-04 17:05:58', '', null, null);
  157. INSERT INTO jetplasma.sys_dict_data (dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (110, 0, 'B', 'B', 'level', null, 'default', 'N', '0', 'admin', '2024-06-04 17:06:05', '', null, null);
  158. INSERT INTO jetplasma.sys_dict_data (dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (111, 0, 'C', 'C', 'level', null, 'default', 'N', '0', 'admin', '2024-06-04 17:06:35', '', null, null);
  159. -- 2024-06-15
  160. INSERT INTO jetplasma.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2044, 'ECO新增', 2024, 1, '', null, null, 1, 0, 'F', '0', '0', 'jetplasma:eco:add', '#', 'admin', '2024-06-15 14:39:43', '', null, '');
  161. INSERT INTO jetplasma.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2045, 'ECN新增', 2025, 2, '', null, null, 1, 0, 'F', '0', '0', 'jetplasma:ecn:add', '#', 'admin', '2024-06-15 14:40:10', '', null, '');
  162. INSERT INTO jetplasma.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2046, 'DEMO执行新增', 2028, 3, '', null, null, 1, 0, 'F', '0', '0', 'jetplasma:demo:execute:add', '#', 'admin', '2024-06-15 14:40:51', 'admin', '2024-06-15 14:41:26', '');
  163. INSERT INTO jetplasma.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2047, '执行状态', 2029, 0, '', null, null, 1, 0, 'F', '0', '0', 'jetplasma:demo:execute:complete', '#', 'admin', '2024-06-15 16:38:10', '', null, '');
  164. INSERT INTO jetplasma.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2048, '首页-变更管理跟踪报表导出', 2023, 4, '', null, null, 1, 0, 'F', '0', '0', 'jetplasma:trace:alter:export', '#', 'admin', '2024-06-15 18:55:59', '', null, '');
  165. INSERT INTO jetplasma.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) VALUES (2049, '首页-DEMO管理跟踪报表导出', 2027, 3, '', null, null, 1, 0, 'F', '0', '0', 'jetplasma:trace:demo:export', '#', 'admin', '2024-06-15 18:56:41', '', null, '');
  166. -- 2024-06-16
  167. update sys_dict_data set dict_value = '8' where dict_code=103;
  168. drop view if exists jetplasma_device_problem_all;
  169. CREATE VIEW jetplasma_device_problem_all AS
  170. select `jetplasma`.`jetplasma_device_problem_install`.`pro_no` AS `pro_no`,
  171. `jetplasma`.`jetplasma_device_problem_install`.`device_id` AS `device_id`,
  172. `jetplasma`.`jetplasma_device_problem_install`.`type` AS `type`,
  173. `jetplasma`.`jetplasma_device_problem_install`.`subject` AS `subject`,
  174. `jetplasma`.`jetplasma_device_problem_install`.`depart_id` AS `depart_id`,
  175. `jetplasma`.`jetplasma_device_problem_install`.`user_id` AS `user_id`,
  176. `jetplasma`.`jetplasma_device_problem_install`.`principal` AS `principal`,
  177. `jetplasma`.`jetplasma_device_problem_install`.`CREATE_AT` AS `create_at`,
  178. `jetplasma`.`jetplasma_device_problem_install`.`complete_date` AS `complete_date`,
  179. `jetplasma`.`jetplasma_device_problem_install`.`status` AS `status`,
  180. NULL AS `expect_date`,
  181. 'install' AS `pro_type`,
  182. `jetplasma`.`jetplasma_device_problem_install`.`case_id` AS `case_id`,
  183. `jetplasma`.`jetplasma_device_problem_install`.`id` AS `id`
  184. from `jetplasma`.`jetplasma_device_problem_install`
  185. union all
  186. select `jetplasma`.`jetplasma_device_problem_test`.`pro_no` AS `pro_no`,
  187. `jetplasma`.`jetplasma_device_problem_test`.`device_id` AS `device_id`,
  188. `jetplasma`.`jetplasma_device_problem_test`.`type` AS `type`,
  189. `jetplasma`.`jetplasma_device_problem_test`.`subject` AS `subject`,
  190. `jetplasma`.`jetplasma_device_problem_test`.`depart_id` AS `depart_id`,
  191. `jetplasma`.`jetplasma_device_problem_test`.`user_id` AS `user_id`,
  192. `jetplasma`.`jetplasma_device_problem_test`.`principal` AS `principal`,
  193. `jetplasma`.`jetplasma_device_problem_test`.`CREATE_AT` AS `create_at`,
  194. `jetplasma`.`jetplasma_device_problem_test`.`complete_date` AS `complete_date`,
  195. `jetplasma`.`jetplasma_device_problem_test`.`status` AS `status`,
  196. NULL AS `expect_date`,
  197. 'test' AS `pro_type`,
  198. `jetplasma`.`jetplasma_device_problem_test`.`case_id` AS `case_id`,
  199. `jetplasma`.`jetplasma_device_problem_test`.`id` AS `id`
  200. from `jetplasma`.`jetplasma_device_problem_test`
  201. union all
  202. select `jetplasma`.`jetplasma_device_problem_check`.`pro_no` AS `pro_no`,
  203. `jetplasma`.`jetplasma_device_problem_check`.`device_id` AS `device_id`,
  204. `jetplasma`.`jetplasma_device_problem_check`.`type` AS `type`,
  205. `jetplasma`.`jetplasma_device_problem_check`.`subject` AS `subject`,
  206. `jetplasma`.`jetplasma_device_problem_check`.`depart_id` AS `depart_id`,
  207. `jetplasma`.`jetplasma_device_problem_check`.`user_id` AS `user_id`,
  208. `jetplasma`.`jetplasma_device_problem_check`.`principal` AS `principal`,
  209. `jetplasma`.`jetplasma_device_problem_check`.`CREATE_AT` AS `create_at`,
  210. `jetplasma`.`jetplasma_device_problem_check`.`complete_date` AS `complete_date`,
  211. `jetplasma`.`jetplasma_device_problem_check`.`status` AS `status`,
  212. NULL AS `expect_date`,
  213. 'check' AS `pro_type`,
  214. `jetplasma`.`jetplasma_device_problem_check`.`case_id` AS `case_id`,
  215. `jetplasma`.`jetplasma_device_problem_check`.`id` AS `id`
  216. from `jetplasma`.`jetplasma_device_problem_check`
  217. union all
  218. select `jetplasma`.`jetplasma_device_problem_sale`.`pro_no` AS `pro_no`,
  219. `jetplasma`.`jetplasma_device_problem_sale`.`device_id` AS `device_id`,
  220. `jetplasma`.`jetplasma_device_problem_sale`.`type` AS `type`,
  221. `jetplasma`.`jetplasma_device_problem_sale`.`subject` AS `subject`,
  222. `jetplasma`.`jetplasma_device_problem_sale`.`depart_id` AS `depart_id`,
  223. `jetplasma`.`jetplasma_device_problem_sale`.`user_id` AS `user_id`,
  224. `jetplasma`.`jetplasma_device_problem_sale`.`principal` AS `principal`,
  225. `jetplasma`.`jetplasma_device_problem_sale`.`CREATE_AT` AS `create_at`,
  226. `jetplasma`.`jetplasma_device_problem_sale`.`complete_date` AS `complete_date`,
  227. `jetplasma`.`jetplasma_device_problem_sale`.`status` AS `status`,
  228. `jetplasma`.`jetplasma_device_problem_sale`.`expect_date` AS `expect_date`,
  229. 'sale' AS `pro_type`,
  230. `jetplasma`.`jetplasma_device_problem_sale`.`case_id` AS `case_id`,
  231. `jetplasma`.`jetplasma_device_problem_sale`.`id` AS `id`
  232. from `jetplasma`.`jetplasma_device_problem_sale`;
  233. ---20240626
  234. alter table jetplasma_alteration_apply
  235. add attachment varchar(200) null comment '附件' after approve_status;
  236. alter table jetplasma_alteration_apply
  237. add project varchar(200) null comment '项目' after item_type;
  238. alter table jetplasma_eco
  239. add level varchar(2) null comment '重要程度' after approve_status;
  240. alter table jetplasma_alteration_apply drop column level;
  241. alter table jetplasma_ecn drop column ecn_depart;
  242. alter table jetplasma_ecn drop column ecn_user;
  243. alter table jetplasma_ecn drop column open_day;
  244. alter table jetplasma_ecn drop column due_day;
  245. alter table jetplasma_ecn
  246. add attachment varchar(200) null comment '附件' after status;
  247. alter table jetplasma_demo
  248. change paffern_qty pattern_qty varchar(100) null comment 'Pattern Qty';
  249. alter table jetplasma_demo
  250. add wafer_day datetime null comment 'Wafer交付日期' after delivery;
  251. create table jetplasma_ecn_meta (
  252. `id` bigint(20) not null auto_increment primary key comment '主键ID',
  253. `ecn_id` bigint(20) NULL DEFAULT NULL COMMENT 'ECN编号',
  254. `trace_type` varchar(20) NULL DEFAULT NULL COMMENT '变更追踪事项',
  255. `measure` longtext NULL DEFAULT NULL COMMENT '措施内容',
  256. `user_id` bigint(20) NULL DEFAULT NULL COMMENT '负责人',
  257. `depart_id` bigint(20) NULL DEFAULT NULL COMMENT '负责部门',
  258. `expect_date`datetime DEFAULT null COMMENT '预计完成日期',
  259. `complete_date`datetime DEFAULT null COMMENT '实际完成日期',
  260. `status` varchar(20) NULL DEFAULT NULL COMMENT '状态',
  261. `create_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
  262. ) engine=innodb comment = 'ECN执行辅助信息表';
  263. INSERT INTO jetplasma.sys_dict_type (dict_id, dict_name, dict_type, status, create_by, create_time, update_by, update_time, remark) VALUES (103, 'ECN变更追踪事项', 'trace_type', '0', 'admin', '2024-06-27 23:04:51', '', null, null);
  264. INSERT INTO jetplasma.sys_dict_data (dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time, remark) VALUES (112, 0, '测试', '测试', 'trace_type', null, 'default', 'N', '0', 'admin', '2024-06-27 23:05:09', '', null, null);
  265. alter table jetplasma_eco add open_day datetime null comment 'OPEN DAY' after description;
  266. alter table jetplasma_eco add due_day datetime null comment 'DUE DAY' after open_day;
  267. alter table jetplasma_eco add close_day datetime null comment 'CLOSE DAY' after open_day;
  268. ---20240702
  269. alter table jetplasma_device
  270. add salesman bigint null comment '负责销售' after customer_name;
  271. alter table jetplasma_ecn
  272. add project varchar(200) null comment '项目' after item_type;
  273. ---20240704
  274. update sys_menu set perms='alteration:apply:index' where menu_id=2024;
  275. update sys_menu set perms='alteration:verify:index' where menu_id=2025;
  276. update sys_menu set perms='demo:apply:index' where menu_id=2028;
  277. update sys_menu set perms='jetplasma:device:install' where menu_id=2004;
  278. INSERT INTO jetplasma.sys_menu (menu_id, menu_name, perms, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, icon, create_by, create_time, update_by, update_time, remark) VALUES (2051, '附件预览', 'alteration:attachement:preview', 2024, 2, '', null, null, 1, 0, 'F', '0', '0', '#', 'admin', '2024-07-04 23:38:08', '', null, '');
  279. INSERT INTO jetplasma.sys_menu (menu_id, menu_name, perms, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, icon, create_by, create_time, update_by, update_time, remark) VALUES (2052, '附件下载', 'alteration:attachement:download', 2024, 3, '', null, null, 1, 0, 'F', '0', '0', '#', 'admin', '2024-07-04 23:38:31', '', null, '');
  280. ---20240707
  281. INSERT INTO jetplasma.flow_definition (id, flow_code, flow_name, version, is_publish, from_custom, from_path, create_time, update_time, del_flag, tenant_id) VALUES (8, 'Flow-008', 'ECN审核', '1.0.0', 0, 'N', null, '2024-05-27 16:50:01', '2024-07-04 23:18:09', null, null);
  282. alter table jetplasma_ecn
  283. add approve_status int null comment '审核状态:1 - 创建, 2 - 审核中 3 - 已审核 ' after attachment;