添加字段

This commit is contained in:
Jerry Yan 2025-03-05 16:21:10 +08:00
parent 5209575c0b
commit d95e7e45fe
3 changed files with 5 additions and 2 deletions

View File

@ -40,6 +40,7 @@ public class TemplateEntity {
* PLACEHOLDER_***根据任务附加属性获取 * PLACEHOLDER_***根据任务附加属性获取
*/ */
private String sourceUrl; private String sourceUrl;
private String effects;
/** /**
* 逗号隔开叠加调色列表 * 逗号隔开叠加调色列表
*/ */

View File

@ -44,6 +44,7 @@ public class TemplateRespVO {
*/ */
@ApiModelProperty("来源,如果是占位素材则为占位标识") @ApiModelProperty("来源,如果是占位素材则为占位标识")
private String sourceUrl; private String sourceUrl;
private String effects;
/** /**
* 逗号隔开叠加调色列表 * 逗号隔开叠加调色列表
*/ */

View File

@ -2,8 +2,8 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ycwl.basic.mapper.TemplateMapper"> <mapper namespace="com.ycwl.basic.mapper.TemplateMapper">
<insert id="add"> <insert id="add">
insert into template(id, scenic_id, `name`, pid, is_placeholder, source_url, luts, overlays, audios, cover_url, frame_rate, speed, price, slash_price, crop_enable, only_if, resolution, create_time) insert into template(id, scenic_id, `name`, pid, is_placeholder, source_url, effects, luts, overlays, audios, cover_url, frame_rate, speed, price, slash_price, crop_enable, only_if, resolution, create_time)
values (#{id}, #{scenicId}, #{name}, #{pid}, #{isPlaceholder}, #{sourceUrl}, #{luts}, #{overlays}, #{audios}, #{coverUrl}, #{frameRate}, #{speed}, #{price}, #{slashPrice}, #{cropEnable}, #{onlyIf}, #{resolution}, now()) values (#{id}, #{scenicId}, #{name}, #{pid}, #{isPlaceholder}, #{sourceUrl}, #{effects}, #{luts}, #{overlays}, #{audios}, #{coverUrl}, #{frameRate}, #{speed}, #{price}, #{slashPrice}, #{cropEnable}, #{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, create_time)
@ -18,6 +18,7 @@
<if test="pid!= null">pid = #{pid}, </if> <if test="pid!= null">pid = #{pid}, </if>
<if test="isPlaceholder!= null">is_placeholder = #{isPlaceholder}, </if> <if test="isPlaceholder!= null">is_placeholder = #{isPlaceholder}, </if>
<if test="sourceUrl!= null">source_url = #{sourceUrl}, </if> <if test="sourceUrl!= null">source_url = #{sourceUrl}, </if>
<if test="effects!= null">effects = #{effects}, </if>
<if test="luts!= null">luts = #{luts}, </if> <if test="luts!= null">luts = #{luts}, </if>
<if test="overlays!= null">overlays = #{overlays}, </if> <if test="overlays!= null">overlays = #{overlays}, </if>
<if test="audios!= null">audios = #{audios}, </if> <if test="audios!= null">audios = #{audios}, </if>