biz.sql 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. drop table if exists biz_sample_t;
  2. create table biz_sample_t (
  3. id bigint(20) not null auto_increment comment '编号',
  4. data_type varchar(15) default '' comment '数据类型',
  5. sample_type varchar(127) default '' comment '样片类型',
  6. sample_model varchar(127) default '' comment '样片型号',
  7. sample_image varchar(255) default '' comment '样片图片',
  8. create_by varchar(64) default '' comment '创建者',
  9. create_time datetime comment '创建时间',
  10. update_by varchar(64) default '' comment '更新者',
  11. update_time datetime comment '更新时间',
  12. primary key (id)
  13. ) engine=innodb comment = '样片表';
  14. drop table if exists biz_emi_measurement_t;
  15. create table biz_emi_measurement_t (
  16. id bigint(20) not null auto_increment comment '编号',
  17. sample_model varchar(127) comment '样片型号',
  18. temperature_k INT comment '温度(K)',
  19. wavelength_um DECIMAL(10,2) comment '波段(μm)',
  20. emi_correction1 DECIMAL(10,4) comment 'EMI-修正1',
  21. emi_correction2 DECIMAL(10,4) comment 'EMI-修正2',
  22. emi_correction3 DECIMAL(10,4) comment 'EMI-修正3',
  23. emi_correction4 DECIMAL(10,4) comment 'EMI-修正4',
  24. emi_correction5 DECIMAL(10,4) comment 'EMI-修正5',
  25. mean_value DECIMAL(10,4) comment '均值',
  26. create_by varchar(64) default '' comment '创建者',
  27. create_time datetime comment '创建时间',
  28. update_by varchar(64) default '' comment '更新者',
  29. update_time datetime comment '更新时间',
  30. primary key (id)
  31. ) engine=innodb comment = '测量数据表';
  32. drop table if exists biz_integrated_data_t;
  33. create table biz_integrated_data_t (
  34. id bigint(20) not null auto_increment comment '编号',
  35. sample_model varchar(127) comment '样片型号',
  36. temperature_k INT comment '温度(K)',
  37. wavelength_um varchar(63) comment '波段(μm)',
  38. integral_value1 DECIMAL(10,4) comment '积分值1',
  39. integral_value2 DECIMAL(10,4) comment '积分值2',
  40. integral_value3 DECIMAL(10,4) comment '积分值3',
  41. integral_value4 DECIMAL(10,4) comment '积分值4',
  42. integral_value5 DECIMAL(10,4) comment '积分值5',
  43. standard_dev DECIMAL(10,4) comment 'STDEV',
  44. create_by varchar(64) default '' comment '创建者',
  45. create_time datetime comment '创建时间',
  46. update_by varchar(64) default '' comment '更新者',
  47. update_time datetime comment '更新时间',
  48. primary key (id)
  49. ) engine=innodb comment = '积分数据表';
  50. drop table if exists biz_brdf_data_t;
  51. create table biz_brdf_data_t (
  52. id bigint(20) not null auto_increment comment '编号',
  53. sample_model varchar(127) comment '样片型号',
  54. temperature_k INT comment '温度(K)',
  55. wavelength_um varchar(63) comment '波段(μm)',
  56. theta_incident DECIMAL(3,0) comment '入射天顶角θi',
  57. phi_incident DECIMAL(3,0) comment '入射方位角φi',
  58. theta_reflected DECIMAL(3,0) comment '反射天顶角θr',
  59. phi_reflected DECIMAL(3,0) comment '反射方位角φr',
  60. measurement_1 DECIMAL(10,3) comment '重复测量1',
  61. measurement_2 DECIMAL(10,3) comment '重复测量2',
  62. measurement_3 DECIMAL(10,3) comment '重复测量3',
  63. measurement_4 DECIMAL(10,3) comment '重复测量4',
  64. measurement_5 DECIMAL(10,3) comment '重复测量5',
  65. mean_value DECIMAL(10,3) comment '均值',
  66. repeatability_pct DECIMAL(10,3) comment '重复性%',
  67. create_by varchar(64) default '' comment '创建者',
  68. create_time datetime comment '创建时间',
  69. update_by varchar(64) default '' comment '更新者',
  70. update_time datetime comment '更新时间',
  71. primary key (id)
  72. ) engine=innodb comment = 'BRDF表';
  73. -- 菜单 SQL
  74. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  75. values('BRDF数据', '2000', '1', 'BRDF', 'manage/BRDF/index', 1, 0, 'C', '0', '0', 'manage:BRDF:list', '#', 'admin', sysdate(), '', null, 'BRDF数据菜单');
  76. -- 按钮父菜单ID
  77. SELECT @parentId := LAST_INSERT_ID();
  78. -- 按钮 SQL
  79. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  80. values('BRDF数据查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', 'manage:BRDF:query', '#', 'admin', sysdate(), '', null, '');
  81. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  82. values('BRDF数据新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', 'manage:BRDF:add', '#', 'admin', sysdate(), '', null, '');
  83. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  84. values('BRDF数据修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', 'manage:BRDF:edit', '#', 'admin', sysdate(), '', null, '');
  85. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  86. values('BRDF数据删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', 'manage:BRDF:remove', '#', 'admin', sysdate(), '', null, '');
  87. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  88. values('BRDF数据导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'manage:BRDF:export', '#', 'admin', sysdate(), '', null, '');
  89. -- 菜单 SQL
  90. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  91. values('测量数据', '2000', '1', 'emiMeasure', 'manage/emiMeasure/index', 1, 0, 'C', '0', '0', 'manage:emiMeasure:list', '#', 'admin', sysdate(), '', null, '测量数据菜单');
  92. -- 按钮父菜单ID
  93. SELECT @parentId := LAST_INSERT_ID();
  94. -- 按钮 SQL
  95. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  96. values('测量数据查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', 'manage:emiMeasure:query', '#', 'admin', sysdate(), '', null, '');
  97. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  98. values('测量数据新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', 'manage:emiMeasure:add', '#', 'admin', sysdate(), '', null, '');
  99. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  100. values('测量数据修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', 'manage:emiMeasure:edit', '#', 'admin', sysdate(), '', null, '');
  101. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  102. values('测量数据删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', 'manage:emiMeasure:remove', '#', 'admin', sysdate(), '', null, '');
  103. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  104. values('测量数据导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'manage:emiMeasure:export', '#', 'admin', sysdate(), '', null, '');
  105. -- 菜单 SQL
  106. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  107. values('积分数据', '2000', '1', 'integrated', 'manage/integrated/index', 1, 0, 'C', '0', '0', 'manage:integrated:list', '#', 'admin', sysdate(), '', null, '积分数据菜单');
  108. -- 按钮父菜单ID
  109. SELECT @parentId := LAST_INSERT_ID();
  110. -- 按钮 SQL
  111. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  112. values('积分数据查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', 'manage:integrated:query', '#', 'admin', sysdate(), '', null, '');
  113. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  114. values('积分数据新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', 'manage:integrated:add', '#', 'admin', sysdate(), '', null, '');
  115. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  116. values('积分数据修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', 'manage:integrated:edit', '#', 'admin', sysdate(), '', null, '');
  117. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  118. values('积分数据删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', 'manage:integrated:remove', '#', 'admin', sysdate(), '', null, '');
  119. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  120. values('积分数据导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'manage:integrated:export', '#', 'admin', sysdate(), '', null, '');
  121. -- 菜单 SQL
  122. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  123. values('样片管理', '2000', '1', 'sample', 'manage/sample/index', 1, 0, 'C', '0', '0', 'manage:sample:list', '#', 'admin', sysdate(), '', null, '样片管理菜单');
  124. -- 按钮父菜单ID
  125. SELECT @parentId := LAST_INSERT_ID();
  126. -- 按钮 SQL
  127. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  128. values('样片管理查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', 'manage:sample:query', '#', 'admin', sysdate(), '', null, '');
  129. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  130. values('样片管理新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', 'manage:sample:add', '#', 'admin', sysdate(), '', null, '');
  131. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  132. values('样片管理修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', 'manage:sample:edit', '#', 'admin', sysdate(), '', null, '');
  133. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  134. values('样片管理删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', 'manage:sample:remove', '#', 'admin', sysdate(), '', null, '');
  135. insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
  136. values('样片管理导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'manage:sample:export', '#', 'admin', sysdate(), '', null, '');