陆运超时响应改为仅 4 项运输分类,去掉按线路拆出的重复配置。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
linmianxun
2026-09-21 09:15:24 +08:00
co-authored by Cursor
parent 20c27ae293
commit a5e73c01ae
4 changed files with 63 additions and 25 deletions
@@ -19,15 +19,7 @@ UPDATE `inq_response_timeout` SET `timeout_code`='land_hk_common' WHERE `id`='rt
UPDATE `inq_response_timeout` SET `timeout_code`='land_hk_cross' WHERE `id`='rt100000000000000000000000000008' AND (`timeout_code` IS NULL OR `timeout_code`='');
UPDATE `inq_response_timeout` SET `timeout_code`='land_hk_special' WHERE `id`='rt100000000000000000000000000009' AND (`timeout_code` IS NULL OR `timeout_code`='');
UPDATE `inq_response_timeout` SET `timeout_code`='land_hk_express' WHERE `id`='rt100000000000000000000000000010' AND (`timeout_code` IS NULL OR `timeout_code`='');
UPDATE `inq_response_timeout` SET `timeout_code`='land_ltl_common' WHERE `id`='rt100000000000000000000000000011' AND (`timeout_code` IS NULL OR `timeout_code`='');
UPDATE `inq_response_timeout` SET `timeout_code`='land_ltl_special' WHERE `id`='rt100000000000000000000000000012' AND (`timeout_code` IS NULL OR `timeout_code`='');
UPDATE `inq_response_timeout` SET `timeout_code`='land_ltl_express' WHERE `id`='rt100000000000000000000000000013' AND (`timeout_code` IS NULL OR `timeout_code`='');
UPDATE `inq_response_timeout` SET `timeout_code`='land_city_common' WHERE `id`='rt100000000000000000000000000014' AND (`timeout_code` IS NULL OR `timeout_code`='');
UPDATE `inq_response_timeout` SET `timeout_code`='land_city_special' WHERE `id`='rt100000000000000000000000000015' AND (`timeout_code` IS NULL OR `timeout_code`='');
UPDATE `inq_response_timeout` SET `timeout_code`='land_city_express' WHERE `id`='rt100000000000000000000000000016' AND (`timeout_code` IS NULL OR `timeout_code`='');
UPDATE `inq_response_timeout` SET `timeout_code`='land_sea_common' WHERE `id`='rt100000000000000000000000000017' AND (`timeout_code` IS NULL OR `timeout_code`='');
UPDATE `inq_response_timeout` SET `timeout_code`='land_sea_special' WHERE `id`='rt100000000000000000000000000018' AND (`timeout_code` IS NULL OR `timeout_code`='');
UPDATE `inq_response_timeout` SET `timeout_code`='land_sea_express' WHERE `id`='rt100000000000000000000000000019' AND (`timeout_code` IS NULL OR `timeout_code`='');
-- 陆运产品仅 4 项;ltl/city/sea 重复行已由 migration_inq_response_timeout_land_class_v2.sql 删除
-- 3) 唯一索引(列已全部非空后再建;若仍有 NULL 会失败)
UPDATE `inq_response_timeout` SET `timeout_code`=CONCAT('rt_', `id`) WHERE `timeout_code` IS NULL OR `timeout_code`='';
@@ -0,0 +1,59 @@
-- 陆运产品运输分类:只保留产品确认的 4 项,删除按线路重复的 ltl/city/sea 共 9 条。
-- 保留 land_hk_common / land_hk_cross / land_hk_special / land_hk_express,清空 route_category(分类与线路解耦)。
-- 仅改 inquiry_robot;幂等可重复执行。
SET NAMES utf8mb4;
-- 1) 删除按线路拆开的重复产品行
DELETE FROM `inq_response_timeout`
WHERE `timeout_code` IN (
'land_ltl_common','land_ltl_special','land_ltl_express',
'land_city_common','land_city_special','land_city_express',
'land_sea_common','land_sea_special','land_sea_express'
);
DELETE FROM `inq_response_timeout`
WHERE `id` IN (
'rt100000000000000000000000000011',
'rt100000000000000000000000000012',
'rt100000000000000000000000000013',
'rt100000000000000000000000000014',
'rt100000000000000000000000000015',
'rt100000000000000000000000000016',
'rt100000000000000000000000000017',
'rt100000000000000000000000000018',
'rt100000000000000000000000000019'
);
-- 2) 保留的 4 项:分类与线路解耦,route_category 置空;文案对齐产品确认
UPDATE `inq_response_timeout`
SET `route_category`='',
`transport_type`='普件(东南亚、中港常用线路/常规车型)',
`update_by`='system',
`update_time`=NOW()
WHERE `id`='rt100000000000000000000000000007'
OR `timeout_code`='land_hk_common';
UPDATE `inq_response_timeout`
SET `route_category`='',
`transport_type`='普件(东南亚、中亚、中欧涉及国内+国外段)',
`update_by`='system',
`update_time`=NOW()
WHERE `id`='rt100000000000000000000000000008'
OR `timeout_code`='land_hk_cross';
UPDATE `inq_response_timeout`
SET `route_category`='',
`transport_type`='普件(东南亚、中亚、中欧涉及境外段清派等特殊要求)',
`update_by`='system',
`update_time`=NOW()
WHERE `id`='rt100000000000000000000000000009'
OR `timeout_code`='land_hk_special';
UPDATE `inq_response_timeout`
SET `route_category`='',
`transport_type`='急件',
`update_by`='system',
`update_time`=NOW()
WHERE `id`='rt100000000000000000000000000010'
OR `timeout_code`='land_hk_express';