| | |
| | | Target Server Version : 50528 |
| | | File Encoding : 65001 |
| | | |
| | | Date: 04/12/2023 09:47:49 |
| | | Date: 13/05/2024 13:12:34 |
| | | */ |
| | | |
| | | SET NAMES utf8mb4; |
| | |
| | | `stoprank` bigint(20) NULL DEFAULT NULL, |
| | | `shelfrankid` bigint(20) NULL DEFAULT NULL, |
| | | `processcard` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL |
| | | ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for Y_Edg_Statistics |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `Y_Edg_Statistics`; |
| | | CREATE TABLE `Y_Edg_Statistics` ( |
| | | `Glassid` bigint(20) NOT NULL COMMENT 'ç»çID', |
| | | `SendTime` datetime NULL DEFAULT NULL COMMENT 'åéæ¶é´', |
| | | `Width` double NULL DEFAULT NULL COMMENT '宽', |
| | | `Height` double NULL DEFAULT NULL COMMENT 'é«', |
| | | `Thickess` double NULL DEFAULT NULL COMMENT 'å', |
| | | `SizeText` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '尺寸å符串', |
| | | `SendText` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'åéå
容', |
| | | `Recordsid` bigint(20) NULL DEFAULT NULL COMMENT 'è®°å½ID', |
| | | `Line` int(11) NULL DEFAULT NULL COMMENT '线路', |
| | | `RecordsidW` double NULL DEFAULT NULL COMMENT 'è®°å½ID宽', |
| | | `RecordsidH` double NULL DEFAULT NULL COMMENT 'è®°å½IDé«', |
| | | `banzu` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'çç»', |
| | | `report_time` date NULL DEFAULT NULL COMMENT 'æ¥å·¥æ¥æ' |
| | | ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | |
| | | -- ---------------------------- |
| | |
| | | `dengluname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'åå²çç»', |
| | | `BgTime` datetime NULL DEFAULT NULL COMMENT 'æ¥å·¥æ¶é´', |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 123992 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 167574 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_device_state |
| | |
| | | `start_time` datetime NULL DEFAULT NULL COMMENT 'å»ºç«æ¶é´', |
| | | `groups` bigint(20) NULL DEFAULT NULL COMMENT '线路', |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 1208629 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 1550998 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_edg_speed |
| | |
| | | `length` int(11) NOT NULL, |
| | | `xinterval` int(11) NOT NULL, |
| | | `yinterval` int(11) NOT NULL, |
| | | `maxLoadingRate` int(3) NOT NULL COMMENT 'åçæå¤§è£
è½½ç', |
| | | `maxTolerance` int(3) NOT NULL COMMENT 'åçæå¤§å°ºå¯¸æ¯ä¾', |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | |
| | |
| | | `IntRemark` int(255) NULL DEFAULT NULL, |
| | | `StrRemark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 28 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_galss_task |
| | |
| | | INDEX `galss_id`(`galss_id`) USING BTREE, |
| | | INDEX `type_id`(`type_id`) USING BTREE, |
| | | INDEX `gc`(`engineering_id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 1393464 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 1779094 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_galss_task_details |
| | |
| | | ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_galss_task_shelf_copy3 |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `gmms_galss_task_shelf_copy3`; |
| | | CREATE TABLE `gmms_galss_task_shelf_copy3` ( |
| | | `id` bigint(20) NOT NULL, |
| | | `rank` bigint(20) NULL DEFAULT 0, |
| | | `type_id` bigint(20) NULL DEFAULT NULL, |
| | | `galss_id` bigint(20) NOT NULL, |
| | | `pattern_id` bigint(20) NULL DEFAULT NULL, |
| | | `width` double(6, 1) NULL DEFAULT NULL, |
| | | `height` double(6, 1) NULL DEFAULT NULL, |
| | | `thickness` double(6, 1) NULL DEFAULT NULL, |
| | | `color` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | `edg_width` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | `edg_height` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | `chamfer_size` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'åè§å¤§å°', |
| | | `galss_type` int(11) NULL DEFAULT NULL COMMENT 'ç»çç±»å æ£å/æ´å', |
| | | `edg_speed1` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '磨边é度', |
| | | `edg_speed2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | `fine_throwing` int(11) NULL DEFAULT NULL COMMENT 'ç²¾æ/ç²ç£¨', |
| | | `work_state` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | `work_procedure` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | `slicecage_rank` bigint(20) NULL DEFAULT 0 COMMENT 'çç笼æ¶å', |
| | | `drop_frame` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'è½æ¶', |
| | | `slicecage_flag` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT 'çç笼æ å¿ï¼å¤ç¨ï¼', |
| | | `out_rank` bigint(20) NOT NULL COMMENT 'åºçç笼åºå·', |
| | | `start_time` datetime NOT NULL, |
| | | `finsh_time` datetime NULL DEFAULT NULL, |
| | | `stop_position` int(11) NOT NULL COMMENT 'ä¸çä½ç½®', |
| | | `processcard_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'æµç¨å¡å·', |
| | | `engineering_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'å·¥ç¨å·', |
| | | `broken_state` int(11) NOT NULL COMMENT 'ç ´çæ è®°ï¼é0ç ´ç', |
| | | `stop_rank` int(11) NOT NULL, |
| | | `work_procedure_number` int(11) NULL DEFAULT NULL, |
| | | `gc_number` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | `gc_width` double NULL DEFAULT NULL, |
| | | `gc_height` double NULL DEFAULT NULL, |
| | | `gc_stockid` int(11) NULL DEFAULT NULL, |
| | | `marking_flag` int(11) NOT NULL COMMENT 'ææ ', |
| | | `groupsss` int(11) NULL DEFAULT NULL COMMENT '线路', |
| | | `banzu` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'çç»', |
| | | PRIMARY KEY (`id`) USING BTREE, |
| | | INDEX `pattern_id`(`pattern_id`) USING BTREE, |
| | | INDEX `galss_id`(`galss_id`) USING BTREE, |
| | | INDEX `type_id`(`type_id`) USING BTREE |
| | | ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_galss_task_shelf_log |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `gmms_galss_task_shelf_log`; |
| | | CREATE TABLE `gmms_galss_task_shelf_log` ( |
| | | `id` bigint(20) NOT NULL, |
| | | `rank` bigint(20) NULL DEFAULT 0, |
| | | `type_id` bigint(20) NULL DEFAULT NULL, |
| | | `galss_id` bigint(20) NOT NULL, |
| | | `pattern_id` bigint(20) NULL DEFAULT NULL, |
| | | `width` double(6, 1) NULL DEFAULT NULL, |
| | | `height` double(6, 1) NULL DEFAULT NULL, |
| | | `thickness` double(6, 1) NULL DEFAULT NULL, |
| | | `color` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | `edg_width` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | `edg_height` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | `chamfer_size` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'åè§å¤§å°', |
| | | `galss_type` int(11) NULL DEFAULT NULL COMMENT 'ç»çç±»å æ£å/æ´å', |
| | | `edg_speed1` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '磨边é度', |
| | | `edg_speed2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | `fine_throwing` int(11) NULL DEFAULT NULL COMMENT 'ç²¾æ/ç²ç£¨', |
| | | `work_state` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | `work_procedure` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | `slicecage_rank` bigint(20) NULL DEFAULT 0 COMMENT 'çç笼æ¶å', |
| | | `drop_frame` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'è½æ¶', |
| | | `slicecage_flag` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT 'çç笼æ å¿ï¼å¤ç¨ï¼', |
| | | `out_rank` bigint(20) NOT NULL COMMENT 'åºçç笼åºå·', |
| | | `start_time` datetime NOT NULL, |
| | | `finsh_time` datetime NULL DEFAULT NULL, |
| | | `stop_position` int(11) NOT NULL COMMENT 'ä¸çä½ç½®', |
| | | `processcard_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'æµç¨å¡å·', |
| | | `engineering_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'å·¥ç¨å·', |
| | | `broken_state` int(11) NOT NULL COMMENT 'ç ´çæ è®°ï¼é0ç ´ç', |
| | | `stop_rank` int(11) NOT NULL, |
| | | `work_procedure_number` int(11) NULL DEFAULT NULL, |
| | | `gc_number` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | `gc_width` double NULL DEFAULT NULL, |
| | | `gc_height` double NULL DEFAULT NULL, |
| | | `gc_stockid` int(11) NULL DEFAULT NULL, |
| | | `marking_flag` int(11) NOT NULL COMMENT 'ææ ', |
| | | `groupsss` int(11) NULL DEFAULT NULL COMMENT '线路', |
| | | `banzu` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'çç»', |
| | | PRIMARY KEY (`id`) USING BTREE, |
| | | INDEX `pattern_id`(`pattern_id`) USING BTREE, |
| | | INDEX `galss_id`(`galss_id`) USING BTREE, |
| | | INDEX `type_id`(`type_id`) USING BTREE |
| | | ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_galss_task_slicecage |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `gmms_galss_task_slicecage`; |
| | |
| | | `IntRemark` int(255) NULL DEFAULT NULL, |
| | | `CreateTime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'å建æ¶é´', |
| | | PRIMARY KEY (`Id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 30 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 35 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_glass_log |
| | |
| | | `glass_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'ç»çç±»å', |
| | | `flag` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'æ è®°', |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 83 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 94 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_glass_yuliao |
| | |
| | | `flag` int(11) NOT NULL, |
| | | `content` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'å¹é
å
容', |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 1995652 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 2588657 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_identify_mark |
| | |
| | | `minArea` double NULL DEFAULT NULL COMMENT 'æå°é¢ç§¯', |
| | | PRIMARY KEY (`id`) USING BTREE, |
| | | INDEX `main_liuchengka_idx`(`main_liuchengka`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 58777 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 78834 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_liuchengka_buffer |
| | |
| | | `StrRemark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'é¢çåï¼å ç¨æ¶è¯·æ æ', |
| | | `Create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'å建æ¶é´', |
| | | PRIMARY KEY (`ID`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 44932 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 61757 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_liuchengka_copy1 |
| | |
| | | `IntRemark` int(255) NULL DEFAULT NULL COMMENT 'é¢çåï¼ä½¿ç¨é注æ', |
| | | `StrRemark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'é¢çåï¼ä½¿ç¨é注æ', |
| | | PRIMARY KEY (`ID`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 39208 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 53854 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_load_rack |
| | |
| | | PRIMARY KEY (`id`) USING BTREE, |
| | | INDEX `task_id`(`task_id`) USING BTREE, |
| | | INDEX `engineering_id`(`engineering_id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 142276 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 190667 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_pattern_task_interrupt |
| | |
| | | PRIMARY KEY (`id`) USING BTREE, |
| | | INDEX `shelf_rank_id`(`shelf_rack_id`) USING BTREE, |
| | | CONSTRAINT `gmms_rank_ibfk_1` FOREIGN KEY (`shelf_rack_id`) REFERENCES `gmms_shelf_rack` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 4138 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 5834 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_rank_2 |
| | |
| | | PRIMARY KEY (`id`) USING BTREE, |
| | | INDEX `file_name`(`file_name`) USING BTREE, |
| | | INDEX `create_time`(`create_time`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 8137 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 10540 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_raw_file_2 |
| | |
| | | `production_time` datetime NULL DEFAULT NULL COMMENT 'çäº§æ¥æ', |
| | | `batch_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'æ¹æ¬¡å·', |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 5549 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 7264 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_shelf_rack |
| | |
| | | `finsh_time` datetime NULL DEFAULT NULL COMMENT '宿æ¶é´', |
| | | PRIMARY KEY (`id`) USING BTREE, |
| | | INDEX `file_id`(`file_id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 72768 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 95108 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_shelf_task_2 |
| | |
| | | `finshtype1` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'ä¸è½¦å®ææå¨æèªå¨', |
| | | `finshtype2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'ä¸è½¦å®ææå¨æèªå¨', |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 52731 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 71643 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_slicecage |
| | |
| | | `erp_glass_id` bigint(20) NULL DEFAULT NULL, |
| | | `head_info` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT 'éå ä¿¡æ¯å¤´ ä¸è¬åªæç¬¬ä¸çç»çæè¯¥å段', |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 171765 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 236561 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_timer |
| | |
| | | `banzu` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'çç»', |
| | | `intRemark` int(11) NULL DEFAULT NULL COMMENT 'é¢çåï¼ä½¿ç¨è¯·æ æç¨é', |
| | | `strRemark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'é¢çåï¼ä½¿ç¨è¯·æ æç¨é', |
| | | `isPaused` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'æ¯å¦æå设å¤ï¼ç¨äºåæ¢çç»ï¼', |
| | | PRIMARY KEY (`Id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | |
| | |
| | | `processcard_count` int(11) NULL DEFAULT NULL COMMENT 'æ»æ°', |
| | | `starttime` datetime NULL DEFAULT NULL COMMENT 'å建æ¶é´', |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 85423 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 120850 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for gmms_yuliao_slicecage |
| | |
| | | `update_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | `add_time` bigint(13) NULL DEFAULT NULL, |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 38155 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 49702 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for io_log |
| | |
| | | `read_message` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | `send_message` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 310306 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 479352 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for liuchengka_output |
| | |
| | | `name1` datetime NULL DEFAULT NULL, |
| | | `name2` datetime NULL DEFAULT NULL, |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 549993 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | ) ENGINE = InnoDB AUTO_INCREMENT = 638603 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for namess |
| | |
| | | DECLARE booldate1 varchar(255); |
| | | DECLARE booldate2 varchar(255); |
| | | DECLARE messagedates varchar(255) DEFAULT ''; |
| | | |
| | | DECLARE jiID BIGINT DEFAULT 0; |
| | | DECLARE thistype varchar(255); |
| | | DECLARE lasttype varchar(255) DEFAULT ''; |
| | | DECLARE lastRecordsid BIGINT DEFAULT 0; |
| | | DECLARE lastRecordsidW BIGINT DEFAULT 0; |
| | | DECLARE lastRecordsidH BIGINT DEFAULT 0; |
| | | DECLARE lastW int DEFAULT 0; |
| | | DECLARE lastH int DEFAULT 0; |
| | | |
| | | |
| | | set messagedate=messagedates; |
| | | |
| | | select machine_type_id,work_id into @mtid,@work_groups from gmms_machine where id=machineids; |
| | |
| | | |
| | | select return_value into @returnvalue from gmms_machine_dispose where id=machinedisposeids; |
| | | |
| | | select galss_id,edg_width,edg_height,thickness,chamfer_size,galss_type,fine_throwing,edg_speed1,edg_speed2 into @rank,@width,@heigth,@thickness,@chamfer_size,@galss_type,@fine_throwing,@edg_speed1,@edg_speed2 from gmms_galss_task where work_state='çå¾
ä¸' and work_procedure='磨边' and engineering_id=@engineering_id order by out_rank limit 1; |
| | | select id,galss_id,edg_width,edg_height,thickness,chamfer_size,galss_type,fine_throwing,edg_speed1,edg_speed2 into jiID,@rank,@width,@heigth,@thickness,@chamfer_size,@galss_type,@fine_throwing,@edg_speed1,@edg_speed2 from gmms_galss_task where work_state='çå¾
ä¸' and work_procedure='磨边' and engineering_id=@engineering_id order by out_rank limit 1; |
| | | |
| | | |
| | | select @rank; |
| | |
| | | |
| | | update gmms_galss_task set work_state='æ£å¨å·¥ä½' where galss_id=@rank and engineering_id=@engineering_id; |
| | | #update gmms_galss_task set work_state='å¾
å¤å',work_procedure='å¤å' where galss_id=@rank; |
| | | |
| | | set thistype=CONCAT(IFNULL(@width,''),'*',IFNULL(@heigth,'')); |
| | | select SizeText,Recordsid,Width,Height,RecordsidW,RecordsidH into lasttype,lastRecordsid,lastW,lastH,lastRecordsidW,lastRecordsidH from Y_Edg_Statistics |
| | | where Line=@work_groups order by Recordsid desc limit 1; |
| | | if lasttype is null then |
| | | set lastRecordsid=1; |
| | | set lastRecordsidW=1; |
| | | set lastRecordsidH=1; |
| | | else |
| | | if lasttype!=thistype then |
| | | set lastRecordsid=lastRecordsid+1; |
| | | end if; |
| | | if lastW!=@width then |
| | | set lastRecordsidW=lastRecordsidW+1; |
| | | end if; |
| | | if lastH!=@heigth then |
| | | set lastRecordsidH=lastRecordsidH+1; |
| | | end if; |
| | | end if; |
| | | |
| | | |
| | | |
| | | set rank1=cast(@rank as UNSIGNED INTEGER); |
| | | select rank1; |
| | |
| | | -- call intTo2ByteHex10_16_4(edg_speed21,@edg_speed2s); |
| | | -- |
| | | -- set booldate=CONCAT(@booldate2,@booldate1); |
| | | |
| | | |
| | | |
| | | |
| | | INSERT INTO `gmms`.`Y_Edg_Statistics`(`Glassid`, `SendTime`, `Width`, `Height`, `Thickess`, `SizeText`, `SendText`, `Recordsid`, `Line`,RecordsidW,RecordsidH) |
| | | select id,NOW(),edg_width,edg_height,thickness,CONCAT(IFNULL(edg_width,''),'*',IFNULL(edg_height,'')),CONCAT(@returnvalue,@ranks,@heigths,@widths,@thicknesss),lastRecordsid,@work_groups,lastRecordsidW,lastRecordsidH from gmms_galss_task |
| | | where id=jiID; |
| | | |
| | | if machineids=28 then |
| | | set dates=CONCAT(@returnvalue,@ranks,@heigths,@widths,@thicknesss); |
| | | select dates; |
| | |
| | | set t_step=2; |
| | | #insert into gmms_galss_task select * from gmms_galss_task_buffer where engineering_id=@file_name; |
| | | select @file_name; |
| | | |
| | | insert into gmms_galss_task (id,rank,type_id,galss_id,pattern_id,width,height,thickness,color,edg_width,edg_height,chamfer_size,galss_type,edg_speed1,edg_speed2,fine_throwing,work_state,work_procedure,slicecage_rank,drop_frame,slicecage_flag,out_rank,start_time,finsh_time,stop_position,processcard_id,engineering_id,broken_state,stop_rank,work_procedure_number,gc_number,gc_width,gc_height,gc_stockid,marking_flag) select id,rank,type_id,MOD(galss_id,10000),pattern_id,width,height,thickness,color,edg_width,edg_height,chamfer_size,galss_type,edg_speed1,edg_speed2,fine_throwing,work_state,work_procedure,slicecage_rank,drop_frame,slicecage_flag,out_rank,start_time,finsh_time,stop_position,processcard_id,engineering_id,broken_state,stop_rank,work_procedure_number,gc_number,gc_width,gc_height,gc_stockid,marking_flag from gmms_galss_task_buffer where engineering_id=@file_name; |
| | | |
| | | |
| | | select t_err,t_step,0; |
| | | call output_create(@file_name); |
| | | select t_err,t_step,1; |
| | | end if; |
| | | if t_err=0 then |
| | | set t_step=3; |
| | | call dongzuo_update_marking_flag(@file_name,line); |
| | | end if; |
| | | select t_err; |
| | | select t_step; |
| | | if t_err=0 then |
| | | set t_step=4; |
| | | update gmms_raw_file set `state`='å·²é¢å',operator=line,create_time=now() where id= rawFileid; |
| | |
| | | COMMIT; |
| | | end if; |
| | | |
| | | if t_err=1 then |
| | | if t_err=1 then |
| | | ROLLBACK; |
| | | end if; |
| | | |
| | | select t_err,t_step; |
| | | END |
| | | ;; |
| | | delimiter ; |
| | |
| | | if lck_c = 0 |
| | | then |
| | | select count(*) into lck_xc from gmms_galss_task_stock |
| | | where id>(select min(id) from (select * from gmms_galss_task_buffer order by id desc limit 50000) as tbmin) and processcard_id = lckNo; |
| | | where id>(select min(id) from (select * from gmms_galss_task_stock order by id desc limit 50000) as tbmin) and processcard_id = lckNo; |
| | | if lck_xc = 0 then |
| | | select count(*) into lck_xc from gmms_galss_task_buffer |
| | | where id>(select min(id) from (select * from gmms_galss_task_stock order by id desc limit 50000) as tbmin) and processcard_id = lckNo; |
| | | end if; |
| | | |
| | | if lck_xc = 0 |
| | | then |
| | | set back_Num=4; |
| | |
| | | and stop_position>0 and work_state!='ç ´æ' and work_procedure!='é¢ååä¸ç'; |
| | | |
| | | SELECT count(*) into waitingcount from gmms_slicecage_tempering where state="çå¾
ä¸"; |
| | | select notsliceagecount,ischuku_,nottaizi; |
| | | if notsliceagecount=0 or (ischuku_='åºåº' and nottaizi=0) then |
| | | #åºç |
| | | if (ischuku_='åºåº' and nottaizi=0) then |
| | |
| | | set gs.work_state='åºåºä¸',st.state='åºåºä¸' |
| | | where gs.slicecage_rank is not null and gs.id=@taskids; |
| | | UPDATE gmms_var SET Value=rk where varname='last_pos' and groups=@work_groups; |
| | | insert into aaaa(MachineName,groups,data1,Content,id,Sendtext) values (machineids,"",NOW(),'åéåºåºä»»å¡',"",messagedate); |
| | | end if; |
| | | end if; |
| | | elseif waitingcount=0 then |
| | |
| | | declare countsss int; |
| | | |
| | | |
| | | |
| | | declare o_err int default(0); |
| | | |
| | | DECLARE cur CURSOR FOR |
| | | SELECT edg_width,edg_height,cast(edg_speed2 as signed) as xuhao,count(*),processcard_id FROM gmms_galss_task where engineering_id=gc group by processcard_id , edg_speed2,processcard_id |
| | | ,edg_width,edg_height order by processcard_id,cast(edg_speed2 as signed); |
| | | DECLARE CONTINUE HANDLER FOR NOT FOUND SET _break=1; |
| | | set _break=0; |
| | | |
| | | |
| | | set o_err =1; |
| | | |
| | | SELECT edg_width,edg_height,cast(edg_speed2 as signed) as xuhao,count(*),processcard_id FROM gmms_galss_task where engineering_id=gc group by processcard_id , edg_speed2,processcard_id |
| | | ,edg_width,edg_height order by processcard_id,cast(edg_speed2 as signed); |
| | | |
| | | set o_err =2; |
| | | |
| | | open cur; |
| | | set nxh=0; |
| | | set tmp=0; |
| | |
| | | end if; |
| | | set countsss=0; |
| | | while _break=0 do |
| | | |
| | | set o_err =3; |
| | | |
| | | FETCH cur into w,h,xh,c,lck; |
| | | |
| | | select o_err; |
| | | |
| | | if _break=0 then |
| | | -- cselect 1; |
| | | if nxh=0 then |
| | | |
| | | set o_err =4; |
| | | |
| | | set nxh=1; |
| | | set lastlck=lck; |
| | | set lw=w; |
| | | set lh=h; |
| | | update gmms_galss_task set gc_width=nxh where processcard_id=lck and edg_speed2=xh; |
| | | select o_err; |
| | | |
| | | else |
| | | set o_err =5; |
| | | |
| | | if lastlck=lck then |
| | | |
| | | set o_err =6; |
| | | |
| | | if lw=w and lh=lh then |
| | | set o_err =31; |
| | | |
| | | update gmms_galss_task set gc_width=nxh where processcard_id=lck and edg_speed2=xh; |
| | | else |
| | | set o_err =32; |
| | | set nxh=nxh+1; |
| | | set lw=w; |
| | | set lh=h; |
| | | update gmms_galss_task set gc_width=nxh where processcard_id=lck and edg_speed2=xh; |
| | | end if; |
| | | select o_err; |
| | | else |
| | | # INSERT INTO liuchengka_output |
| | | set tmp=1; |
| | | if nxh>3 then |
| | | set tmp=2; |
| | | end if; |
| | | |
| | | set o_err=33; |
| | | -- select CONCAT(lastlck,',0;',tmp,',1;',gc,',2:',nxh,',0,3;',w,',4:',h,',0'); |
| | | INSERT INTO `gmms`.`liuchengka_output`(`liuchengka`, `guige`, `state`, `gongcheng`, `maxxuhao`, `currentxuhao`, `width`, `height`, `suo`) VALUES (lastlck,NULL,tmp,gc,nxh,0,w,h,0); |
| | | select o_err; |
| | | set o_err =7; |
| | | |
| | | if tmp=1 then |
| | | set tmp=0; |
| | | end if; |
| | |
| | | set lastlck=lck; |
| | | set lw=w; |
| | | set lh=h; |
| | | update gmms_galss_task set gc_width=nxh where processcard_id=lck and edg_speed2=xh; |
| | | end if; |
| | | update gmms_galss_task set gc_width=nxh where processcard_id=lck and edg_speed2=xh; |
| | | |
| | | end if; select o_err; |
| | | |
| | | end if; |
| | | else |
| | | #ç»æ |
| | | |
| | | set o_err =8; |
| | | if nxh<>0 then |
| | | set tmp=1; |
| | | if nxh>3 then |
| | |
| | | end if; |
| | | |
| | | end if; |
| | | select o_err; |
| | | set o_err =9; |
| | | end while; |
| | | close cur; |
| | | select o_err; |
| | | END |
| | | ;; |
| | | delimiter ; |
| | |
| | | |
| | | #è¾å
¥åæ°ï¼pline-ç产产线 |
| | | #è¾åºåæ°ï¼back_Num æ°å¼ç±»ååæ°,back_Msg å符串类ååæ° |
| | | #Declare current_banzu varchar(50);#å½åçç» |
| | | DECLARE Dbanzu varchar(255) DEFAULT '';#å½åçç» |
| | | #select banzu into current_banzu from gmms_user_current where gongyi = '磨边' and chanxian = pline; |
| | | -- update (select processcard_id from e_record_stock where is_report = 0 and line = pline group by processcard_id) as lck |
| | | -- left join gmms_liuchengka as lk on lck.processcard_id=lk.liuchengka set lk.isgang="å·å å·¥ä¸ç宿" where lk.gy_gang=1 and lk.Occupied=0; |
| | | |
| | | update e_record_stock set is_report = 1,report_time = now() where is_report = 0 and line = pline; |
| | | |
| | | |
| | | update e_pierceds set is_report=1,report_time = now() where is_report = 0 and line = pline and process = '磨边'; |
| | | select banzu into Dbanzu from gmms_user_current where chanxian=pline and gongyi='磨边'; |
| | | |
| | | update Y_Edg_Statistics set banzu=Dbanzu,report_time=NOW() where banzu is null and Line = pline; |
| | | -- update Y_Edg_Statistics AS ES LEFT JOIN (select * from e_record_stock where line=pline order by create_time desc limit 4500) AS ERS on ERS.glass_id=ES.Glassid |
| | | -- set ES.banzu=ERS.team_name,ES.report_time=ERS.report_time |
| | | -- where ERS.glass_id is not null and ES.banzu is null and ES.Line = pline; |
| | | |
| | | -- update Y_Edg_Statistics AS ES LEFT JOIN e_pierceds AS ep on ep.glass_id=ES.Glassid |
| | | -- set ES.banzu=ep.team_name |
| | | -- where ep.is_report = 0 and ES.Line = 1 and ep.process = '磨边'; |
| | | #update gmms_cutmanage set BgTime=now() where BgTime is null and groups=pline; |
| | | set back_Num = 1; |
| | | set back_Msg = "æå"; |
| | |
| | | select rp.left_pieces into @left_pieces from gmms_shelf_rack sr join gmms_raw_package rp on sr.raw_package_id1=rp.id where sr.id=@shelf_rack_id; |
| | | #夿æ¶åä¸é¢æ¯å¦è¿æç»ç |
| | | if @left_pieces=0 then |
| | | update gmms_shelf_rack set state='空é²',raw_package_id1=Null,mod_time=now(),color_falg=0 where id=@shelf_rack_id; |
| | | update gmms_shelf_rack set state='空é²',raw_package_id1=null,mod_time=now(),color_falg=0 where id=@shelf_rack_id; |
| | | else |
| | | # @color='ç½ç»' or @color='è¶
ç½' or @color='C' |
| | | if 1=1 then |
| | |
| | | select count(*) into @counts from gmms_galss_task where work_state='çå¾
ä¸' and work_procedure='ä¸ç' and out_rank=rankid and engineering_id=@engineering_id; |
| | | select drop_frame,width,height,thickness,processcard_id,galss_type,color into @drop_frame,@width,@height,@thickness,@processcard_id,@galss_type,@color from gmms_galss_task where work_state='çå¾
ä¸' and work_procedure='ä¸ç' and out_rank=rankid and engineering_id=@engineering_id; |
| | | select stops,finsh_count into @id,@finsh_count from gmms_drop_frame where drop_frame=@drop_frame and processcard_id=@processcard_id and groups=@work_groups; |
| | | select @id; |
| | | select @processcard_id; |
| | | select @counts; |
| | | select @id,@processcard_id,@counts; |
| | | #夿æ¯å¦æçå¾
çä»»å¡ |
| | | |
| | | if @counts=1 then |
| | |
| | | set messagedate=@date; |
| | | if messagedate is not null then |
| | | update gmms_galss_task set work_state='æ£å¨å·¥ä½' where work_state='çå¾
ä¸' and work_procedure='ä¸ç' and out_rank=rankid and engineering_id=@engineering_id; |
| | | end if; |
| | | end if; |
| | | |
| | | end if; |
| | | elseif machineids=75 then |
| | | #æ°å æºæ¢°æ |
| | |
| | | select out_rank,stop_position into @out_rank1,@stop_position from gmms_galss_task |
| | | where work_state='æ£å¨å·¥ä½' and work_procedure='ä¸ç' and engineering_id=@engineering_id limit 0,1; |
| | | |
| | | select id,drop_frame,width,height,thickness,processcard_id,out_rank into @gid_,@drop_frame,@width,@height,@thickness,@processcard_id,@out_rank from gmms_galss_task |
| | | -- select id,drop_frame,width,height,thickness,processcard_id,out_rank into @gid_,@drop_frame,@width,@height,@thickness,@processcard_id,@out_rank from gmms_galss_task |
| | | -- where work_state='çå¾
ä¸' and work_procedure='ä¸ç' and engineering_id=@engineering_id order by out_rank limit 0,1; |
| | | #ä¿®æ¹ åé磨边åçå®½é« ä¸çæºç²¾åº¦ä»0.1mm>1mm 2024/1/19 |
| | | select id,drop_frame,edg_width,edg_height,thickness,processcard_id,out_rank into @gid_,@drop_frame,@width,@height,@thickness,@processcard_id,@out_rank from gmms_galss_task |
| | | where work_state='çå¾
ä¸' and work_procedure='ä¸ç' and engineering_id=@engineering_id order by out_rank limit 0,1; |
| | | |
| | | |
| | | select stops,finsh_count into @id,@finsh_count from gmms_drop_frame |
| | | where drop_frame=@drop_frame and processcard_id=@processcard_id and groups=@work_groups; |
| | |
| | | update gmms_galss_task set work_state='æ£å¨å·¥ä½' where work_state='çå¾
ä¸' and work_procedure='ä¸ç' and out_rank=@out_rank and engineering_id=@engineering_id; |
| | | end if; |
| | | call intTo2ByteHex10_16_4(@out_rank,@out_ranks); |
| | | call intTo2ByteHex10_16_4(@width*10,@widths); |
| | | call intTo2ByteHex10_16_4(@width,@widths); |
| | | call intTo2ByteHex10_16_4(@height*10,@heights); |
| | | call intTo2ByteHex10_16_4(@thickness*10,@thicknesss); |
| | | call intTo2ByteHex10_16_4(@id,@ids); |
| | |
| | | insert into aaaa(MachineName,groups,data1,Content,id,Sendtext) values (machineids,IFNULL(@id,0),NOW(),'åéä¸çæºä»»å¡',IFNULL(@gid_,0),messagedate); |
| | | end if; |
| | | |
| | | end if; |
| | | end if; |
| | | -- if (select software_connect from gmms_machine where id=5)=0 then |
| | | -- #set dates=CONCAT(returnvalue,'0001','0001','7fbc','3a98','003c'); |
| | | -- set dates=CONCAT(returnvalue,'0001','0001','0ccf','5dc0','003c'); |
| | | -- call message(dates,'000a',@date); |
| | | -- set messagedate=@date; |
| | | -- update gmms_machine set software_connect=10 where id=5; |
| | | -- insert into aaaa(MachineName,groups,data1,Content,id,Sendtext) values (machineids,0,NOW(),'åéä¸çæºæµè¯ä»»å¡',0,messagedate); |
| | | -- end if; |
| | | |
| | | if @counts=1 and false then |
| | | if @out_rank1 is not null then |
| | | if @stop_position=2 then |
| | |
| | | |
| | | select count(*) into @workcount from gmms_galss_task_shelf |
| | | where processcard_id=@processcardid and work_state='æ£å¨å·¥ä½' and (work_procedure='çç笼ä¸ç' or work_procedure='çç笼ä¸ç'); |
| | | |
| | | select @dropid,@workcount,@processcardid,signs_,@remarks,@sliceagecount,ischuku_; |
| | | #and ranksumcount>=maxpostoprank |
| | | if @dropid is not null and @workcount=0 and @processcardid is not null and signs_=3 and @remarks=1 then |
| | | if @sliceagecount>0 and ischuku_ is null then |
| | |
| | | if dates is not null then |
| | | update gmms_galss_task_shelf set work_state='æ£å¨å·¥ä½',work_procedure='çç笼ä¸ç' where id=@id; |
| | | end if; |
| | | insert into aaaa(MachineName,groups,data1,Content,id,Sendtext) values (machineids,IFNULL(@id,0),NOW(),'åéççæºå¨äººä¸çä»»å¡',"",messagedate); |
| | | |
| | | call message(dates,'000a',@date); |
| | | set messagedate=@date; |
| | | insert into aaaa(MachineName,groups,data1,Content,id,Sendtext) values (machineids,IFNULL(@id,0),NOW(),'åéççæºå¨äººä¸çä»»å¡',"",messagedate); |
| | | end if; |
| | | else |
| | | update gmms_liuchengka set ischu='åºåº' where liuchengka=@processcardid and ischu='å¾
åºåº'; |
| | |
| | | DECLARE Endaddress_ varchar(255) DEFAULT null; #ç®çå° |
| | | DECLARE orientation_ varchar(255) DEFAULT null; #æå |
| | | DECLARE rackid_ bigint DEFAULT 0; #è½¦ä¸æ¶åä»»å¡id |
| | | DECLARE zknotFinsh bigint DEFAULT 0; #ä¸ç©ºæªå®ææ°é |
| | | DECLARE groups_ BIGINT DEFAULT |
| | | (select work_id from gmms_machine where id=machineids); #线路 |
| | | DECLARE isWorking bigint DEFAULT |
| | |
| | | where liuchengka=(select processcard_id from gmms_shelf_rack_2 where id=rackid_ limit 0,1); |
| | | update gmms_liuchengka set ischu=null where liuchengka=liuchengka_; |
| | | update gmms_drop_frame_5 set rank=rackid_,sign=0,rankposition=Beginaddress_ where stop_rank=Endaddress_ order by stops asc limit 1; |
| | | else |
| | | |
| | | elseif Tasktype_='ä¸ç©º' then |
| | | #ä¿åæ°æ® ç¶åå é¤åºå表 zknotFinsh |
| | | select liuchengka into liuchengka_ from gmms_liuchengka |
| | | where liuchengka=(select processcard_id from gmms_shelf_rack_2 where id=rackid_ limit 0,1); |
| | | |
| | | set zknotFinsh=(select count(*) from gmms_galss_task_shelf where processcard_id=liuchengka_ and !(work_state='已宿' and work_procedure='ä¸ç©ºä¸ç')); |
| | | if zknotFinsh=0 then |
| | | insert into gmms_galss_task_shelf_log |
| | | select gt.* from gmms_galss_task_shelf as gt left join gmms_galss_task_shelf_log as gs on gt.id=gs.id |
| | | where gt.processcard_id=liuchengka_ and gs.id is null and |
| | | (select count(*) from gmms_galss_task_shelf where processcard_id=gt.processcard_id and !(work_state='已宿' and work_procedure='ä¸ç©ºä¸ç'))=0; |
| | | delete from gmms_galss_task_shelf where processcard_id=liuchengka_; |
| | | end if; |
| | | update gmms_galss_task_shelf set stop_position=0 where processcard_id=liuchengka_; |
| | | |
| | | update gmms_drop_frame_5 set rank=rackid_,sign=0,rankposition=Beginaddress_ where stop_rank=Endaddress_ order by stops asc limit 1; |
| | | else |
| | | update gmms_drop_frame_5 set rank=rackid_,sign=0,rankposition=Beginaddress_ where stop_rank=Endaddress_ order by stops asc limit 1; |
| | | end if; |
| | | elseif Taskphase_='åºåº' then |
| | |
| | | where groups_=4 and drop_groups=groupss_ and rank is null and sign=0 and flag=1 and orientation='A'; |
| | | select count(stop_rank) into CountB_D from gmms_drop_frame_5 |
| | | where groups_=4 and drop_groups=groupss_ and rank is null and sign=0 and flag=1 and orientation='B'; |
| | | select CountA_D; |
| | | select CountB_D; |
| | | select CountA_S; |
| | | select CountB_S; |
| | | select CountA_D,CountB_D,CountA_S,CountB_S; |
| | | #æ¾å°æ¤åçæµç¨å¡ æ¯å¦å±äºåä¸é¢ |
| | | if childcount_=2 and (CountA_S+CountB_S)=childcount_ then |
| | | #两æ¶åç |
| | |
| | | DECLARE Count_S DOUBLE DEFAULT 0; #æ¥æ¾æ¤ç¶çº§æµç¨å¡å¨åºå
çæ°é |
| | | DECLARE parentliuchengkaCount int DEFAULT 0; #æ¤ç¶çº§æµç¨å¡ä¸ çåæµç¨å¡æ°é |
| | | DECLARE zkliuchengka_ varchar(255) DEFAULT null; #ç¶çº§æµç¨å¡ |
| | | DECLARE isMatchCount_ varchar(255) DEFAULT null; #ç¶çº§æµç¨å¡ |
| | | DECLARE isMatchCount_ varchar(255) DEFAULT null; #æ¯å¦ææªä¼åç |
| | | DECLARE isWorkingCount_ varchar(255) DEFAULT 0; #æ¯å¦ææ£å¨å·¥ä½ç |
| | | #å®ä¹æ¸¸æ |
| | | DECLARE emp_cursor CURSOR FOR SELECT zkliuchengka FROM y_parent_liuchengka; |
| | | DECLARE CONTINUE HANDLER FOR NOT FOUND SET isEnd = 1; |
| | |
| | | select count(*) into isMatchCount_ from gmms_galss_task_shelf |
| | | where gc_number=zkliuchengka_ and ((work_state='已宿' and work_procedure='é¢ååä¸ç' and stop_position<1) or (stop_position>0 and work_state='ç ´æ')); |
| | | |
| | | if Count_S=parentliuchengkaCount and parentliuchengkaCount>0 and isMatchCount_>0 and Count_DZ=0 then |
| | | select count(*) into isWorkingCount_ from gmms_galss_task_shelf |
| | | where gc_number=zkliuchengka_ and work_state='æ£å¨å·¥ä½'; |
| | | |
| | | if Count_S=parentliuchengkaCount and parentliuchengkaCount>0 and isMatchCount_>0 and Count_DZ=0 and isWorkingCount_=0 then |
| | | insert into A_youhua(processcard_id,count,youhuashijian) values (zkliuchengka_,isMatchCount_,NOW()); |
| | | call y_optimize_GAI(zkliuchengka_,1,@h,@l); |
| | | end if; |
| | |
| | | set orientation_='A'; |
| | | end if; |
| | | if orientation_ is null then |
| | | #表示 1.æ¤ä»»å¡æªé¢å / 2.é¢å线路æ ç©ºå·¥ä½ |
| | | #表示 1.æ¤ä»»å¡æªé¢å / 2.é¢å线路æ ç©ºå·¥ä½ ï¼è§åï¼æä¸ç¼ºççæ¹å为åï¼å³ç¼ºççå»æè½¬ï¼ |
| | | select sr.orientation into orientation_ from gmms_drop_frame_5 as dr |
| | | left join gmms_shelf_rack_2 as sr on dr.rank=sr.id |
| | | left join gmms_liuchengka as lk on sr.processcard_id=lk.liuchengka |
| | | where sr.id is not null and lk.liuchengka is not null and dr.groups_=100 and dr.sign=0 |
| | | and lk.parent_liuchengka=parentliuchengka_ limit 0,1; |
| | | and lk.parent_liuchengka=parentliuchengka_ |
| | | ORDER BY (select count(*) from gmms_galss_task_shelf where processcard_id=sr.processcard_id and (work_state='已宿' and work_procedure='é¢ååä¸ç')) asc limit 0,1; |
| | | end if; |
| | | end if; |
| | | |