| ¶Ô±ÈÐÂÎļþ |
| | |
| | | # SQL èæ¬è§è |
| | | |
| | | ## è§å |
| | | |
| | | - SQL èæ¬ä¸ä¸è¦å
å« tenant_id åæ®µï¼é¡¹ç®ä¸ä½¿ç¨å¤ç§æ·æ¨¡å¼ã |
| | | - INSERT è¯å¥åªå
å«å¿
è¦çä¸å¡å段ï¼ä¸éè¦ tenant_idã |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | -- ============================================= |
| | | -- MES ç¼ç è§ååå§åèæ¬ |
| | | -- æ§è¡åè¯·ç¡®ä¿ mes_md_auto_code_rule å mes_md_auto_code_part 表已åå¨ |
| | | -- ============================================= |
| | | |
| | | -- æ¸
ç©ºç°ææ°æ®ï¼éæ°åå§åæ¶æ§è¡ï¼ |
| | | DELETE FROM mes_md_auto_code_part; |
| | | DELETE FROM mes_md_auto_code_rule; |
| | | |
| | | -- ============================================= |
| | | -- 1. åºç¡ä¸»æ°æ®ç¼ç è§å |
| | | -- ============================================= |
| | | |
| | | -- 1.1 ç©æåç±»ç¼ç è§å (MD_ITEM_TYPE_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (1, 'MD_ITEM_TYPE_CODE', 'ç©æåç±»ç¼ç ', 'ç¨äºçæç©æåç±»ç¼ç ', 10, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (1, 1, 3, 3, 'ITC', NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (1, 2, 4, 4, NULL, 1, 1, b'0', 'æµæ°´å·', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 1.2 ç©æç¼ç è§å (MD_ITEM_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (2, 'MD_ITEM_CODE', 'ç©æç¼ç ', 'ç¨äºçæç©æç¼ç ', 20, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (2, 1, 3, 5, 'ITEM_', NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (2, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (2, 3, 4, 4, NULL, NULL, 1, 1, b'0', 'æµæ°´å·', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 1.3 ä¾åºåç¼ç è§å (MD_VENDOR_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (3, 'MD_VENDOR_CODE', 'ä¾åºåç¼ç ', 'ç¨äºçæä¾åºåç¼ç ', 12, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (3, 1, 3, 3, 'VDR', NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (3, 2, 4, 6, NULL, 1, 1, b'0', 'æµæ°´å·', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 1.4 客æ·ç¼ç è§å (MD_CLIENT_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (4, 'MD_CLIENT_CODE', '客æ·ç¼ç ', 'ç¨äºçæå®¢æ·ç¼ç ', 12, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (4, 1, 3, 3, 'CLT', NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (4, 2, 4, 6, NULL, 1, 1, b'0', 'æµæ°´å·', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 1.5 å·¥ä½ç«ç¼ç è§å (MD_WORKSTATION_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (5, 'MD_WORKSTATION_CODE', 'å·¥ä½ç«ç¼ç ', 'ç¨äºçæå·¥ä½ç«ç¼ç ', 12, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (5, 1, 3, 3, 'WKS', NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (5, 2, 4, 6, NULL, 1, 1, b'0', 'æµæ°´å·', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 1.6 车é´ç¼ç è§å (MD_WORKSHOP_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (6, 'MD_WORKSHOP_CODE', '车é´ç¼ç ', 'ç¨äºçæè½¦é´ç¼ç ', 12, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (6, 1, 3, 3, 'WSP', NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (6, 2, 4, 6, NULL, 1, 1, b'0', 'æµæ°´å·', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 1.7 å·¥å
·ç±»åç¼ç è§å (TM_TOOL_TYPE_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (7, 'TM_TOOL_TYPE_CODE', 'å·¥å
·ç±»åç¼ç ', 'ç¨äºçæå·¥å
·ç±»åç¼ç ', 12, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (7, 1, 3, 3, 'TTL', NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (7, 2, 4, 6, NULL, 1, 1, b'0', 'æµæ°´å·', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- ============================================= |
| | | -- 2. ä»åºç®¡çç¼ç è§å |
| | | -- ============================================= |
| | | |
| | | -- 2.1 ä»åºç¼ç (WM_WAREHOUSE_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (8, 'WM_WAREHOUSE_CODE', 'ä»åºç¼ç ', 'ç¨äºçæä»åºç¼ç ', 12, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (8, 1, 3, 3, 'WHS', NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (8, 2, 4, 6, NULL, 1, 1, b'0', 'æµæ°´å·', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.2 åºåºç¼ç (WM_LOCATION_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (9, 'WM_LOCATION_CODE', 'åºåºç¼ç ', 'ç¨äºçæåºåºç¼ç ', 12, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (9, 1, 3, 3, 'LOC', NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (9, 2, 4, 6, NULL, 1, 1, b'0', 'æµæ°´å·', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.3 åºä½ç¼ç (WM_AREA_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (10, 'WM_AREA_CODE', 'åºä½ç¼ç ', 'ç¨äºçæåºä½ç¼ç ', 12, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (10, 1, 3, 3, 'ARA', NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (10, 2, 4, 6, NULL, 1, 1, b'0', 'æµæ°´å·', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.4 æ¹æ¬¡ç¼ç (WM_BATCH_CODE) - æå¤©å¾ªç¯ |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (11, 'WM_BATCH_CODE', 'æ¹æ¬¡ç¼ç ', 'ç¨äºçææ¹æ¬¡ç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (11, 1, 3, 1, 'B', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (11, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (11, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.5 SNç (WM_SN_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (12, 'WM_SN_CODE', 'SNç ', 'ç¨äºçæSNç ', 20, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (12, 1, 3, 3, 'SN_', NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (12, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (12, 3, 4, 6, NULL, NULL, 1, 1, b'0', 'æµæ°´å·', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.6 è£
ç®±åç¼ç (WM_PACKAGE_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (13, 'WM_PACKAGE_CODE', 'è£
ç®±åç¼ç ', 'ç¨äºçæè£
ç®±åç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (13, 1, 3, 4, 'PKG_', NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (13, 2, 2, 8, NULL, 'yyyyMMdd', 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.7 å°è´§éç¥åç¼ç (WM_ARRIVAL_NOTICE_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (14, 'WM_ARRIVAL_NOTICE_CODE', 'å°è´§éç¥åç¼ç ', 'ç¨äºçæå°è´§éç¥åç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (14, 1, 3, 3, 'AN_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (14, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (14, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.8 éè´å
¥åºåç¼ç (WM_ITEM_RECEIPT_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (15, 'WM_ITEM_RECEIPT_CODE', 'éè´å
¥åºåç¼ç ', 'ç¨äºçæéè´å
¥åºåç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (15, 1, 3, 3, 'IR_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (15, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (15, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.9 éè´éè´§åç¼ç (WM_RETURN_VENDOR_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (16, 'WM_RETURN_VENDOR_CODE', 'éè´éè´§åç¼ç ', 'ç¨äºçæéè´éè´§åç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (16, 1, 3, 3, 'RV_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (16, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (16, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.10 ç产éæåç¼ç (WM_RETURN_ISSUE_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (17, 'WM_RETURN_ISSUE_CODE', 'ç产éæåç¼ç ', 'ç¨äºçæç产éæåç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (17, 1, 3, 3, 'RI_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (17, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (17, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.11 éå®åºåºåç¼ç (WM_PRODUCT_SALES_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (18, 'WM_PRODUCT_SALES_CODE', 'éå®åºåºåç¼ç ', 'ç¨äºçæéå®åºåºåç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (18, 1, 3, 3, 'SO_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (18, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (18, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.12 åè´§éç¥åç¼ç (WM_SALES_NOTICE_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (19, 'WM_SALES_NOTICE_CODE', 'åè´§éç¥åç¼ç ', 'ç¨äºçæåè´§éç¥åç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (19, 1, 3, 3, 'SN_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (19, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (19, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.13 éå®éè´§åç¼ç (WM_RETURN_SALES_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (20, 'WM_RETURN_SALES_CODE', 'éå®éè´§åç¼ç ', 'ç¨äºçæéå®éè´§åç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (20, 1, 3, 3, 'RS_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (20, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (20, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.14 æé¡¹å
¥åºåç¼ç (WM_MISC_RECEIPT_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (21, 'WM_MISC_RECEIPT_CODE', 'æé¡¹å
¥åºåç¼ç ', 'ç¨äºçææé¡¹å
¥åºåç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (21, 1, 3, 3, 'MR_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (21, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (21, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.15 æé¡¹åºåºåç¼ç (WM_MISC_ISSUE_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (22, 'WM_MISC_ISSUE_CODE', 'æé¡¹åºåºåç¼ç ', 'ç¨äºçææé¡¹åºåºåç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (22, 1, 3, 3, 'MI_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (22, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (22, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.16 çç¹æ¹æ¡ç¼ç (WM_STOCK_TAKING_PLAN_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (23, 'WM_STOCK_TAKING_PLAN_CODE', 'çç¹æ¹æ¡ç¼ç ', 'ç¨äºçæçç¹æ¹æ¡ç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (23, 1, 3, 3, 'SP_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (23, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (23, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.17 çç¹ä»»å¡ç¼ç (WM_STOCK_TAKING_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (24, 'WM_STOCK_TAKING_CODE', 'çç¹ä»»å¡ç¼ç ', 'ç¨äºçæçç¹ä»»å¡ç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (24, 1, 3, 3, 'ST_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (24, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (24, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.18 è½¬ç§»è°æ¨åç¼ç (TRANSFER_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (25, 'TRANSFER_CODE', 'è½¬ç§»è°æ¨åç¼ç ', 'ç¨äºçæè½¬ç§»è°æ¨åç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (25, 1, 3, 3, 'TR_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (25, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (25, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.19 å¤ååæåç¼ç (WM_OUTSOURCE_ISSUE_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (26, 'WM_OUTSOURCE_ISSUE_CODE', 'å¤ååæåç¼ç ', 'ç¨äºçæå¤ååæåç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (26, 1, 3, 3, 'OI_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (26, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (26, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 2.20 å¤åå
¥åºåç¼ç (WM_OUTSOURCE_RECEIPT_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (27, 'WM_OUTSOURCE_RECEIPT_CODE', 'å¤åå
¥åºåç¼ç ', 'ç¨äºçæå¤åå
¥åºåç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (27, 1, 3, 3, 'OR_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (27, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (27, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- ============================================= |
| | | -- 3. ç产管çç¼ç è§å |
| | | -- ============================================= |
| | | |
| | | -- 3.1 ç产工åç¼ç (PRO_WORK_ORDER_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (28, 'PRO_WORK_ORDER_CODE', 'ç产工åç¼ç ', 'ç¨äºçæç产工åç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (28, 1, 3, 3, 'WO_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (28, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (28, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 3.2 ç产任å¡ç¼ç (PRO_TASK_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (29, 'PRO_TASK_CODE', 'ç产任å¡ç¼ç ', 'ç¨äºçæç产任å¡ç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (29, 1, 3, 3, 'TK_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (29, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (29, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 3.3 ç产æ¥å·¥åç¼ç (PRO_FEEDBACK_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (30, 'PRO_FEEDBACK_CODE', 'ç产æ¥å·¥åç¼ç ', 'ç¨äºçæç产æ¥å·¥åç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (30, 1, 3, 3, 'FB_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (30, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (30, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 3.4 å·¥èºè·¯çº¿ç¼ç (PRO_ROUTE_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (31, 'PRO_ROUTE_CODE', 'å·¥èºè·¯çº¿ç¼ç ', 'ç¨äºçæå·¥èºè·¯çº¿ç¼ç ', 12, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (31, 1, 3, 3, 'RT_', NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (31, 2, 4, 6, NULL, 1, 1, b'0', 'æµæ°´å·', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- ============================================= |
| | | -- 4. è´¨é管çç¼ç è§å |
| | | -- ============================================= |
| | | |
| | | -- 4.1 æ¥ææ£éªåç¼ç (QC_IQC_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (32, 'QC_IQC_CODE', 'æ¥ææ£éªåç¼ç ', 'ç¨äºçææ¥ææ£éªåç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (32, 1, 3, 4, 'IQC_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (32, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (32, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 4.2 è¿ç¨æ£éªåç¼ç (QC_IPQC_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (33, 'QC_IPQC_CODE', 'è¿ç¨æ£éªåç¼ç ', 'ç¨äºçæè¿ç¨æ£éªåç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (33, 1, 3, 5, 'IPQC_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (33, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (33, 3, 4, 3, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 4.3 åºè´§æ£éªåç¼ç (QC_OQC_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (34, 'QC_OQC_CODE', 'åºè´§æ£éªåç¼ç ', 'ç¨äºçæåºè´§æ£éªåç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (34, 1, 3, 5, 'OQC_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (34, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (34, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 4.4 éè´§æ£éªåç¼ç (QC_RQC_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (35, 'QC_RQC_CODE', 'éè´§æ£éªåç¼ç ', 'ç¨äºçæéè´§æ£éªåç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (35, 1, 3, 4, 'RQC_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (35, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (35, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 4.5 缺é·ç±»åç¼ç (QC_DEFECT_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (36, 'QC_DEFECT_CODE', '缺é·ç±»åç¼ç ', 'ç¨äºçæç¼ºé·ç±»åç¼ç ', 12, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (36, 1, 3, 3, 'DFC', NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (36, 2, 4, 6, NULL, 1, 1, b'0', 'æµæ°´å·', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 4.6 æ ·åæ£éªç»æç¼ç (QC_INDICATOR_RESULT_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (37, 'QC_INDICATOR_RESULT_CODE', 'æ ·åæ£éªç»æç¼ç ', 'ç¨äºçææ ·åæ£éªç»æç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (37, 1, 3, 4, 'QIR_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (37, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (37, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- ============================================= |
| | | -- 5. 设å¤ç®¡çç¼ç è§å |
| | | -- ============================================= |
| | | |
| | | -- 5.1 设å¤ç¼ç (DV_MACHINERY_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (38, 'DV_MACHINERY_CODE', '设å¤ç¼ç ', 'ç¨äºçæè®¾å¤ç¼ç ', 12, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (38, 1, 3, 3, 'MC_', NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (38, 2, 4, 6, NULL, 1, 1, b'0', 'æµæ°´å·', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 5.2 设å¤ç±»åç¼ç (DV_MACHINERY_TYPE_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (39, 'DV_MACHINERY_TYPE_CODE', '设å¤ç±»åç¼ç ', 'ç¨äºçæè®¾å¤ç±»åç¼ç ', 12, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (39, 1, 3, 3, 'MCT', NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (39, 2, 4, 6, NULL, 1, 1, b'0', 'æµæ°´å·', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 5.3 ç¹æ£ä¿å
»é¡¹ç®ç¼ç (DV_SUBJECT_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (40, 'DV_SUBJECT_CODE', 'ç¹æ£ä¿å
»é¡¹ç®ç¼ç ', 'ç¨äºçæç¹æ£ä¿å
»é¡¹ç®ç¼ç ', 12, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (40, 1, 3, 3, 'SBJ', NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, serial_start_no, serial_step, cycle_flag, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (40, 2, 4, 6, NULL, 1, 1, b'0', 'æµæ°´å·', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- 5.4 ç»´ä¿®åç¼ç (DV_REPAIR_CODE) |
| | | INSERT INTO mes_md_auto_code_rule (id, code, name, description, max_length, padded, status, creator, create_time, updater, update_time, deleted) |
| | | VALUES (41, 'DV_REPAIR_CODE', 'ç»´ä¿®åç¼ç ', 'ç¨äºçæç»´ä¿®åç¼ç ', 16, b'0', 0, '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (41, 1, 3, 3, 'RP_', NULL, NULL, NULL, NULL, NULL, 'åºå®åç¼', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (41, 2, 2, 8, NULL, 'yyyyMMdd', NULL, NULL, NULL, NULL, 'æ¥æ', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | INSERT INTO mes_md_auto_code_part (rule_id, sort, type, length, fix_character, date_format, serial_start_no, serial_step, cycle_flag, cycle_method, remark, creator, create_time, updater, update_time, deleted) |
| | | VALUES (41, 3, 4, 4, NULL, NULL, 1, 1, b'1', 3, 'æµæ°´å·-æå¤©å¾ªç¯', '1', NOW(), '1', NOW(), b'0'); |
| | | |
| | | -- ============================================= |
| | | -- æ§è¡å®ææç¤º |
| | | -- ============================================= |
| | | SELECT 'MES ç¼ç è§ååå§å宿ï¼' AS result; |
| | | SELECT COUNT(*) AS rule_count FROM mes_md_auto_code_rule WHERE deleted = 0; |
| | | SELECT COUNT(*) AS part_count FROM mes_md_auto_code_part WHERE deleted = 0; |