biz.sql 13 KB

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