| | |
| | | -- mpk |
| | | |
| | | -- menu |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416369, '模型库', '', 2, 20, 1803317368415416363, 'mpk', 'ep:folder', 'mpk/mpk', 'Mpk', 0, b'1', b'1', b'1', '1', '2024-08-31 16:50:38', '1', '2024-09-10 14:53:17', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416370, 'MPK查询', 'mpk:query', 3, 0, 1803317368415416369, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-09-02 10:14:00', '1', '2024-09-06 11:50:19', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416371, 'MPK新增', 'mpk:create', 3, 1, 1803317368415416369, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-09-02 10:14:25', '1', '2024-09-06 11:50:28', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416372, 'MPK修改', 'mpk:update', 3, 2, 1803317368415416369, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-09-02 10:14:44', '1', '2024-09-06 11:50:38', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416373, 'MPK删除', 'mpk:delete', 3, 3, 1803317368415416369, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-09-02 10:15:04', '1', '2024-09-06 11:50:46', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416374, '项目管理', '', 2, 30, 1803317368415416363, 'project', 'ep:document-copy', 'mpk/project', 'Project', 0, b'1', b'1', b'1', '1', '2024-09-10 14:44:54', '1', '2024-09-10 14:53:26', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416375, '项目查询', 'project:query', 3, 0, 1803317368415416374, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-09-10 14:45:53', '1', '2024-09-10 14:45:53', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416376, '项目新增', 'project:create', 3, 1, 1803317368415416374, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-09-10 14:46:16', '1', '2024-09-10 14:46:16', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416377, '项目修改', 'project:update', 3, 2, 1803317368415416374, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-09-10 14:46:33', '1', '2024-09-10 14:46:33', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416378, '项目删除', 'project:delete', 3, 3, 1803317368415416374, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-09-10 14:46:47', '1', '2024-09-10 14:46:47', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, |
| | | `component`, `component_name`, `status`, `visible`, `keep_alive`, |
| | | `always_show`, `creator`, `create_time`, `updater`, `update_time`, |
| | | `deleted`) |
| | | VALUES (1803317368415416369, '模型库', '', 2, 20, 1803317368415416363, 'mpk', 'ep:folder', 'mpk/mpk', 'Mpk', 0, b'1', |
| | | b'1', b'1', '1', '2024-08-31 16:50:38', '1', '2024-09-10 14:53:17', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, |
| | | `component`, `component_name`, `status`, `visible`, `keep_alive`, |
| | | `always_show`, `creator`, `create_time`, `updater`, `update_time`, |
| | | `deleted`) |
| | | VALUES (1803317368415416370, 'MPK查询', 'mpk:query', 3, 0, 1803317368415416369, '', '', '', '', 0, b'1', b'1', b'1', |
| | | '1', '2024-09-02 10:14:00', '1', '2024-09-06 11:50:19', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, |
| | | `component`, `component_name`, `status`, `visible`, `keep_alive`, |
| | | `always_show`, `creator`, `create_time`, `updater`, `update_time`, |
| | | `deleted`) |
| | | VALUES (1803317368415416371, 'MPK新增', 'mpk:create', 3, 1, 1803317368415416369, '', '', '', '', 0, b'1', b'1', b'1', |
| | | '1', '2024-09-02 10:14:25', '1', '2024-09-06 11:50:28', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, |
| | | `component`, `component_name`, `status`, `visible`, `keep_alive`, |
| | | `always_show`, `creator`, `create_time`, `updater`, `update_time`, |
| | | `deleted`) |
| | | VALUES (1803317368415416372, 'MPK修改', 'mpk:update', 3, 2, 1803317368415416369, '', '', '', '', 0, b'1', b'1', b'1', |
| | | '1', '2024-09-02 10:14:44', '1', '2024-09-06 11:50:38', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, |
| | | `component`, `component_name`, `status`, `visible`, `keep_alive`, |
| | | `always_show`, `creator`, `create_time`, `updater`, `update_time`, |
| | | `deleted`) |
| | | VALUES (1803317368415416373, 'MPK删除', 'mpk:delete', 3, 3, 1803317368415416369, '', '', '', '', 0, b'1', b'1', b'1', |
| | | '1', '2024-09-02 10:15:04', '1', '2024-09-06 11:50:46', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, |
| | | `component`, `component_name`, `status`, `visible`, `keep_alive`, |
| | | `always_show`, `creator`, `create_time`, `updater`, `update_time`, |
| | | `deleted`) |
| | | VALUES (1803317368415416374, '项目管理', '', 2, 30, 1803317368415416363, 'project', 'ep:document-copy', 'mpk/project', |
| | | 'Project', 0, b'1', b'1', b'1', '1', '2024-09-10 14:44:54', '1', '2024-09-10 14:53:26', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, |
| | | `component`, `component_name`, `status`, `visible`, `keep_alive`, |
| | | `always_show`, `creator`, `create_time`, `updater`, `update_time`, |
| | | `deleted`) |
| | | VALUES (1803317368415416375, '项目查询', 'project:query', 3, 0, 1803317368415416374, '', '', '', '', 0, b'1', b'1', |
| | | b'1', '1', '2024-09-10 14:45:53', '1', '2024-09-10 14:45:53', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, |
| | | `component`, `component_name`, `status`, `visible`, `keep_alive`, |
| | | `always_show`, `creator`, `create_time`, `updater`, `update_time`, |
| | | `deleted`) |
| | | VALUES (1803317368415416376, '项目新增', 'project:create', 3, 1, 1803317368415416374, '', '', '', '', 0, b'1', b'1', |
| | | b'1', '1', '2024-09-10 14:46:16', '1', '2024-09-10 14:46:16', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, |
| | | `component`, `component_name`, `status`, `visible`, `keep_alive`, |
| | | `always_show`, `creator`, `create_time`, `updater`, `update_time`, |
| | | `deleted`) |
| | | VALUES (1803317368415416377, '项目修改', 'project:update', 3, 2, 1803317368415416374, '', '', '', '', 0, b'1', b'1', |
| | | b'1', '1', '2024-09-10 14:46:33', '1', '2024-09-10 14:46:33', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, |
| | | `component`, `component_name`, `status`, `visible`, `keep_alive`, |
| | | `always_show`, `creator`, `create_time`, `updater`, `update_time`, |
| | | `deleted`) |
| | | VALUES (1803317368415416378, '项目删除', 'project:delete', 3, 3, 1803317368415416374, '', '', '', '', 0, b'1', b'1', |
| | | b'1', '1', '2024-09-10 14:46:47', '1', '2024-09-10 14:46:47', b'0'); |
| | | |
| | | |
| | | -- config |
| | | --INSERT INTO `iailab_plat_system`.`infra_config` (`id`, `category`, `type`, `name`, `config_key`, `value`, `visible`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (13, 'model', 2, 'model文件备份路径', 'mpkBakFilePath', 'C:\\DLUT\\mpkBakFile', b'1', 'model文件备份路径', '1', '2024-09-12 11:10:25', '1', '2024-09-12 11:10:25', b'0'); |
| | | |
| | | -- dist |
| | | INSERT INTO `iailab_plat_system`.`system_dict_type` (`id`, `name`, `type`, `status`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `deleted_time`) VALUES (618, '模型方法', 'model_method', 0, '', '1', '2024-09-09 16:11:55', '1', '2024-09-09 16:11:55', b'0', '1970-01-01 00:00:00'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_type` (`id`, `name`, `type`, `status`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `deleted_time`) VALUES (619, '模型类型', 'model_type', 0, '', '1', '2024-09-13 14:14:26', '1', '2024-09-13 14:14:26', b'0', '1970-01-01 00:00:00'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_type` (`id`, `name`, `type`, `status`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `deleted_time`) VALUES (620, '模型方法输入类型', 'model_method_setting_type', 0, '', '1', '2024-09-13 15:41:38', '1', '2024-09-13 15:41:38', b'0', '1970-01-01 00:00:00'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_type` (`id`, `name`, `type`, `status`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `deleted_time`) VALUES (621, '模型方法参数类型', 'model_method_setting_value_type', 0, '', '1', '2024-09-13 15:42:27', '1', '2024-09-13 15:42:27', b'0', '1970-01-01 00:00:00'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_type` (`id`, `name`, `type`, `status`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`, `deleted_time`) |
| | | VALUES (618, '模型方法', 'model_method', 0, '', '1', '2024-09-09 16:11:55', '1', '2024-09-09 16:11:55', b'0', |
| | | '1970-01-01 00:00:00'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_type` (`id`, `name`, `type`, `status`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`, `deleted_time`) |
| | | VALUES (619, '模型类型', 'model_type', 0, '', '1', '2024-09-13 14:14:26', '1', '2024-09-13 14:14:26', b'0', |
| | | '1970-01-01 00:00:00'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_type` (`id`, `name`, `type`, `status`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`, `deleted_time`) |
| | | VALUES (620, '模型方法输入类型', 'model_method_setting_type', 0, '', '1', '2024-09-13 15:41:38', '1', |
| | | '2024-09-13 15:41:38', b'0', '1970-01-01 00:00:00'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_type` (`id`, `name`, `type`, `status`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`, `deleted_time`) |
| | | VALUES (621, '模型方法参数类型', 'model_method_setting_value_type', 0, '', '1', '2024-09-13 15:42:27', '1', |
| | | '2024-09-13 15:42:27', b'0', '1970-01-01 00:00:00'); |
| | | |
| | | |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1536, 1, 'train', 'train', 'model_method', 0, '', '', '', '1', '2024-09-09 16:12:42', '1', '2024-09-09 16:12:42', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1537, 3, 'control', 'control', 'model_method', 0, '', '', '', '1', '2024-09-09 16:12:54', '1', '2024-09-09 16:13:10', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1538, 2, 'predict', 'predict', 'model_method', 0, '', '', '', '1', '2024-09-09 16:13:05', '1', '2024-09-09 16:13:05', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1539, 1, '预测模型', 'predict', 'model_type', 0, '', '', '', '1', '2024-09-13 14:14:58', '1', '2024-09-13 14:14:58', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1540, 2, '调度模型', 'schedul', 'model_type', 0, '', '', '', '1', '2024-09-13 14:17:53', '1', '2024-09-13 14:17:53', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1541, 1, 'input', 'input', 'model_method_setting_type', 0, '', '', '', '1', '2024-09-13 15:44:08', '1', '2024-09-13 15:44:08', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1542, 2, 'select', 'select', 'model_method_setting_type', 0, '', '', '', '1', '2024-09-13 15:44:17', '1', '2024-09-13 15:44:17', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1543, 3, 'file', 'file', 'model_method_setting_type', 0, '', '', '', '1', '2024-09-13 15:44:24', '1', '2024-09-13 15:44:24', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1544, 1, 'int', 'int', 'model_method_setting_value_type', 0, '', '', '', '1', '2024-09-13 15:44:42', '1', '2024-09-13 15:44:42', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1545, 5, 'file', 'file', 'model_method_setting_value_type', 0, '', '', '', '1', '2024-09-13 15:44:57', '1', '2024-09-14 14:16:24', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1546, 3, 'decimal', 'decimal', 'model_method_setting_value_type', 0, '', '', '', '1', '2024-09-13 15:45:21', '1', '2024-09-13 15:45:21', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1547, 4, 'decimalArray', 'decimalArray', 'model_method_setting_value_type', 0, '', '', '', '1', '2024-09-13 15:45:26', '1', '2024-09-13 15:45:26', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1548, 2, 'string', 'string', 'model_method_setting_value_type', 0, '', '', '', '1', '2024-09-13 15:45:36', '1', '2024-09-14 14:16:30', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1549, 4, 'schedul', 'schedul', 'model_method', 0, '', '', '', '1', '2024-09-14 14:56:44', '1', '2024-09-14 14:56:44', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, |
| | | `color_type`, `css_class`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`) |
| | | VALUES (1536, 1, 'train', 'train', 'model_method', 0, '', '', '', '1', '2024-09-09 16:12:42', '1', |
| | | '2024-09-09 16:12:42', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, |
| | | `color_type`, `css_class`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`) |
| | | VALUES (1537, 3, 'control', 'control', 'model_method', 0, '', '', '', '1', '2024-09-09 16:12:54', '1', |
| | | '2024-09-09 16:13:10', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, |
| | | `color_type`, `css_class`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`) |
| | | VALUES (1538, 2, 'predict', 'predict', 'model_method', 0, '', '', '', '1', '2024-09-09 16:13:05', '1', |
| | | '2024-09-09 16:13:05', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, |
| | | `color_type`, `css_class`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`) |
| | | VALUES (1539, 1, '预测模型', 'predict', 'model_type', 0, '', '', '', '1', '2024-09-13 14:14:58', '1', |
| | | '2024-09-13 14:14:58', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, |
| | | `color_type`, `css_class`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`) |
| | | VALUES (1540, 2, '调度模型', 'schedul', 'model_type', 0, '', '', '', '1', '2024-09-13 14:17:53', '1', |
| | | '2024-09-13 14:17:53', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, |
| | | `color_type`, `css_class`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`) |
| | | VALUES (1541, 1, 'input', 'input', 'model_method_setting_type', 0, '', '', '', '1', '2024-09-13 15:44:08', '1', |
| | | '2024-09-13 15:44:08', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, |
| | | `color_type`, `css_class`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`) |
| | | VALUES (1542, 2, 'select', 'select', 'model_method_setting_type', 0, '', '', '', '1', '2024-09-13 15:44:17', '1', |
| | | '2024-09-13 15:44:17', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, |
| | | `color_type`, `css_class`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`) |
| | | VALUES (1543, 3, 'file', 'file', 'model_method_setting_type', 0, '', '', '', '1', '2024-09-13 15:44:24', '1', |
| | | '2024-09-13 15:44:24', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, |
| | | `color_type`, `css_class`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`) |
| | | VALUES (1544, 1, 'int', 'int', 'model_method_setting_value_type', 0, '', '', '', '1', '2024-09-13 15:44:42', '1', |
| | | '2024-09-13 15:44:42', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, |
| | | `color_type`, `css_class`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`) |
| | | VALUES (1545, 5, 'file', 'file', 'model_method_setting_value_type', 0, '', '', '', '1', '2024-09-13 15:44:57', '1', |
| | | '2024-09-14 14:16:24', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, |
| | | `color_type`, `css_class`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`) |
| | | VALUES (1546, 3, 'decimal', 'decimal', 'model_method_setting_value_type', 0, '', '', '', '1', '2024-09-13 15:45:21', |
| | | '1', '2024-09-13 15:45:21', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, |
| | | `color_type`, `css_class`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`) |
| | | VALUES (1547, 4, 'decimalArray', 'decimalArray', 'model_method_setting_value_type', 0, '', '', '', '1', |
| | | '2024-09-13 15:45:26', '1', '2024-09-13 15:45:26', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, |
| | | `color_type`, `css_class`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`) |
| | | VALUES (1548, 2, 'string', 'string', 'model_method_setting_value_type', 0, '', '', '', '1', '2024-09-13 15:45:36', '1', |
| | | '2024-09-14 14:16:30', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_dict_data` (`id`, `sort`, `label`, `value`, `dict_type`, `status`, |
| | | `color_type`, `css_class`, `remark`, `creator`, `create_time`, |
| | | `updater`, `update_time`, `deleted`) |
| | | VALUES (1549, 4, 'schedul', 'schedul', 'model_method', 0, '', '', '', '1', '2024-09-14 14:56:44', '1', |
| | | '2024-09-14 14:56:44', b'0'); |
| | | |
| | | |
| | | -- 业务表 |
| | | DROP TABLE IF EXISTS `t_mpk_file`; |
| | | CREATE TABLE `t_mpk_file` ( |
| | | CREATE TABLE `t_mpk_file` |
| | | ( |
| | | `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id', |
| | | `py_name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '模型名称', |
| | | `py_chinese_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '模型中文名称', |
| | |
| | | -- Table structure for t_mpk_generator_code_history |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_mpk_generator_code_history`; |
| | | CREATE TABLE `t_mpk_generator_code_history` ( |
| | | CREATE TABLE `t_mpk_generator_code_history` |
| | | ( |
| | | `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id', |
| | | `mdk_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'mdk_id', |
| | | `file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件名', |
| | |
| | | -- Table structure for t_mpk_model_method |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_mpk_model_method`; |
| | | CREATE TABLE `t_mpk_model_method` ( |
| | | CREATE TABLE `t_mpk_model_method` |
| | | ( |
| | | `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id', |
| | | `mpk_file_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '模型文件id', |
| | | `method_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '模型方法名', |
| | |
| | | -- Table structure for t_mpk_method_setting |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_mpk_method_setting`; |
| | | CREATE TABLE `t_mpk_method_setting` ( |
| | | CREATE TABLE `t_mpk_method_setting` |
| | | ( |
| | | `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id', |
| | | `method_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '方法id', |
| | | `setting_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'key', |
| | |
| | | -- Table structure for t_mpk_setting_select |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_mpk_setting_select`; |
| | | CREATE TABLE `t_mpk_setting_select` ( |
| | | CREATE TABLE `t_mpk_setting_select` |
| | | ( |
| | | `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id', |
| | | `setting_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '参数id', |
| | | `select_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'key', |
| | |
| | | -- Table structure for t_mpk_project |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_mpk_project`; |
| | | CREATE TABLE `t_mpk_project` ( |
| | | CREATE TABLE `t_mpk_project` |
| | | ( |
| | | `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id', |
| | | `project_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '项目名称', |
| | | `project_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '项目编码', |
| | |
| | | -- Table structure for t_mpk_project_model |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_mpk_project_model`; |
| | | CREATE TABLE `t_mpk_project_model` ( |
| | | CREATE TABLE `t_mpk_project_model` |
| | | ( |
| | | `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id', |
| | | `project_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '项目id', |
| | | `model_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '模型id', |
| | |
| | | -- Table structure for t_mpk_project_package_history |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_mpk_project_package_history`; |
| | | CREATE TABLE `t_mpk_project_package_history` ( |
| | | CREATE TABLE `t_mpk_project_package_history` |
| | | ( |
| | | `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id', |
| | | `project_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '项目id', |
| | | `file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件名', |
| | |
| | | -- Table structure for t_mpk_project_package_history_model |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_mpk_project_package_history_model`; |
| | | CREATE TABLE `t_mpk_project_package_history_model` ( |
| | | CREATE TABLE `t_mpk_project_package_history_model` |
| | | ( |
| | | `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id', |
| | | `project_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '项目id', |
| | | `package_history_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '打包历史id', |
| | |
| | | |
| | | |
| | | DROP TABLE IF EXISTS `t_mpk_icon`; |
| | | CREATE TABLE `t_mpk_icon` ( |
| | | CREATE TABLE `t_mpk_icon` |
| | | ( |
| | | `id` varchar(36) NOT NULL COMMENT 'id', |
| | | `icon_name` varchar(36) NOT NULL COMMENT '图标名称', |
| | | `icon_desc` varchar(36) DEFAULT NULL COMMENT '图标描述', |
| | |
| | | ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'MDK平台图标' ROW_FORMAT = Dynamic; |
| | | |
| | | DROP TABLE IF EXISTS `t_mpk_file_menu`; |
| | | CREATE TABLE `t_mpk_file_menu` ( |
| | | CREATE TABLE `t_mpk_file_menu` |
| | | ( |
| | | `id` varchar(36) NOT NULL COMMENT 'id', |
| | | `name` varchar(36) NOT NULL COMMENT '名称', |
| | | `sort` integer DEFAULT NULL COMMENT '排序', |
| | |
| | | ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '模型文件菜单' ROW_FORMAT = Dynamic; |
| | | |
| | | DROP TABLE IF EXISTS `t_mpk_file_group`; |
| | | CREATE TABLE `t_mpk_file_group` ( |
| | | CREATE TABLE `t_mpk_file_group` |
| | | ( |
| | | `id` varchar(36) NOT NULL COMMENT 'id', |
| | | `menu_id` varchar(36) NOT NULL COMMENT '菜单', |
| | | `name` varchar(36) NOT NULL COMMENT '名称', |
| | |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '模型文件分组' ROW_FORMAT = Dynamic; |
| | | |
| | | alter table t_mm_predict_model add column `mpkprojectid` varchar(36) DEFAULT NULL; |
| | | alter table t_mm_predict_model |
| | | add column `mpkprojectid` varchar(36) DEFAULT NULL; |
| | | |
| | | -- chart 图表配置 |
| | | |
| | | -- menu |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `app_id`, `tenant_id`) VALUES (1803317368435416399, '图表管理', '', 1, 40, 1803317368415416363, 'chart', 'fa:align-left', '', '', 0, b'1', b'1', b'1', '1', '2024-11-05 11:57:25', '1', '2024-11-05 11:57:49', b'0', 0, 1); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `app_id`, `tenant_id`) VALUES (1803317368435416400, '图表配置', '', 2, 1, 1803317368435416399, 'chartParam', 'fa-solid:cogs', 'model/chart/index', 'ChartParam', 0, b'1', b'1', b'1', '1', '2024-11-05 12:01:59', '1', '2024-11-06 08:45:17', b'0', 0, 1); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `app_id`, `tenant_id`) VALUES (1803317368435416401, '查询', 'model:chart:query', 3, 1, 1803317368435416400, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-11-05 15:36:48', '1', '2024-11-05 15:36:48', b'0', NULL, 1); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `app_id`, `tenant_id`) VALUES (1803317368435416402, '新增', 'model:chart:create', 3, 2, 1803317368435416400, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-11-05 15:37:03', '1', '2024-11-05 15:37:03', b'0', NULL, 1); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `app_id`, `tenant_id`) VALUES (1803317368435416403, '修改', 'model:chart:update', 3, 3, 1803317368435416400, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-11-05 15:37:20', '1', '2024-11-05 15:37:20', b'0', NULL, 1); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `app_id`, `tenant_id`) VALUES (1803317368435416404, '删除', 'model:chart:delete', 3, 4, 1803317368435416400, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-11-05 15:37:38', '1', '2024-11-05 15:37:38', b'0', NULL, 1); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, |
| | | `component`, `component_name`, `status`, `visible`, `keep_alive`, |
| | | `always_show`, `creator`, `create_time`, `updater`, `update_time`, |
| | | `deleted`, `app_id`, `tenant_id`) |
| | | VALUES (1803317368435416399, '图表管理', '', 1, 40, 1803317368415416363, 'chart', 'fa:align-left', '', '', 0, b'1', |
| | | b'1', b'1', '1', '2024-11-05 11:57:25', '1', '2024-11-05 11:57:49', b'0', 0, 1); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, |
| | | `component`, `component_name`, `status`, `visible`, `keep_alive`, |
| | | `always_show`, `creator`, `create_time`, `updater`, `update_time`, |
| | | `deleted`, `app_id`, `tenant_id`) |
| | | VALUES (1803317368435416400, '图表配置', '', 2, 1, 1803317368435416399, 'chartParam', 'fa-solid:cogs', |
| | | 'model/chart/index', 'ChartParam', 0, b'1', b'1', b'1', '1', '2024-11-05 12:01:59', '1', '2024-11-06 08:45:17', |
| | | b'0', 0, 1); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, |
| | | `component`, `component_name`, `status`, `visible`, `keep_alive`, |
| | | `always_show`, `creator`, `create_time`, `updater`, `update_time`, |
| | | `deleted`, `app_id`, `tenant_id`) |
| | | VALUES (1803317368435416401, '查询', 'model:chart:query', 3, 1, 1803317368435416400, '', '', '', '', 0, b'1', b'1', |
| | | b'1', '1', '2024-11-05 15:36:48', '1', '2024-11-05 15:36:48', b'0', NULL, 1); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, |
| | | `component`, `component_name`, `status`, `visible`, `keep_alive`, |
| | | `always_show`, `creator`, `create_time`, `updater`, `update_time`, |
| | | `deleted`, `app_id`, `tenant_id`) |
| | | VALUES (1803317368435416402, '新增', 'model:chart:create', 3, 2, 1803317368435416400, '', '', '', '', 0, b'1', b'1', |
| | | b'1', '1', '2024-11-05 15:37:03', '1', '2024-11-05 15:37:03', b'0', NULL, 1); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, |
| | | `component`, `component_name`, `status`, `visible`, `keep_alive`, |
| | | `always_show`, `creator`, `create_time`, `updater`, `update_time`, |
| | | `deleted`, `app_id`, `tenant_id`) |
| | | VALUES (1803317368435416403, '修改', 'model:chart:update', 3, 3, 1803317368435416400, '', '', '', '', 0, b'1', b'1', |
| | | b'1', '1', '2024-11-05 15:37:20', '1', '2024-11-05 15:37:20', b'0', NULL, 1); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, |
| | | `component`, `component_name`, `status`, `visible`, `keep_alive`, |
| | | `always_show`, `creator`, `create_time`, `updater`, `update_time`, |
| | | `deleted`, `app_id`, `tenant_id`) |
| | | VALUES (1803317368435416404, '删除', 'model:chart:delete', 3, 4, 1803317368435416400, '', '', '', '', 0, b'1', b'1', |
| | | b'1', '1', '2024-11-05 15:37:38', '1', '2024-11-05 15:37:38', b'0', NULL, 1); |
| | | |
| | | -- table |
| | | CREATE TABLE `t_chart` ( |
| | | CREATE TABLE `t_chart` |
| | | ( |
| | | `id` varchar(36) NOT NULL, |
| | | `chart_name` varchar(100) DEFAULT NULL COMMENT '图表名称', |
| | | `chart_code` varchar(100) DEFAULT NULL COMMENT '图表编码', |
| | |
| | | KEY `index_id` (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='图表配置'; |
| | | |
| | | CREATE TABLE `t_chart_param` ( |
| | | CREATE TABLE `t_chart_param` |
| | | ( |
| | | `id` varchar(36) NOT NULL, |
| | | `chart_id` varchar(36) NOT NULL COMMENT '图表id', |
| | | `param_name` varchar(255) DEFAULT NULL COMMENT '参数名称', |
| | |
| | | |
| | | |
| | | DROP TABLE IF EXISTS `t_mpk_pack`; |
| | | CREATE TABLE `t_mpk_pack` ( |
| | | CREATE TABLE `t_mpk_pack` |
| | | ( |
| | | `id` varchar(36) NOT NULL COMMENT 'id', |
| | | `pack_name` varchar(50) NOT NULL COMMENT '包名称', |
| | | `pack_desc` varchar(50) DEFAULT NULL COMMENT '包描述', |
| | |
| | | PRIMARY KEY (`id`) USING BTREE, |
| | | UNIQUE INDEX uk_pack_name (pack_name) |
| | | ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'MDK包名管理' ROW_FORMAT = Dynamic; |
| | | |
| | | |
| | | create table |
| | | t_mm_item_status |
| | | ( |
| | | id varchar(36) not null COMMENT 'id', |
| | | item_id varchar(36) COMMENT '预测项ID', |
| | | last_time datetime DEFAULT NULL COMMENT '最新运行时间', |
| | | status smallint DEFAULT NULL COMMENT '运行状态', |
| | | duration bigint(20) DEFAULT NULL COMMENT '耗时(s)', |
| | | primary key (id), |
| | | UNIQUE INDEX uk_item_id (item_id) |
| | | ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '测项状态表' ROW_FORMAT = Dynamic; |
对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.pre.dao; |
| | | |
| | | import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
| | | import com.iailab.framework.tenant.core.db.dynamic.TenantDS; |
| | | import com.iailab.module.model.mcs.pre.entity.MmItemStatusEntity; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * @author PanZhibao |
| | | * @Description |
| | | * @createTime 2024年11月11日 |
| | | */ |
| | | @TenantDS |
| | | @Mapper |
| | | public interface MmItemStatusDao extends BaseMapperX<MmItemStatusEntity> { |
| | | } |
| | |
| | | @Data |
| | | @TableName("T_MM_ITEM_RESULT") |
| | | public class MmItemResultEntity implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主键 |
| | | */ |
对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.pre.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author PanZhibao |
| | | * @Description |
| | | * @createTime 2024年11月11日 |
| | | */ |
| | | @Data |
| | | @TableName("t_mm_item_status") |
| | | public class MmItemStatusEntity implements Serializable { |
| | | |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @TableId(value = "id",type = IdType.INPUT) |
| | | private String id; |
| | | |
| | | /** |
| | | * 预测项ID |
| | | */ |
| | | private String itemid; |
| | | |
| | | /** |
| | | * 最新运行时间 |
| | | */ |
| | | private Date lastTime; |
| | | |
| | | /** |
| | | * 运行状态 |
| | | */ |
| | | private Integer status; |
| | | |
| | | /** |
| | | * 耗时(ms) |
| | | */ |
| | | private Long duration; |
| | | } |
| | |
| | | private Integer status; |
| | | |
| | | /** |
| | | * isfuse |
| | | * 是否融合 |
| | | */ |
| | | private Integer isfuse; |
| | | |
| | |
| | | private Integer workchecked; |
| | | |
| | | /** |
| | | * unittransfactor |
| | | * 单位转换 |
| | | */ |
| | | private Integer unittransfactor; |
| | | |
对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.pre.enums; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * @author PanZhibao |
| | | * @Description |
| | | * @createTime 2024年11月11日 |
| | | */ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum ItemRunStatusEnum { |
| | | PROCESSING(1, "处理中"), |
| | | SUCCESS(2, "成功"), |
| | | FAIL(3, "失败"); |
| | | |
| | | private Integer code; |
| | | private String desc; |
| | | |
| | | public static ItemRunStatusEnum getEumByCode(Integer code) { |
| | | if (code == null) { |
| | | return null; |
| | | } |
| | | |
| | | for (ItemRunStatusEnum statusEnum : ItemRunStatusEnum.values()) { |
| | | if (statusEnum.getCode().equals(code)) { |
| | | return statusEnum; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.pre.enums; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * 预测粒度 |
| | | * |
| | | * @author PanZhibao |
| | | * @Description |
| | | * @createTime 2024年11月11日 |
| | | */ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum PredGranularityEnum { |
| | | MIN1(60, "1min"); |
| | | |
| | | private Integer code; |
| | | private String desc; |
| | | |
| | | public static PredGranularityEnum getEumByCode(Integer code) { |
| | | if (code == null) { |
| | | return null; |
| | | } |
| | | |
| | | for (PredGranularityEnum statusEnum : PredGranularityEnum.values()) { |
| | | if (statusEnum.getCode().equals(code)) { |
| | | return statusEnum; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.pre.service; |
| | | |
| | | import com.iailab.module.model.mcs.pre.enums.ItemRunStatusEnum; |
| | | |
| | | /** |
| | | * @author PanZhibao |
| | | * @Description |
| | | * @createTime 2024年11月11日 |
| | | */ |
| | | public interface MmItemStatusService { |
| | | |
| | | void recordStatus(String itemId, ItemRunStatusEnum status, Long duration); |
| | | } |
对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.pre.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.iailab.module.model.mcs.pre.dao.MmItemStatusDao; |
| | | import com.iailab.module.model.mcs.pre.entity.MmItemStatusEntity; |
| | | import com.iailab.module.model.mcs.pre.enums.ItemRunStatusEnum; |
| | | import com.iailab.module.model.mcs.pre.service.MmItemStatusService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.UUID; |
| | | |
| | | /** |
| | | * @author PanZhibao |
| | | * @Description |
| | | * @createTime 2024年11月11日 |
| | | */ |
| | | @Service |
| | | public class MmItemStatusServiceImpl implements MmItemStatusService { |
| | | |
| | | |
| | | @Resource |
| | | public MmItemStatusDao mmItemStatusDao; |
| | | |
| | | public void recordStatus(String itemId, ItemRunStatusEnum status, Long duration) { |
| | | QueryWrapper<MmItemStatusEntity> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("item_id", itemId); |
| | | MmItemStatusEntity entity = mmItemStatusDao.selectOne(queryWrapper); |
| | | if (entity == null) { |
| | | entity = new MmItemStatusEntity(); |
| | | entity.setId(UUID.randomUUID().toString()); |
| | | entity.setLastTime(new Date()); |
| | | entity.setStatus(status.getCode()); |
| | | entity.setDuration(duration); |
| | | mmItemStatusDao.insert(entity); |
| | | } else { |
| | | entity.setLastTime(new Date()); |
| | | entity.setStatus(status.getCode()); |
| | | entity.setDuration(duration); |
| | | mmItemStatusDao.updateById(entity); |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | package com.iailab.module.model.mdk.predict; |
| | | |
| | | import com.iailab.module.model.mcs.pre.entity.MmItemStatusEntity; |
| | | import com.iailab.module.model.mcs.pre.enums.ItemRunStatusEnum; |
| | | import com.iailab.module.model.mcs.pre.enums.ItemStatus; |
| | | import com.iailab.module.model.mcs.pre.service.MmItemStatusService; |
| | | import com.iailab.module.model.mdk.factory.PredictItemFactory; |
| | | import com.iailab.module.model.mdk.vo.ItemVO; |
| | | import com.iailab.module.model.mdk.vo.PredictResultVO; |
| | |
| | | @Autowired |
| | | private PredictResultHandler predictResultHandler; |
| | | |
| | | @Autowired |
| | | private MmItemStatusService mmItemStatusService; |
| | | |
| | | |
| | | public Map<String, PredictResultVO> predict(List<ItemVO> predictItemList, Date predictTime, int intervalTime) { |
| | | Map<String, PredictResultVO> result = new HashMap<>(); |
| | |
| | | if (!predictItem.getStatus().equals(ItemStatus.STATUS1.getCode())) { |
| | | continue; |
| | | } |
| | | Long totalDur = 0L; |
| | | try { |
| | | mmItemStatusService.recordStatus(predictItem.getId(), ItemRunStatusEnum.PROCESSING, totalDur); |
| | | PredictItemHandler predictItemHandler = predictItemFactory.create(predictItem.getId()); |
| | | Instant start = Instant.now(); |
| | | try { |
| | |
| | | Instant end = Instant.now(); |
| | | Long drtPre = Duration.between(start, end).getSeconds(); |
| | | log.info(MessageFormat.format("预测项:{0},预测时间:{1}秒", predictItem.getItemName(), drtPre)); |
| | | totalDur = totalDur + drtPre; |
| | | |
| | | predictResult.setT(intervalTime); |
| | | predictResult.setSaveIndex(predictItem.getSaveIndex()); |
| | |
| | | Long drtSave = Duration.between(end, endSave).getSeconds(); |
| | | log.info(MessageFormat.format("预测项:{0},保存时间:{1}秒", predictItem.getItemName(), |
| | | drtSave)); |
| | | |
| | | totalDur = totalDur + drtSave; |
| | | mmItemStatusService.recordStatus(predictItem.getId(), ItemRunStatusEnum.SUCCESS, totalDur); |
| | | result.put(predictItem.getItemNo(), predictResult); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error(MessageFormat.format("预测项编号:{0},预测项名称:{1},预测失败:{2} 预测时刻:{3}", |
| | | predictItem.getId(), predictItem.getItemName(), e.getMessage(), predictTime)); |
| | | mmItemStatusService.recordStatus(predictItem.getId(), ItemRunStatusEnum.FAIL, totalDur); |
| | | } |
| | | } |
| | | return result; |
| | |
| | | - t_chart_param |
| | | - t_chart |
| | | - t_mpk_pack |
| | | - t_mm_item_status |
| | | app: |
| | | app-key: model |
| | | app-secret: 85b0df7edc3df3611913df34ed695011 |