feat: 优化文案模板分组与复制预览

This commit is contained in:
王鹏
2026-09-07 15:40:29 +08:00
parent 074bbda460
commit a466caa793
6 changed files with 474 additions and 15 deletions

View File

@@ -0,0 +1,8 @@
-- 文案模板增加分组字段(已有数据库升级脚本)
ALTER TABLE `tt_copy_template`
ADD COLUMN `template_group` VARCHAR(100) NOT NULL DEFAULT '默认分组' COMMENT '模板分组' AFTER `template_name`;
-- 兼容历史空数据
UPDATE `tt_copy_template`
SET `template_group` = '默认分组'
WHERE `template_group` IS NULL OR TRIM(`template_group`) = '';