配置
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good

This commit is contained in:
2025-09-23 20:57:01 +08:00
parent f779b0e040
commit a361b59d74
2 changed files with 5 additions and 3 deletions

View File

@@ -14,4 +14,5 @@ public class TemplateConfigEntity {
private Date createDate; private Date createDate;
private Integer minimalPlaceholderFill; private Integer minimalPlaceholderFill;
private Integer automaticPlaceholderFill; private Integer automaticPlaceholderFill;
private Integer duplicateEnable;
} }

View File

@@ -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()) values (#{id}, #{scenicId}, #{name}, #{pid}, #{isPlaceholder}, #{sourceUrl}, #{effects}, #{luts}, #{overlays}, #{audios}, #{coverUrl}, #{frameRate}, #{speed}, #{price}, #{slashPrice}, #{sort}, #{cropEnable}, #{zoomCut}, #{onlyIf}, #{resolution}, now())
</insert> </insert>
<insert id="addConfig"> <insert id="addConfig">
insert into template_config(id, template_id, create_time) insert into template_config(id, template_id, duplicate_enable, create_time)
values (#{id}, #{templateId}, now()) values (#{id}, #{templateId}, #{duplicateEnable}, now())
</insert> </insert>
<update id="update"> <update id="update">
update template update template
@@ -52,7 +52,8 @@
<set> <set>
<if test="isDefault!= null">is_default = #{isDefault}, </if> <if test="isDefault!= null">is_default = #{isDefault}, </if>
minimal_placeholder_fill = #{minimalPlaceholderFill}, minimal_placeholder_fill = #{minimalPlaceholderFill},
automatic_placeholder_fill = #{automaticPlaceholderFill} automatic_placeholder_fill = #{automaticPlaceholderFill},
duplicate_enable = #{duplicateEnable}
</set> </set>
where id = #{id} where id = #{id}
</update> </update>