Merge remote-tracking branch 'origin/master'
New file |
| | |
| | | package com.mes.common.config; |
| | | |
| | | |
| | | /** |
| | | * @Author : zt |
| | | * @Date: 2025/4/08 10:33 |
| | | * @Description: |
| | | */ |
| | | public class ConstSysConfig { |
| | | |
| | | |
| | | // 钢化炉数阈值 |
| | | public static final Integer CACHE_THRESHOLD = 1; |
| | | // 磨边参数换算率 |
| | | public static final Integer CACHE_RATIO = 2; |
| | | // 卧理最大长边 |
| | | public static final Integer CACHE_CACHE_WIDTH = 3; |
| | | // 卧理最大短边 |
| | | public static final Integer CACHE_CACHE_HEIGHT = 4; |
| | | // 磨边二线最大长边 |
| | | public static final Integer CACHE_MAX_FIRST_LENGTH = 5; |
| | | // 磨边二线最大短边 |
| | | public static final Integer CACHE_MAX_SECOND_LENGTH = 6; |
| | | // 磨边一线最大长边 |
| | | public static final Integer CACHE_MIN_ONE_FIRST_LENGTH = 7; |
| | | // 磨边一线最大短边 |
| | | public static final Integer CACHE_MIN_ONE_SECOND_LENGTH = 8; |
| | | // 磨边二线最大长边 |
| | | public static final Integer CACHE_MIN_TWO_FIRST_LENGTH = 9; |
| | | // 磨边二线最大短边 |
| | | public static final Integer CACHE_MIN_TWO_SECOND_LENGTH = 10; |
| | | // 卧理玻璃间隙 |
| | | public static final Integer CACHE_GLASS_GAP = 1; |
| | | // 卧理格子宽度 |
| | | public static final Integer CACHE_CELL_LENGTH = 12; |
| | | // 排序方式 |
| | | public static final Integer CACHE_SEQUENCE_ORDER_FALSE = 13; |
| | | // 排序方式 |
| | | public static final Integer CACHE_SEQUENCE_ORDER_TRUE = 14; |
| | | |
| | | // 一炉玻璃占用格子数 |
| | | public static final Integer VERTICAL_MINCOUNT = 15; |
| | | // 大车宽度 |
| | | public static final Integer VERTICAL_CAR_WIDTH = 16; |
| | | // 格子宽度 |
| | | public static final Integer VERTICAL_SLOT_WIDTH = 17; |
| | | // 进片车最大玻璃数 |
| | | public static final Integer VERTICAL_IN_CAR_SIZE = 18; |
| | | // 出片车最大玻璃数 |
| | | public static final Integer VERTICAL_OUT_CAR_SIZE = 19; |
| | | // 玻璃间隙 |
| | | public static final Integer VERTICAL_GLASS_GAP = 20; |
| | | // 钢化炉长度 |
| | | public static final Integer VERTICAL_X_MAX_SIZE = 21; |
| | | // 格子最大高度 |
| | | public static final Integer VERTICAL_SLOT_MAX_HEIGHT = 22; |
| | | // 格子最大厚度 |
| | | public static final Integer VERTICAL_SLOT_MAXTHICKNESS = 23; |
| | | // 钢出目标位置 |
| | | public static final Integer VERTICAL_TEMPERING_OUT_TARGET_POSITION = 24; |
| | | // 人工下片目标位置 |
| | | public static final Integer VERTICAL_ARTIFICIAL_OUT_TARGET_POSITION = 25; |
| | | |
| | | // 排序方式 |
| | | public static final Integer HOLLOW_SEQUENCE_ORDER = 26; |
| | | // 一炉玻璃占用格子数 |
| | | public static final Integer HOLLOW_MINCOUNT = 27; |
| | | // 大车宽度 |
| | | public static final Integer HOLLOW_CAR_WIDTH = 28; |
| | | // 格子宽度 |
| | | public static final Integer HOLLOW_SLOT_WIDTH = 29; |
| | | // 进片车最大玻璃数 |
| | | public static final Integer HOLLOW_IN_CAR_SIZE = 30; |
| | | // 出片车最大玻璃数 |
| | | public static final Integer HOLLOW_OUT_CAR_SIZE = 31; |
| | | // 玻璃间隙 |
| | | public static final Integer HOLLOW_GLASS_GAP = 32; |
| | | // 钢化炉长度 |
| | | public static final Integer HOLLOW_X_MAX_SIZE = 33; |
| | | // 钢出目标位置 |
| | | public static final Integer HOLLOW_TEMPERING_OUT_TARGET_POSITION = 34; |
| | | // 人工下片目标位置 |
| | | public static final Integer HOLLOW_ARTIFICIAL_OUT_TARGET_POSITION = 35; |
| | | // 格子最大高度 |
| | | public static final Integer HOLLOW_SLOT_MAX_HEIGHT = 36; |
| | | // 格子最大厚度 |
| | | public static final Integer HOLLOW_SLOT_MAXTHICKNESS = 37; |
| | | |
| | | // 钢化炉长度 |
| | | public static final Integer TEMPERING_WIDTH = 38; |
| | | // 钢化炉宽度 |
| | | public static final Integer TEMPERING_HEIGHT = 39; |
| | | |
| | | |
| | | |
| | | } |
New file |
| | |
| | | -- liquibase formatted sql |
| | | |
| | | -- changeset zt:20250407001 |
| | | -- preconditions onFail:CONTINUE onError:CONTINUE |
| | | -- precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'sys_config' ; |
| | | CREATE TABLE `sys_config` ( |
| | | `id` int NOT NULL AUTO_INCREMENT, |
| | | `parent_id` int NULL DEFAULT NULL COMMENT '父配置id', |
| | | `config_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '配置名', |
| | | `config_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '配置代码', |
| | | `config_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '配置值', |
| | | `is_enable` int NULL DEFAULT NULL COMMENT '是否启用', |
| | | `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
| | | `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 61 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic; |
| | | -- rollback DROP TABLE big_storage_cage; |
| | | |
| | | |
| | | -- changeset zt:20250407001 |
| | | -- preconditions onFail:CONTINUE onError:CONTINUE |
| | | -- precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM sys_config; |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (1, 1, '钢化炉数阈值', 'cache_threshold', '11', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:29'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (2, 1, '磨边参数换算率', 'cache_ratio', '10', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:26'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (3, 1, '卧理最大长边', 'cache_cacheWidth', '3600', 0, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (4, 1, '卧理最大短边', 'cache_cacheHeight', '3000', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (5, 1, '磨边二线最大长边', 'cache_max_firstLength', '3500', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (6, 1, '磨边二线最大短边', 'cache_max_secondLength', '2500', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (7, 1, '磨边一线最大长边', 'cache_min_one_firstLength', '460', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (8, 1, '磨边一线最大短边', 'cache_min_one,secondLength', '390', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (9, 1, '磨边二线最大长边', 'cache_min_two_firstLength', '300', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (10, 1, '磨边二线最大短边', 'cache_min_two_secondLength', '300', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (11, 1, '卧理玻璃间隙', 'cache_glassGap', '2500', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (12, 1, '卧理格子宽度', 'cache_cellLength', '2500', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (13, 1, '排序方式', 'cache_sequence_order', 'FALSE', 1, '2025-04-07 09:20:04', '2025-04-08 13:43:18'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (14, 2, '排序方式', 'cache_sequence_order', 'TRUE', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (15, 2, '一炉玻璃占用格子数', 'vertical_mincount', '30', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (16, 2, '大车宽度', 'vertical_carWidth', '6200', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (17, 2, '格子宽度', 'vertical_slotWidth', '6200', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (18, 2, '进片车最大玻璃数', 'vertical_inCarSize', '5', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (19, 2, '出片车最大玻璃数', 'vertical_outCarSize', '6', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (20, 2, '玻璃间隙', 'vertical_glassGap', '250', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (21, 2, '钢化炉长度', 'vertical_xMaxSize', '2800', 0, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (22, 2, '格子最大高度', 'vertical_slotMaxHeight', '2500', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (23, 2, '格子最大厚度', 'vertical_slotMaxthickness', '12', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (24, 2, '钢出目标位置', 'vertical_temperingOutTargetPosition', '930', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (25, 2, '人工下片目标位置', 'vertical_artificialOutTargetPosition', '931', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (26, 3, '排序方式', 'hollow_sequence,order', 'TRUE', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (27, 3, '一炉玻璃占用格子数', 'hollow_mincount', '30', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (28, 3, '大车宽度', 'hollow_carWidth', '6200', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (29, 3, '格子宽度', 'hollow_slotWidth', '6200', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (30, 3, '进片车最大玻璃数', 'hollow_inCarSize', '5', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (31, 3, '出片车最大玻璃数', 'hollow_outCarSize', '6', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (32, 3, '玻璃间隙', 'hollow_glassGap', '250', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (33, 3, '钢化炉长度', 'hollow_xMaxSize', '2800', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (34, 3, '钢出目标位置', 'hollow_temperingOutTargetPosition', '930', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (35, 3, '人工下片目标位置', 'hollow_artificialOutTargetPosition', '931', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (36, 3, '格子最大高度', 'hollow_slotMaxHeight', '2500', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (37, 3, '格子最大厚度', 'hollow_slotMaxthickness', '12', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (38, 4, '钢化炉长度', 'tempering_width', '2800', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | INSERT INTO `north_glass_mes`.`sys_config` (`id`, `parent_id`, `config_name`, `config_code`, `config_value`, `is_enable`, `create_time`, `update_time`) VALUES (39, 4, '钢化炉宽度', 'tempering_height', '5000', 1, '2025-04-07 09:20:04', '2025-04-08 13:42:00'); |
| | | |
| | | |