-- 标准模板:专线小包模板 INSERT INTO `t_order_template` ( `Name`, `Type`, `TemplateKey`, `StandardTemplateKey`, `MappingStatus`, `CustomerId`, `IsDeleted`, `CreateUserId`, `CreateTime` ) SELECT '专线小包模板', 'standard', 'dedicated_small_parcel_v1', 'dedicated_small_parcel_v1', 'ready', NULL, 0, 0, NOW() FROM DUAL WHERE NOT EXISTS ( SELECT 1 FROM `t_order_template` WHERE `Type` = 'standard' AND `TemplateKey` = 'dedicated_small_parcel_v1' AND `IsDeleted` = 0 );