|
|
@@ -132,7 +132,7 @@ public interface FsUserVideoMapper
|
|
|
int minusFavorite(Long videoId);
|
|
|
|
|
|
@Select({"<script> " +
|
|
|
- "select v.video_id as id,v.title,v.description as msg,t.nick_name as username,t.avatar as headImg, " +
|
|
|
+ "select v.video_id as id,v.talent_id as talentId,t.user_id as userId,v.title,v.description as msg,t.nick_name as username,t.avatar as headImg, " +
|
|
|
"v.thumbnail as cover,v.url as src,v.likes as likeNum,v.comments as smsNum,v.favorite_num," +
|
|
|
"v.create_time,v.views as playNumber,v.product_id,p.img_url,p.package_name,v.upload_type,v.shares,v.add_num from fs_user_video v " +
|
|
|
"left join fs_user_talent t on t.talent_id = v.talent_id " +
|
|
|
@@ -150,7 +150,7 @@ public interface FsUserVideoMapper
|
|
|
void updateCommentCount(@Param("videoId") Long videoId, @Param("commentCount") Integer commentCount);
|
|
|
|
|
|
@Select({"<script> " +
|
|
|
- "select v.video_id as id,v.title,v.description as msg,t.nick_name as username,t.avatar as headImg, " +
|
|
|
+ "select v.video_id as id,v.talent_id as talentId,t.user_id as userId,v.title,v.description as msg,t.nick_name as username,t.avatar as headImg, " +
|
|
|
"v.thumbnail as cover,v.url as src,v.likes as likeNum,v.comments as smsNum,v.favorite_num," +
|
|
|
"v.create_time,v.views as playNumber,v.product_id,v.product_json,p.img_url,p.package_name,v.shares from fs_user_video_favorite f " +
|
|
|
"left join fs_user_video v on v.video_id = f.video_id " +
|
|
|
@@ -163,7 +163,7 @@ public interface FsUserVideoMapper
|
|
|
|
|
|
|
|
|
@Select({"<script> " +
|
|
|
- "select v.video_id as id,v.title,v.description as msg,t.nick_name as username,t.avatar as headImg, " +
|
|
|
+ "select v.video_id as id,v.talent_id as talentId,t.user_id as userId,v.title,v.description as msg,t.nick_name as username,t.avatar as headImg, " +
|
|
|
"v.thumbnail as cover,v.url as src,v.likes as likeNum,v.comments as smsNum,v.favorite_num," +
|
|
|
"v.create_time,v.views as playNumber,v.product_id,v.product_json,p.img_url,p.package_name,v.shares from fs_user_video_like l " +
|
|
|
"left join fs_user_video v on v.video_id = l.video_id " +
|
|
|
@@ -176,7 +176,7 @@ public interface FsUserVideoMapper
|
|
|
|
|
|
|
|
|
@Select({"<script> " +
|
|
|
- "select v.video_id as id,v.title,v.description as msg,t.nick_name as username,t.avatar as headImg, " +
|
|
|
+ "select v.video_id as id,v.talent_id as talentId,t.user_id as userId,v.title,v.description as msg,t.nick_name as username,t.avatar as headImg, " +
|
|
|
"v.thumbnail as cover,v.url as src,v.likes as likeNum,v.comments as smsNum,v.favorite_num," +
|
|
|
"v.create_time,v.views as playNumber,v.product_id,v.product_json,p.img_url,p.package_name,v.shares from fs_user_video_comment c " +
|
|
|
"left join fs_user_video v on v.video_id = c.video_id " +
|
|
|
@@ -205,7 +205,7 @@ public interface FsUserVideoMapper
|
|
|
int updateViews(Long videoId);
|
|
|
|
|
|
@Select({"<script> " +
|
|
|
- "select v.video_id as id,v.title,v.description as msg,t.nick_name as username,t.avatar as headImg, " +
|
|
|
+ "select v.video_id as id,v.talent_id as talentId,t.user_id as userId,v.title,v.description as msg,t.nick_name as username,t.avatar as headImg, " +
|
|
|
"v.thumbnail as cover,v.url as src,v.likes as likeNum,v.comments as smsNum,v.favorite_num," +
|
|
|
"v.create_time,v.views as playNumber,v.product_id,p.img_url,p.package_name,v.upload_type,v.shares from fs_user_video v " +
|
|
|
"left join fs_user_talent t on t.talent_id = v.talent_id " +
|
|
|
@@ -252,7 +252,7 @@ public interface FsUserVideoMapper
|
|
|
int countFavoriteVideos(@Param("userId") Long userId);
|
|
|
|
|
|
@Select({"<script> " +
|
|
|
- "select v.video_id as id,v.title,v.description as msg,t.nick_name as username,t.avatar as headImg, " +
|
|
|
+ "select v.video_id as id,v.talent_id as talentId,t.user_id as userId,v.title,v.description as msg,t.nick_name as username,t.avatar as headImg, " +
|
|
|
"v.thumbnail as cover,v.url as src,v.likes as likeNum,v.comments as smsNum,v.favorite_num," +
|
|
|
"v.create_time,v.views as playNumber,v.product_id,p.img_url,p.package_name,v.upload_type,v.shares,v.add_num,v.is_audit,v.status from fs_user_video v " +
|
|
|
"left join fs_user_talent t on t.talent_id = v.talent_id " +
|