From a361b59d74b8cd197a8eaa31fce689ddb0209341 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Tue, 23 Sep 2025 20:57:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model/pc/template/entity/TemplateConfigEntity.java | 1 + src/main/resources/mapper/TemplateMapper.xml | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/ycwl/basic/model/pc/template/entity/TemplateConfigEntity.java b/src/main/java/com/ycwl/basic/model/pc/template/entity/TemplateConfigEntity.java index e2689e44..b0e7dc8f 100644 --- a/src/main/java/com/ycwl/basic/model/pc/template/entity/TemplateConfigEntity.java +++ b/src/main/java/com/ycwl/basic/model/pc/template/entity/TemplateConfigEntity.java @@ -14,4 +14,5 @@ public class TemplateConfigEntity { private Date createDate; private Integer minimalPlaceholderFill; private Integer automaticPlaceholderFill; + private Integer duplicateEnable; } diff --git a/src/main/resources/mapper/TemplateMapper.xml b/src/main/resources/mapper/TemplateMapper.xml index 16562b29..cb382c1a 100644 --- a/src/main/resources/mapper/TemplateMapper.xml +++ b/src/main/resources/mapper/TemplateMapper.xml @@ -6,8 +6,8 @@ values (#{id}, #{scenicId}, #{name}, #{pid}, #{isPlaceholder}, #{sourceUrl}, #{effects}, #{luts}, #{overlays}, #{audios}, #{coverUrl}, #{frameRate}, #{speed}, #{price}, #{slashPrice}, #{sort}, #{cropEnable}, #{zoomCut}, #{onlyIf}, #{resolution}, now()) - insert into template_config(id, template_id, create_time) - values (#{id}, #{templateId}, now()) + insert into template_config(id, template_id, duplicate_enable, create_time) + values (#{id}, #{templateId}, #{duplicateEnable}, now()) update template @@ -52,7 +52,8 @@ is_default = #{isDefault}, minimal_placeholder_fill = #{minimalPlaceholderFill}, - automatic_placeholder_fill = #{automaticPlaceholderFill} + automatic_placeholder_fill = #{automaticPlaceholderFill}, + duplicate_enable = #{duplicateEnable} where id = #{id}