|
|
|
@ -45,12 +45,12 @@ public interface VideoMapper extends BaseMapper<Video> {
|
|
|
|
|
"ORDER BY updateAt DESC,creatAt DESC")
|
|
|
|
|
IPage<Map> pageList(IPage iPage, @Param("ew") Wrapper<Video> queryWrapper);
|
|
|
|
|
|
|
|
|
|
@Select("SELECT sum(t1.playNum) as playNumSum,\n" +
|
|
|
|
|
"sum(t1.commendNum) as commendNumSum ,\n" +
|
|
|
|
|
"sum(t1.collectionNum) as collectionNumSum ,\n" +
|
|
|
|
|
"sum(t1.commentNum) as commentNumSum ,\n" +
|
|
|
|
|
"sum(t1.reSendNum) as reSendNumSum ,\n" +
|
|
|
|
|
"sum(t1.recommendNum) as recommendNumSum \n" +
|
|
|
|
|
@Select("SELECT IFNULL(sum(t1.playNum),0) as playNumSum,\n" +
|
|
|
|
|
"IFNULL(sum(t1.commendNum),0) as commendNumSum ,\n" +
|
|
|
|
|
"IFNULL(sum(t1.collectionNum),0) as collectionNumSum ,\n" +
|
|
|
|
|
"IFNULL(sum(t1.commentNum),0) as commentNumSum ,\n" +
|
|
|
|
|
"IFNULL(sum(t1.reSendNum),0) as reSendNumSum ,\n" +
|
|
|
|
|
"IFNULL(sum(t1.recommendNum),0) as recommendNumSum \n" +
|
|
|
|
|
" from video as t1" +
|
|
|
|
|
" inner join user on user.openid = #{openid} and user.id = t1.userId\n" +
|
|
|
|
|
"where t1.status = 2")
|
|
|
|
|