剧集数据模型调整
This commit is contained in:
parent
03065cfc7c
commit
cb8f8007b5
|
|
@ -8,7 +8,13 @@
|
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-item-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">视频名称:</label>
|
||||
<label class="col-sm-3 control-label is-required">剧集ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="itemId" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">剧集名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="videoName" class="form-control" type="text" required>
|
||||
</div>
|
||||
|
|
@ -24,7 +30,7 @@
|
|||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">剧场:</label>
|
||||
<div class="col-sm-8">
|
||||
<select id="itemType" name="itemType" class="form-control control-label" required>
|
||||
<select id="itemType" name="itemType" class="form-control m-b" required>
|
||||
<option th:each="itemType:${itemTypes}" th:value="${itemType.id}" th:text="${itemType.name}"></option>
|
||||
</select>
|
||||
</div>
|
||||
|
|
@ -44,27 +50,49 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">连接地址:</label>
|
||||
<label class="col-sm-3 control-label is-required">网盘地址:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="connectSite" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">上映年份:</label>
|
||||
<label class="col-sm-3 control-label is-required">主角名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="releaseDate" class="form-control" type="text" required>
|
||||
<input name="actorName" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">地区:</label>
|
||||
<label class="col-sm-3 control-label is-required">出品方:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="region" class="form-control" type="text" required>
|
||||
<input name="producer" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">评分:</label>
|
||||
<label class="col-sm-3 control-label is-required">对标用户:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="score" class="form-control" type="text" required>
|
||||
<input name="forUser" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">是否精品:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="specialItem" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">剧集类型:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="videoType" class="form-control m-b" th:with="type=${@dict.getType('playlet_video_type')}">
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">标签:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="labelType" class="form-control m-b" th:with="type=${@dict.getType('playlet_label_type')}">
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
@ -73,12 +101,6 @@
|
|||
<input name="numberEpisode" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">是否删除 1 正常 0 删除:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isDelete" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">上映时间:</label>
|
||||
<div class="col-sm-8">
|
||||
|
|
@ -89,7 +111,16 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注信息:</label>
|
||||
<label class="col-sm-3 control-label is-required">上架时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="upTime" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">短剧介绍:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="remark" class="form-control" type="text">
|
||||
</div>
|
||||
|
|
@ -115,6 +146,13 @@
|
|||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$("input[name='upTime']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -9,13 +9,13 @@
|
|||
<form class="form-horizontal m" id="form-item-edit" th:object="${playletItem}">
|
||||
<input name="id" th:field="*{id}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注信息:</label>
|
||||
<label class="col-sm-3 control-label is-required">剧集ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="remark" th:field="*{remark}" class="form-control" type="text">
|
||||
<input name="itemId" th:field="*{itemId}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">视频名称:</label>
|
||||
<label class="col-sm-3 control-label is-required">剧集名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="videoName" th:field="*{videoName}" class="form-control" type="text" required>
|
||||
</div>
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">剧场:</label>
|
||||
<div class="col-sm-8">
|
||||
<select id="itemType" name="itemType" class="form-control control-label" required>
|
||||
<select id="itemType" name="itemType" class="form-control m-b" required>
|
||||
<option th:each="itemType:${itemTypes}" th:value="${itemType.id}" th:text="${itemType.name}" th:field="*{itemType}"></option>
|
||||
</select>
|
||||
</div>
|
||||
|
|
@ -36,6 +36,22 @@
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">短剧类型:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="videoType" class="form-control m-b" th:with="type=${@dict.getType('playlet_video_type')}">
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{videoType}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">标签:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="labelType" class="form-control m-b" th:with="type=${@dict.getType('playlet_label_type')}">
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{labelType}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">是否完结:</label>
|
||||
<div class="col-sm-8">
|
||||
|
|
@ -45,33 +61,33 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">视频封面图:</label>
|
||||
<label class="col-sm-3 control-label">封面图:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="coverPic" th:field="*{coverPic}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">连接地址:</label>
|
||||
<label class="col-sm-3 control-label is-required">网盘地址:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="connectSite" th:field="*{connectSite}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">上映年份:</label>
|
||||
<label class="col-sm-3 control-label is-required">主角名:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="releaseDate" th:field="*{releaseDate}" class="form-control" type="text" required>
|
||||
<input name="actorName" th:field="*{actorName}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">地区:</label>
|
||||
<label class="col-sm-3 control-label is-required">出品方:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="region" th:field="*{region}" class="form-control" type="text" required>
|
||||
<input name="producer" th:field="*{producer}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">评分:</label>
|
||||
<label class="col-sm-3 control-label is-required">对标用户:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="score" th:field="*{score}" class="form-control" type="text" required>
|
||||
<input name="forUser" th:field="*{forUser}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
@ -86,6 +102,15 @@
|
|||
<input name="isDelete" th:field="*{isDelete}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">上架时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="upTime" th:value="${#dates.format(playletItem.upTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">上映时间:</label>
|
||||
<div class="col-sm-8">
|
||||
|
|
@ -95,6 +120,12 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">剧集介绍:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="remark" th:field="*{remark}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
|
|
@ -116,6 +147,12 @@
|
|||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$("input[name='upTime']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -49,6 +49,8 @@
|
|||
var prefix = ctx + "system/playlet/item";
|
||||
var typeDict = [[${@dict.getType('playlet_source_type')}]];
|
||||
var completeDict = [[${@dict.getType('playlet_complete_type')}]];
|
||||
var videoTypeDict = [[${@dict.getType('playlet_video_type')}]];
|
||||
var labelTypeDict = [[${@dict.getType('playlet_label_type')}]];
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
|
|
@ -67,9 +69,8 @@
|
|||
visible: false
|
||||
},
|
||||
{
|
||||
field: 'remark',
|
||||
title: '备注信息',
|
||||
visible: false
|
||||
field: 'itemId',
|
||||
title: '剧集ID'
|
||||
},
|
||||
{
|
||||
field: 'itemTypeName',
|
||||
|
|
@ -85,7 +86,15 @@
|
|||
},
|
||||
{
|
||||
field: 'videoName',
|
||||
title: '视频名称'
|
||||
title: '短剧标题'
|
||||
},
|
||||
{
|
||||
field: 'actorName',
|
||||
title: '主角名'
|
||||
},
|
||||
{
|
||||
field: 'producer',
|
||||
title: '出品方'
|
||||
},
|
||||
{
|
||||
field: 'completeNot',
|
||||
|
|
@ -105,40 +114,58 @@
|
|||
},
|
||||
{
|
||||
field: 'connectSite',
|
||||
title: '连接地址',
|
||||
title: '网盘地址',
|
||||
formatter: function(value) {
|
||||
if (value != null && value !== ''){return '<a target="_blank" href="' + value+ '" download="false">详情图片<a/>';}
|
||||
else {return '<a>无<a/>'}
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'releaseDate',
|
||||
title: '上映年份'
|
||||
field: 'upTime',
|
||||
title: '上架时间'
|
||||
},
|
||||
{
|
||||
field: 'region',
|
||||
title: '地区'
|
||||
field: 'specialItem',
|
||||
title: '精品剧'
|
||||
},
|
||||
{
|
||||
field: 'videoType',
|
||||
title: '视频类型1 科幻 2 爱情 3 恐怖 4 悬疑..'
|
||||
title: '剧集类型',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
return $.table.selectDictLabel(videoTypeDict, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'score',
|
||||
title: '评分'
|
||||
field: 'labelType',
|
||||
title: '剧集标签',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
return $.table.selectDictLabel(labelTypeDict, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'forUser',
|
||||
title: '对标用户'
|
||||
},
|
||||
{
|
||||
field: 'numberEpisode',
|
||||
title: '集数'
|
||||
title: '前端剧集'
|
||||
},
|
||||
{
|
||||
field: 'isDelete',
|
||||
title: '是否删除 1 正常 0 删除'
|
||||
title: '是否删除 1 正常 0 删除',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field: 'releaseTime',
|
||||
title: '上映时间'
|
||||
},
|
||||
{
|
||||
field: 'remark',
|
||||
title: '短剧介绍',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
|
|
|
|||
|
|
@ -32,14 +32,18 @@ public class PlayletItem extends BaseEntity{
|
|||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
@Excel(name = "短剧id")
|
||||
@ApiModelProperty(value = "短剧id")
|
||||
private String itemId;
|
||||
|
||||
/** 来源类型 1.抖音 2.快手 3.视频号 */
|
||||
@Excel(name = "来源类型 1.抖音 2.快手 3.视频号")
|
||||
@ApiModelProperty(value = "来源类型 1.抖音 2.快手 3.视频号")
|
||||
private Long sourceType;
|
||||
|
||||
/** 视频名称 */
|
||||
@Excel(name = "视频名称")
|
||||
@ApiModelProperty(value = "视频名称")
|
||||
@Excel(name = "短剧标题")
|
||||
@ApiModelProperty(value = "短剧标题")
|
||||
private String videoName;
|
||||
|
||||
/** 视频是否完结 0 未完结 1 完结 */
|
||||
|
|
@ -48,34 +52,43 @@ public class PlayletItem extends BaseEntity{
|
|||
private Long completeNot;
|
||||
|
||||
/** 视频封面图 */
|
||||
@Excel(name = "视频封面图")
|
||||
@ApiModelProperty(value = "视频封面图")
|
||||
@Excel(name = "封面图")
|
||||
@ApiModelProperty(value = "封面图")
|
||||
private String coverPic;
|
||||
|
||||
@Excel(name = "主角名称")
|
||||
@ApiModelProperty(value = "主角名称")
|
||||
private String actorName;
|
||||
|
||||
@Excel(name = "出品方")
|
||||
@ApiModelProperty(value = "出品方")
|
||||
private String producer;
|
||||
|
||||
/** 上映时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "出品时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "出品时间")
|
||||
private Date releaseTime;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "上线时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "上线日期")
|
||||
private Date upTime;
|
||||
|
||||
/** 连接地址 */
|
||||
@Excel(name = "连接地址")
|
||||
@ApiModelProperty(value = "连接地址")
|
||||
@Excel(name = "视频素材")
|
||||
@ApiModelProperty(value = "视频素材")
|
||||
private String connectSite;
|
||||
|
||||
/** 上映年份 */
|
||||
@Excel(name = "上映年份")
|
||||
@ApiModelProperty(value = "上映年份")
|
||||
private String releaseDate;
|
||||
|
||||
/** 地区 */
|
||||
@Excel(name = "地区")
|
||||
@ApiModelProperty(value = "地区")
|
||||
private String region;
|
||||
|
||||
/** 视频类型1 科幻 2 爱情 3 恐怖 4 悬疑.. */
|
||||
@Excel(name = "视频类型1 科幻 2 爱情 3 恐怖 4 悬疑..")
|
||||
@ApiModelProperty(value = "视频类型1 科幻 2 爱情 3 恐怖 4 悬疑..")
|
||||
@Excel(name = "类型1 科幻 2 爱情 3 恐怖 4 悬疑..")
|
||||
@ApiModelProperty(value = "类型1 科幻 2 爱情 3 恐怖 4 悬疑..")
|
||||
private Long videoType;
|
||||
|
||||
/** 评分 */
|
||||
@Excel(name = "评分")
|
||||
@ApiModelProperty(value = "评分")
|
||||
private Long score;
|
||||
@Excel(name = "标签")
|
||||
@ApiModelProperty(value = "标签")
|
||||
private Long labelType;
|
||||
|
||||
/** 集数 */
|
||||
@Excel(name = "集数")
|
||||
|
|
@ -87,11 +100,13 @@ public class PlayletItem extends BaseEntity{
|
|||
@ApiModelProperty(value = "是否删除 1 正常 0 删除")
|
||||
private Long isDelete;
|
||||
|
||||
/** 上映时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "上映时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "上映时间")
|
||||
private Date releaseTime;
|
||||
@Excel(name = "是否精品剧")
|
||||
@ApiModelProperty(value = "是否精品剧")
|
||||
private Long specialItem;
|
||||
|
||||
@Excel(name = "对标用户")
|
||||
@ApiModelProperty(value = "对标用户")
|
||||
private String forUser;
|
||||
|
||||
/** 剧场类型 */
|
||||
@Excel(name = "剧场类型")
|
||||
|
|
|
|||
|
|
@ -105,14 +105,8 @@ public class PlayletItemServiceImpl extends ServiceImpl<PlayletItemMapper, Playl
|
|||
// 视频名称
|
||||
.like(ObjectUtils.isNotNull(requestResp.getVideoName()), PlayletItem::getVideoName, requestResp.getVideoName())
|
||||
// 上映年份
|
||||
.eq(ObjectUtils.isNotNull(requestResp.getReleaseDate()), PlayletItem::getReleaseDate, requestResp.getReleaseDate())
|
||||
// 地区
|
||||
.eq(ObjectUtils.isNotNull(requestResp.getRegion()), PlayletItem::getRegion, requestResp.getRegion())
|
||||
// 视频类型1 科幻 2 爱情 3 恐怖 4 悬疑..
|
||||
.eq(ObjectUtils.isNotNull(requestResp.getVideoType()), PlayletItem::getVideoType, requestResp.getVideoType())
|
||||
|
||||
// 评分 大于等于
|
||||
.ge(ObjectUtils.isNotNull(requestResp.getScore()), PlayletItem::getScore, requestResp.getScore())
|
||||
// 集数 大于等于
|
||||
.like(ObjectUtils.isNotNull(requestResp.getNumberEpisode()), PlayletItem::getNumberEpisode, requestResp.getNumberEpisode())
|
||||
// 上映时间
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
<resultMap type="PlayletItem" id="PlayletItemResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="itemId" column="item_id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
|
|
@ -16,10 +17,13 @@
|
|||
<result property="completeNot" column="complete_not" />
|
||||
<result property="coverPic" column="cover_pic" />
|
||||
<result property="connectSite" column="connect_site" />
|
||||
<result property="releaseDate" column="release_date" />
|
||||
<result property="region" column="region" />
|
||||
<result property="upTime" column="up_time" />
|
||||
<result property="actorName" column="actor_name" />
|
||||
<result property="videoType" column="video_type" />
|
||||
<result property="score" column="score" />
|
||||
<result property="producer" column="producer" />
|
||||
<result property="labelType" column="label_type" />
|
||||
<result property="specialItem" column="special_item" />
|
||||
<result property="forUser" column="for_user" />
|
||||
<result property="numberEpisode" column="number_episode" />
|
||||
<result property="isDelete" column="is_delete" />
|
||||
<result property="releaseTime" column="release_time" />
|
||||
|
|
@ -27,7 +31,7 @@
|
|||
</resultMap>
|
||||
|
||||
<sql id="selectPlayletItemVo">
|
||||
select id, create_by, create_time, update_by, update_time, remark, source_type, video_name, complete_not, cover_pic, connect_site, release_date, region, video_type, score, number_episode, is_delete, release_time, item_type from playlet_item
|
||||
select id, item_id, source_type, video_name, complete_not, cover_pic, actor_name, producer, connect_site, release_time, video_type, label_type, item_type, number_episode, up_time, is_delete, special_item, for_user, remark, create_by, update_by, create_time, update_time from playlet_item
|
||||
</sql>
|
||||
|
||||
<select id="selectPlayletItemList" parameterType="PlayletItem" resultMap="PlayletItemResult">
|
||||
|
|
@ -38,10 +42,7 @@
|
|||
<if test="completeNot != null "> and complete_not = #{completeNot}</if>
|
||||
<if test="coverPic != null and coverPic != ''"> and cover_pic = #{coverPic}</if>
|
||||
<if test="connectSite != null and connectSite != ''"> and connect_site = #{connectSite}</if>
|
||||
<if test="releaseDate != null and releaseDate != ''"> and release_date = #{releaseDate}</if>
|
||||
<if test="region != null and region != ''"> and region = #{region}</if>
|
||||
<if test="videoType != null "> and video_type = #{videoType}</if>
|
||||
<if test="score != null "> and score = #{score}</if>
|
||||
<if test="numberEpisode != null "> and number_episode = #{numberEpisode}</if>
|
||||
<if test="isDelete != null "> and is_delete = #{isDelete}</if>
|
||||
<if test="releaseTime != null "> and release_time = #{releaseTime}</if>
|
||||
|
|
@ -73,14 +74,18 @@
|
|||
<if test="completeNot != null">complete_not,</if>
|
||||
<if test="coverPic != null">cover_pic,</if>
|
||||
<if test="connectSite != null and connectSite != ''">connect_site,</if>
|
||||
<if test="releaseDate != null and releaseDate != ''">release_date,</if>
|
||||
<if test="region != null and region != ''">region,</if>
|
||||
<if test="producer != null and producer != ''">producer,</if>
|
||||
<if test="actorName!= null and actorName != ''">actor_name,</if>
|
||||
<if test="videoType != null">video_type,</if>
|
||||
<if test="score != null">score,</if>
|
||||
<if test="numberEpisode != null">number_episode,</if>
|
||||
<if test="isDelete != null">is_delete,</if>
|
||||
<if test="itemId != null">item_id,</if>
|
||||
<if test="releaseTime != null">release_time,</if>
|
||||
<if test="itemType != null">item_type,</if>
|
||||
<if test="labelType != null">label_type,</if>
|
||||
<if test="forUser != null">for_user,</if>
|
||||
<if test="upTime != null">up_time,</if>
|
||||
<if test="specialItem != null">special_item,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
|
|
@ -93,14 +98,18 @@
|
|||
<if test="completeNot != null">#{completeNot},</if>
|
||||
<if test="coverPic != null">#{coverPic},</if>
|
||||
<if test="connectSite != null and connectSite != ''">#{connectSite},</if>
|
||||
<if test="releaseDate != null and releaseDate != ''">#{releaseDate},</if>
|
||||
<if test="region != null and region != ''">#{region},</if>
|
||||
<if test="producer != null and producer != ''">#{producer},</if>
|
||||
<if test="actorName!= null and actorName != ''">#{actorName},</if>
|
||||
<if test="videoType != null">#{videoType},</if>
|
||||
<if test="score != null">#{score},</if>
|
||||
<if test="numberEpisode != null">#{numberEpisode},</if>
|
||||
<if test="isDelete != null">#{isDelete},</if>
|
||||
<if test="itemId != null">#{itemId},</if>
|
||||
<if test="releaseTime != null">#{releaseTime},</if>
|
||||
<if test="itemType != null">#{itemType},</if>
|
||||
<if test="labelType != null">#{labelType},</if>
|
||||
<if test="forUser != null">#{forUser},</if>
|
||||
<if test="upTime != null">#{upTime},</if>
|
||||
<if test="specialItem != null">#{specialItem},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
|
@ -117,14 +126,18 @@
|
|||
<if test="completeNot != null">complete_not = #{completeNot},</if>
|
||||
<if test="coverPic != null">cover_pic = #{coverPic},</if>
|
||||
<if test="connectSite != null and connectSite != ''">connect_site = #{connectSite},</if>
|
||||
<if test="releaseDate != null and releaseDate != ''">release_date = #{releaseDate},</if>
|
||||
<if test="region != null and region != ''">region = #{region},</if>
|
||||
<if test="videoType != null">video_type = #{videoType},</if>
|
||||
<if test="score != null">score = #{score},</if>
|
||||
<if test="numberEpisode != null">number_episode = #{numberEpisode},</if>
|
||||
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
||||
<if test="releaseTime != null">release_time = #{releaseTime},</if>
|
||||
<if test="itemType != null ">item_type = #{itemType},</if>
|
||||
<if test="producer != null and producer != ''">producer = #{producer},</if>
|
||||
<if test="actorName!= null and actorName != ''">actor_name = #{actorName},</if>
|
||||
<if test="itemId != null">item_id = #{itemId},</if>
|
||||
<if test="labelType != null">label_type = #{labelType},</if>
|
||||
<if test="forUser != null">for_user = #{forUser},</if>
|
||||
<if test="upTime != null">up_time = #{upTime},</if>
|
||||
<if test="specialItem != null">special_item = #{specialItem},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
|
|
|||
Loading…
Reference in New Issue