添加字段
This commit is contained in:
parent
5209575c0b
commit
d95e7e45fe
@ -40,6 +40,7 @@ public class TemplateEntity {
|
||||
* PLACEHOLDER_***:根据任务附加属性获取
|
||||
*/
|
||||
private String sourceUrl;
|
||||
private String effects;
|
||||
/**
|
||||
* 逗号隔开,叠加调色列表
|
||||
*/
|
||||
|
@ -44,6 +44,7 @@ public class TemplateRespVO {
|
||||
*/
|
||||
@ApiModelProperty("来源,如果是占位素材则为占位标识")
|
||||
private String sourceUrl;
|
||||
private String effects;
|
||||
/**
|
||||
* 逗号隔开,叠加调色列表
|
||||
*/
|
||||
|
@ -2,8 +2,8 @@
|
||||
<!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">
|
||||
<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)
|
||||
values (#{id}, #{scenicId}, #{name}, #{pid}, #{isPlaceholder}, #{sourceUrl}, #{luts}, #{overlays}, #{audios}, #{coverUrl}, #{frameRate}, #{speed}, #{price}, #{slashPrice}, #{cropEnable}, #{onlyIf}, #{resolution}, now())
|
||||
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}, #{effects}, #{luts}, #{overlays}, #{audios}, #{coverUrl}, #{frameRate}, #{speed}, #{price}, #{slashPrice}, #{cropEnable}, #{onlyIf}, #{resolution}, now())
|
||||
</insert>
|
||||
<insert id="addConfig">
|
||||
insert into template_config(id, template_id, create_time)
|
||||
@ -18,6 +18,7 @@
|
||||
<if test="pid!= null">pid = #{pid}, </if>
|
||||
<if test="isPlaceholder!= null">is_placeholder = #{isPlaceholder}, </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="overlays!= null">overlays = #{overlays}, </if>
|
||||
<if test="audios!= null">audios = #{audios}, </if>
|
||||
|
Loading…
x
Reference in New Issue
Block a user