fuyanting 1 год назад
Родитель
Сommit
e1db3f1a0f
2 измененных файлов с 521 добавлено и 2 удалено
  1. 1 1
      amms-ui/README.md
  2. 520 1
      sql/ry_20230223.sql

+ 1 - 1
amms-ui/README.md

@@ -15,7 +15,7 @@ npm install --registry=https://registry.npmmirror.com
 
 # 启动服务
 npm run dev
-```
+`
 
 浏览器访问 http://localhost:80
 

+ 520 - 1
sql/ry_20230223.sql

@@ -696,4 +696,523 @@ create table gen_table_column (
   update_by         varchar(64)     default ''                 comment '更新者',
   update_time       datetime                                   comment '更新时间',
   primary key (column_id)
-) engine=innodb auto_increment=1 comment = '代码生成业务表字段';
+) engine=innodb auto_increment=1 comment = '代码生成业务表字段';
+
+
+
+
+
+---------------------------------------------------------------------------------------------------------------
+
+-- ----------------------------
+-- 20、指令性工作清单管理
+-- ----------------------------
+DROP TABLE
+    IF
+    EXISTS t_command_work_bill;
+CREATE TABLE t_command_work_bill (
+                                     id BIGINT ( 20 ) NOT NULL auto_increment COMMENT '编号',
+                                     receipt_date datetime COMMENT '收文日期',
+                                     file_name VARCHAR ( 255 ) COMMENT '文件名称',
+                                     command_work VARCHAR ( 255 ) COMMENT '指令工作',
+                                     implementation_measure VARCHAR ( 255 ) COMMENT '落实措施',
+                                     implementation_deadline datetime COMMENT '落实期限',
+                                     responsible_organization VARCHAR ( 255 ) COMMENT '责任单位',
+                                     principal VARCHAR ( 64 ) COMMENT '责任人',
+                                     implementation_status VARCHAR ( 64 ) COMMENT '落实情况',
+                                     create_by VARCHAR ( 64 ) DEFAULT '' COMMENT '创建者',
+                                     create_time datetime COMMENT '创建时间',
+                                     update_by VARCHAR ( 64 ) DEFAULT '' COMMENT '更新者',
+                                     update_time datetime COMMENT '更新时间',
+                                     remark VARCHAR ( 500 ) DEFAULT NULL COMMENT '备注',
+                                     PRIMARY KEY ( id )
+) ENGINE = INNODB COMMENT = '指令性工作清单管理';
+
+-- 菜单 SQL
+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)
+values('指令性工作清单管理', '2000', '1', 'TCommandWorkBill', 'DirectiveTask/TCommandWorkBill/index', 1, 0, 'C', '0', '0', 'DirectiveTask:TCommandWorkBill:list', '#', 'admin', sysdate(), '', null, '指令性工作清单管理菜单');
+
+-- 按钮父菜单ID
+SELECT @parentId := LAST_INSERT_ID();
+
+-- 按钮 SQL
+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)
+values('指令性工作清单管理查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', 'DirectiveTask:TCommandWorkBill:query',        '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('指令性工作清单管理新增', @parentId, '2',  '#', '', 1, 0, 'F', '0', '0', 'DirectiveTask:TCommandWorkBill:add',          '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('指令性工作清单管理修改', @parentId, '3',  '#', '', 1, 0, 'F', '0', '0', 'DirectiveTask:TCommandWorkBill:edit',         '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('指令性工作清单管理删除', @parentId, '4',  '#', '', 1, 0, 'F', '0', '0', 'DirectiveTask:TCommandWorkBill:remove',       '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('指令性工作清单管理导出', @parentId, '5',  '#', '', 1, 0, 'F', '0', '0', 'DirectiveTask:TCommandWorkBill:export',       '#', 'admin', sysdate(), '', null, '');
+
+
+
+-- ----------------------------
+-- 20、第一本账单
+-- ----------------------------
+
+DROP TABLE
+    IF
+    EXISTS t_work_plan;
+CREATE TABLE t_work_plan (
+                             id BIGINT ( 20 ) NOT NULL auto_increment COMMENT '编号',
+                             word_plan VARCHAR ( 255 ) COMMENT '工作记录',
+                             planned_completion_time datetime COMMENT '计划完成时间',
+                             existing_problem VARCHAR ( 255 ) COMMENT '存在问题',
+                             countermeasure VARCHAR ( 255 ) COMMENT '对策措施',
+                             resolution_time_limit VARCHAR ( 255 ) COMMENT '解决时限',
+                             responsible_organization VARCHAR ( 255 ) COMMENT '责任单位',
+                             principal VARCHAR ( 64 ) COMMENT '责任人',
+                             create_by VARCHAR ( 64 ) DEFAULT '' COMMENT '创建者',
+                             create_time datetime COMMENT '创建时间',
+                             update_by VARCHAR ( 64 ) DEFAULT '' COMMENT '更新者',
+                             update_time datetime COMMENT '更新时间',
+                             remark VARCHAR ( 500 ) DEFAULT NULL COMMENT '备注',
+                             PRIMARY KEY ( id )
+) ENGINE = INNODB COMMENT = '工作计划一本账';
+
+-- 菜单 SQL
+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)
+values('工作计划一本账', '2019', '1', 'TWorkPlan', 'Invoice/TWorkPlan/index', 1, 0, 'C', '0', '0', 'Invoice:TWorkPlan:list', '#', 'admin', sysdate(), '', null, '工作计划一本账菜单');
+
+-- 按钮父菜单ID
+SELECT @parentId := LAST_INSERT_ID();
+
+-- 按钮 SQL
+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)
+values('工作计划一本账查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TWorkPlan:query',        '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('工作计划一本账新增', @parentId, '2',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TWorkPlan:add',          '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('工作计划一本账修改', @parentId, '3',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TWorkPlan:edit',         '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('工作计划一本账删除', @parentId, '4',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TWorkPlan:remove',       '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('工作计划一本账导出', @parentId, '5',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TWorkPlan:export',       '#', 'admin', sysdate(), '', null, '');
+
+
+DROP TABLE
+    IF
+    EXISTS t_prepare_war;
+CREATE TABLE t_prepare_war (
+                               id BIGINT ( 20 ) NOT NULL auto_increment COMMENT '编号',
+                               concrete_issue VARCHAR ( 255 ) COMMENT '具体问题',
+                               solution VARCHAR ( 255 ) COMMENT '解决措施',
+                               responsible_organization VARCHAR ( 255 ) COMMENT '责任单位',
+                               principal VARCHAR ( 64 ) COMMENT '责任人',
+                               resolution_time_limit VARCHAR ( 255 ) COMMENT '解决时限',
+                               standard_request VARCHAR ( 255 ) COMMENT '标准要求',
+                               billing_time datetime COMMENT '挂账时间',
+                               create_by VARCHAR ( 64 ) DEFAULT '' COMMENT '创建者',
+                               create_time datetime COMMENT '创建时间',
+                               update_by VARCHAR ( 64 ) DEFAULT '' COMMENT '更新者',
+                               update_time datetime COMMENT '更新时间',
+                               remark VARCHAR ( 500 ) DEFAULT NULL COMMENT '备注',
+                               PRIMARY KEY ( id )
+) ENGINE = INNODB COMMENT = '备战打仗一本账';
+
+-- 菜单 SQL
+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)
+values('备战打仗一本账', '2019', '1', 'TPrepareWar', 'Invoice/TPrepareWar/index', 1, 0, 'C', '0', '0', 'Invoice:TPrepareWar:list', '#', 'admin', sysdate(), '', null, '备战打仗一本账菜单');
+
+-- 按钮父菜单ID
+SELECT @parentId := LAST_INSERT_ID();
+
+-- 按钮 SQL
+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)
+values('备战打仗一本账查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TPrepareWar:query',        '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('备战打仗一本账新增', @parentId, '2',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TPrepareWar:add',          '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('备战打仗一本账修改', @parentId, '3',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TPrepareWar:edit',         '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('备战打仗一本账删除', @parentId, '4',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TPrepareWar:remove',       '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('备战打仗一本账导出', @parentId, '5',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TPrepareWar:export',       '#', 'admin', sysdate(), '', null, '');
+
+
+DROP TABLE
+    IF
+    EXISTS t_equipment_quality;
+CREATE TABLE t_equipment_quality (
+                                     id BIGINT ( 20 ) NOT NULL auto_increment COMMENT '编号',
+                                     date_time datetime COMMENT '日期',
+                                     equipment_type VARCHAR ( 255 ) COMMENT '装备型号',
+                                     major VARCHAR ( 255 ) COMMENT '专业',
+                                     quick_facts VARCHAR ( 255 ) COMMENT '简要情况',
+                                     reasons VARCHAR ( 255 ) COMMENT '问题原因',
+                                     countermeasure VARCHAR ( 255 ) COMMENT '对策措施',
+                                     principal VARCHAR ( 64 ) COMMENT '责任人',
+                                     follow_up VARCHAR ( 255 ) COMMENT '跟进情况',
+                                     return_zero VARCHAR ( 255 ) COMMENT '归零情况',
+                                     brief_report VARCHAR ( 255 ) COMMENT '简报',
+                                     create_by VARCHAR ( 64 ) DEFAULT '' COMMENT '创建者',
+                                     create_time datetime COMMENT '创建时间',
+                                     update_by VARCHAR ( 64 ) DEFAULT '' COMMENT '更新者',
+                                     update_time datetime COMMENT '更新时间',
+                                     remark VARCHAR ( 500 ) DEFAULT NULL COMMENT '备注',
+                                     PRIMARY KEY ( id )
+) ENGINE = INNODB COMMENT = '装备质量一本账';
+
+
+-- 菜单 SQL
+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)
+values('装备质量一本账', '2019', '1', 'TEquipmentQuality', 'Invoice/TEquipmentQuality/index', 1, 0, 'C', '0', '0', 'Invoice:TEquipmentQuality:list', '#', 'admin', sysdate(), '', null, '装备质量一本账菜单');
+
+-- 按钮父菜单ID
+SELECT @parentId := LAST_INSERT_ID();
+
+-- 按钮 SQL
+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)
+values('装备质量一本账查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TEquipmentQuality:query',        '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('装备质量一本账新增', @parentId, '2',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TEquipmentQuality:add',          '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('装备质量一本账修改', @parentId, '3',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TEquipmentQuality:edit',         '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('装备质量一本账删除', @parentId, '4',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TEquipmentQuality:remove',       '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('装备质量一本账导出', @parentId, '5',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TEquipmentQuality:export',       '#', 'admin', sysdate(), '', null, '');
+
+DROP TABLE
+    IF
+    EXISTS t_troop_problem;
+CREATE TABLE t_troop_problem (
+                                 id BIGINT ( 20 ) NOT NULL auto_increment COMMENT '编号',
+                                 date_time datetime COMMENT '时间',
+                                 organization VARCHAR ( 255 ) COMMENT '单位',
+                                 contacts VARCHAR ( 255 ) COMMENT '联系人',
+                                 issue VARCHAR ( 255 ) COMMENT '具体问题',
+                                 solution VARCHAR ( 255 ) COMMENT '解决措施',
+                                 responsible_organization VARCHAR ( 255 ) COMMENT '责任单位',
+                                 principal VARCHAR ( 64 ) COMMENT '责任人',
+                                 resolution_time_limit VARCHAR ( 255 ) COMMENT '解决时限',
+                                 Completion_situation VARCHAR ( 255 ) COMMENT '完成情况',
+                                 create_by VARCHAR ( 64 ) DEFAULT '' COMMENT '创建者',
+                                 create_time datetime COMMENT '创建时间',
+                                 update_by VARCHAR ( 64 ) DEFAULT '' COMMENT '更新者',
+                                 update_time datetime COMMENT '更新时间',
+                                 remark VARCHAR ( 500 ) DEFAULT NULL COMMENT '备注',
+                                 PRIMARY KEY ( id )
+) ENGINE = INNODB COMMENT = '部队问题一本账';
+
+-- 菜单 SQL
+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)
+values('部队问题一本账', '2019', '1', 'TTroopProblem', 'Invoice/TTroopProblem/index', 1, 0, 'C', '0', '0', 'Invoice:TTroopProblem:list', '#', 'admin', sysdate(), '', null, '部队问题一本账菜单');
+
+-- 按钮父菜单ID
+SELECT @parentId := LAST_INSERT_ID();
+
+-- 按钮 SQL
+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)
+values('部队问题一本账查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TTroopProblem:query',        '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('部队问题一本账新增', @parentId, '2',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TTroopProblem:add',          '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('部队问题一本账修改', @parentId, '3',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TTroopProblem:edit',         '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('部队问题一本账删除', @parentId, '4',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TTroopProblem:remove',       '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('部队问题一本账导出', @parentId, '5',  '#', '', 1, 0, 'F', '0', '0', 'Invoice:TTroopProblem:export',       '#', 'admin', sysdate(), '', null, '');
+
+
+DROP TABLE
+    IF
+    EXISTS t_today_in_history;
+CREATE TABLE t_today_in_history (
+                                    id BIGINT ( 20 ) NOT NULL auto_increment COMMENT '编号',
+                                    date_time datetime COMMENT '时间',
+                                    aircraft_type VARCHAR ( 255 ) COMMENT '机型',
+                                    occurrence_time datetime COMMENT '发生时间',
+                                    problem_description VARCHAR ( 255 ) COMMENT '问题描述',
+                                    category VARCHAR ( 255 ) COMMENT '类别',
+                                    classify VARCHAR ( 255 ) COMMENT '分类',
+                                    consequence VARCHAR ( 255 ) COMMENT '后果',
+                                    quality VARCHAR ( 255 ) COMMENT '性质',
+                                    remark VARCHAR ( 500 ) DEFAULT NULL COMMENT '备注',
+                                    photo_path VARCHAR ( 255 ) COMMENT '照片',
+                                    create_by VARCHAR ( 64 ) DEFAULT '' COMMENT '创建者',
+                                    create_time datetime COMMENT '创建时间',
+                                    update_by VARCHAR ( 64 ) DEFAULT '' COMMENT '更新者',
+                                    update_time datetime COMMENT '更新时间',
+                                    PRIMARY KEY ( id )
+) ENGINE = INNODB COMMENT = '历史上的今天';
+
+-- 菜单 SQL
+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)
+values('历史上的今天', '2049', '1', 'TTodayInHistory', 'Security/TTodayInHistory/index', 1, 0, 'C', '0', '0', 'Security:TTodayInHistory:list', '#', 'admin', sysdate(), '', null, '历史上的今天菜单');
+
+-- 按钮父菜单ID
+SELECT @parentId := LAST_INSERT_ID();
+
+-- 按钮 SQL
+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)
+values('历史上的今天查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', 'Security:TTodayInHistory:query',        '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('历史上的今天新增', @parentId, '2',  '#', '', 1, 0, 'F', '0', '0', 'Security:TTodayInHistory:add',          '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('历史上的今天修改', @parentId, '3',  '#', '', 1, 0, 'F', '0', '0', 'Security:TTodayInHistory:edit',         '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('历史上的今天删除', @parentId, '4',  '#', '', 1, 0, 'F', '0', '0', 'Security:TTodayInHistory:remove',       '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('历史上的今天导出', @parentId, '5',  '#', '', 1, 0, 'F', '0', '0', 'Security:TTodayInHistory:export',       '#', 'admin', sysdate(), '', null, '');
+
+
+DROP TABLE
+    IF
+    EXISTS t_safety_inspection;
+CREATE TABLE t_safety_inspection (
+                                     id BIGINT ( 20 ) NOT NULL auto_increment COMMENT '编号',
+                                     organization VARCHAR ( 255 ) COMMENT '单位',
+                                     date_time datetime COMMENT '日期',
+                                     major VARCHAR ( 255 ) COMMENT '专业',
+                                     issue_details VARCHAR ( 255 ) COMMENT '问题详情',
+                                     principal VARCHAR ( 64 ) COMMENT '责任人',
+                                     superviser VARCHAR ( 64 ) COMMENT '检查人',
+                                     rectification_measures VARCHAR ( 255 ) COMMENT '整改措施',
+                                     classify VARCHAR ( 255 ) COMMENT '分类',
+                                     rectification_status VARCHAR ( 255 ) COMMENT '整改情况',
+                                     remark VARCHAR ( 500 ) DEFAULT NULL COMMENT '备注',
+                                     create_by VARCHAR ( 64 ) DEFAULT '' COMMENT '创建者',
+                                     create_time datetime COMMENT '创建时间',
+                                     update_by VARCHAR ( 64 ) DEFAULT '' COMMENT '更新者',
+                                     update_time datetime COMMENT '更新时间',
+                                     PRIMARY KEY ( id )
+) ENGINE = INNODB COMMENT = '安全检查信息';
+
+-- 菜单 SQL
+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)
+values('安全检查信息', '2049', '1', 'TSafetyInspection', 'Security/TSafetyInspection/index', 1, 0, 'C', '0', '0', 'Security:TSafetyInspection:list', '#', 'admin', sysdate(), '', null, '安全检查信息菜单');
+
+-- 按钮父菜单ID
+SELECT @parentId := LAST_INSERT_ID();
+
+-- 按钮 SQL
+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)
+values('安全检查信息查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', 'Security:TSafetyInspection:query',        '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('安全检查信息新增', @parentId, '2',  '#', '', 1, 0, 'F', '0', '0', 'Security:TSafetyInspection:add',          '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('安全检查信息修改', @parentId, '3',  '#', '', 1, 0, 'F', '0', '0', 'Security:TSafetyInspection:edit',         '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('安全检查信息删除', @parentId, '4',  '#', '', 1, 0, 'F', '0', '0', 'Security:TSafetyInspection:remove',       '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('安全检查信息导出', @parentId, '5',  '#', '', 1, 0, 'F', '0', '0', 'Security:TSafetyInspection:export',       '#', 'admin', sysdate(), '', null, '');
+
+
+DROP TABLE
+    IF
+    EXISTS t_disclaimer_report;
+CREATE TABLE t_disclaimer_report (
+                                     id BIGINT ( 20 ) NOT NULL auto_increment COMMENT '编号',
+                                     organization_1st VARCHAR ( 255 ) COMMENT '第一单位',
+                                     organization_2nd VARCHAR ( 255 ) COMMENT '第二单位',
+                                     organization_3rd VARCHAR ( 255 ) COMMENT '第三单位',
+                                     occurrence_date datetime COMMENT '事件发生时间',
+                                     occurrence_place VARCHAR ( 255 ) COMMENT '事件发生地点',
+                                     Occurrence_time VARCHAR ( 255 ) COMMENT '事件发生时机',
+                                     reporter_position_category VARCHAR ( 255 ) COMMENT '报告人岗位类别',
+                                     reporter_position_character VARCHAR ( 255 ) COMMENT '报告人岗位角色',
+                                     aircraft_type VARCHAR ( 255 ) COMMENT '机型',
+                                     reporter_name VARCHAR ( 255 ) COMMENT '报告人姓名',
+                                     reporter_phone VARCHAR ( 255 ) COMMENT '报告人电话',
+                                     cause_classification VARCHAR ( 255 ) COMMENT '原因分类',
+                                     event_type VARCHAR ( 255 ) COMMENT '类型',
+                                     Event_itle VARCHAR ( 255 ) COMMENT '事件标题',
+                                     event_roperty VARCHAR ( 255 ) COMMENT '事件性质',
+                                     event_course VARCHAR ( 255 ) COMMENT '事件经过',
+                                     Analysis_preventive_measures VARCHAR ( 255 ) COMMENT '事件分析及预防措施',
+                                     principal_post VARCHAR ( 255 ) COMMENT '旅团站负责人职务',
+                                     principal_name VARCHAR ( 255 ) COMMENT '旅团站负责人姓名',
+                                     remark VARCHAR ( 500 ) DEFAULT NULL COMMENT '备注',
+                                     photo_path VARCHAR ( 255 ) COMMENT '照片',
+                                     create_by VARCHAR ( 64 ) DEFAULT '' COMMENT '创建者',
+                                     create_time datetime COMMENT '创建时间',
+                                     update_by VARCHAR ( 64 ) DEFAULT '' COMMENT '更新者',
+                                     update_time datetime COMMENT '更新时间',
+                                     PRIMARY KEY ( id )
+) ENGINE = INNODB COMMENT = '免责报告';
+
+
+-- 菜单 SQL
+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)
+values('免责报告', '2049', '1', 'TDisclaimerReport', 'Security/TDisclaimerReport/index', 1, 0, 'C', '0', '0', 'Security:TDisclaimerReport:list', '#', 'admin', sysdate(), '', null, '免责报告菜单');
+
+-- 按钮父菜单ID
+SELECT @parentId := LAST_INSERT_ID();
+
+-- 按钮 SQL
+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)
+values('免责报告查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', 'Security:TDisclaimerReport:query',        '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('免责报告新增', @parentId, '2',  '#', '', 1, 0, 'F', '0', '0', 'Security:TDisclaimerReport:add',          '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('免责报告修改', @parentId, '3',  '#', '', 1, 0, 'F', '0', '0', 'Security:TDisclaimerReport:edit',         '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('免责报告删除', @parentId, '4',  '#', '', 1, 0, 'F', '0', '0', 'Security:TDisclaimerReport:remove',       '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('免责报告导出', @parentId, '5',  '#', '', 1, 0, 'F', '0', '0', 'Security:TDisclaimerReport:export',       '#', 'admin', sysdate(), '', null, '');
+
+DROP TABLE
+    IF
+    EXISTS t_safety_reward;
+CREATE TABLE t_safety_reward (
+                                 id BIGINT ( 20 ) NOT NULL auto_increment COMMENT '编号',
+                                 declaration_date datetime COMMENT '申报时间',
+                                 declaration_name VARCHAR ( 255 ) COMMENT '姓名',
+                                 declaration_type VARCHAR ( 255 ) COMMENT '奖项',
+                                 declaration_reply VARCHAR ( 255 ) COMMENT '批复',
+                                 to_receive VARCHAR ( 255 ) COMMENT '是否领取',
+                                 remark VARCHAR ( 500 ) DEFAULT NULL COMMENT '备注',
+                                 create_by VARCHAR ( 64 ) DEFAULT '' COMMENT '创建者',
+                                 create_time datetime COMMENT '创建时间',
+                                 update_by VARCHAR ( 64 ) DEFAULT '' COMMENT '更新者',
+                                 update_time datetime COMMENT '更新时间',
+                                 PRIMARY KEY ( id )
+) ENGINE = INNODB COMMENT = '安全奖惩信息';
+
+-- 菜单 SQL
+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)
+values('安全奖惩信息', '2049', '1', 'TSafetyReward', 'Security/TSafetyReward/index', 1, 0, 'C', '0', '0', 'Security:TSafetyReward:list', '#', 'admin', sysdate(), '', null, '安全奖惩信息菜单');
+
+-- 按钮父菜单ID
+SELECT @parentId := LAST_INSERT_ID();
+
+-- 按钮 SQL
+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)
+values('安全奖惩信息查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', 'Security:TSafetyReward:query',        '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('安全奖惩信息新增', @parentId, '2',  '#', '', 1, 0, 'F', '0', '0', 'Security:TSafetyReward:add',          '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('安全奖惩信息修改', @parentId, '3',  '#', '', 1, 0, 'F', '0', '0', 'Security:TSafetyReward:edit',         '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('安全奖惩信息删除', @parentId, '4',  '#', '', 1, 0, 'F', '0', '0', 'Security:TSafetyReward:remove',       '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('安全奖惩信息导出', @parentId, '5',  '#', '', 1, 0, 'F', '0', '0', 'Security:TSafetyReward:export',       '#', 'admin', sysdate(), '', null, '');
+
+
+DROP TABLE
+    IF
+    EXISTS t_assessment_result;
+CREATE TABLE t_assessment_result (
+                                     id BIGINT ( 20 ) NOT NULL auto_increment COMMENT '编号',
+                                     assessment_name VARCHAR ( 255 ) COMMENT '姓名',
+                                     assessment_organization VARCHAR ( 255 ) COMMENT '单位',
+                                     aircraft_type VARCHAR ( 255 ) COMMENT '机型',
+                                     major VARCHAR ( 255 ) COMMENT '专业',
+                                     if_exam VARCHAR ( 255 ) COMMENT '是否参考',
+                                     exam_category VARCHAR ( 255 ) COMMENT '参考科目',
+                                     exam_level VARCHAR ( 255 ) COMMENT '参考层级',
+                                     exam_score VARCHAR ( 255 ) COMMENT '业务',
+                                     remark VARCHAR ( 500 ) DEFAULT NULL COMMENT '备注',
+                                     create_by VARCHAR ( 64 ) DEFAULT '' COMMENT '创建者',
+                                     create_time datetime COMMENT '创建时间',
+                                     update_by VARCHAR ( 64 ) DEFAULT '' COMMENT '更新者',
+                                     update_time datetime COMMENT '更新时间',
+                                     PRIMARY KEY ( id )
+) ENGINE = INNODB COMMENT = '考核结果管理';
+
+
+-- 菜单 SQL
+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)
+values('考核结果管理', '2080', '1', 'TAssessmentResult', 'Train/TAssessmentResult/index', 1, 0, 'C', '0', '0', 'Train:TAssessmentResult:list', '#', 'admin', sysdate(), '', null, '考核结果管理菜单');
+
+-- 按钮父菜单ID
+SELECT @parentId := LAST_INSERT_ID();
+
+-- 按钮 SQL
+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)
+values('考核结果管理查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', 'Train:TAssessmentResult:query',        '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('考核结果管理新增', @parentId, '2',  '#', '', 1, 0, 'F', '0', '0', 'Train:TAssessmentResult:add',          '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('考核结果管理修改', @parentId, '3',  '#', '', 1, 0, 'F', '0', '0', 'Train:TAssessmentResult:edit',         '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('考核结果管理删除', @parentId, '4',  '#', '', 1, 0, 'F', '0', '0', 'Train:TAssessmentResult:remove',       '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('考核结果管理导出', @parentId, '5',  '#', '', 1, 0, 'F', '0', '0', 'Train:TAssessmentResult:export',       '#', 'admin', sysdate(), '', null, '');
+
+
+
+DROP TABLE
+    IF
+    EXISTS t_training_management;
+CREATE TABLE t_training_management (
+                                       id BIGINT ( 20 ) NOT NULL auto_increment COMMENT '编号',
+                                       assessment_name VARCHAR ( 255 ) COMMENT '姓名',
+                                       assessment_organization VARCHAR ( 255 ) COMMENT '单位',
+                                       major VARCHAR ( 255 ) COMMENT '专业',
+                                       work_category VARCHAR ( 255 ) COMMENT '工作类别(师、代理师、员外)',
+                                       ladingbill_date datetime COMMENT '放单日期',
+                                       remark VARCHAR ( 500 ) DEFAULT NULL COMMENT '备注',
+                                       create_by VARCHAR ( 64 ) DEFAULT '' COMMENT '创建者',
+                                       create_time datetime COMMENT '创建时间',
+                                       update_by VARCHAR ( 64 ) DEFAULT '' COMMENT '更新者',
+                                       update_time datetime COMMENT '更新时间',
+                                       PRIMARY KEY ( id )
+) ENGINE = INNODB COMMENT = '人员训练技术档案管理';
+
+-- 菜单 SQL
+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)
+values('人员训练技术档案管理', '2080', '1', 'TTrainingManagement', 'Train/TTrainingManagement/index', 1, 0, 'C', '0', '0', 'Train:TTrainingManagement:list', '#', 'admin', sysdate(), '', null, '人员训练技术档案管理菜单');
+
+-- 按钮父菜单ID
+SELECT @parentId := LAST_INSERT_ID();
+
+-- 按钮 SQL
+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)
+values('人员训练技术档案管理查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', 'Train:TTrainingManagement:query',        '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('人员训练技术档案管理新增', @parentId, '2',  '#', '', 1, 0, 'F', '0', '0', 'Train:TTrainingManagement:add',          '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('人员训练技术档案管理修改', @parentId, '3',  '#', '', 1, 0, 'F', '0', '0', 'Train:TTrainingManagement:edit',         '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('人员训练技术档案管理删除', @parentId, '4',  '#', '', 1, 0, 'F', '0', '0', 'Train:TTrainingManagement:remove',       '#', 'admin', sysdate(), '', null, '');
+
+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)
+values('人员训练技术档案管理导出', @parentId, '5',  '#', '', 1, 0, 'F', '0', '0', 'Train:TTrainingManagement:export',       '#', 'admin', sysdate(), '', null, '');