Browse Source

1、视频点赞判断修改

master
Augcl 8 months ago
parent
commit
0b7d54a768
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiService/impl/IndexApiServiceImpl.java

+ 4
- 3
jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiService/impl/IndexApiServiceImpl.java View File

@ -538,7 +538,7 @@ public class IndexApiServiceImpl implements IndexApiService {
public Result<?> queryVedioById(String token, String roleInfoId, PageBean pageBean) { public Result<?> queryVedioById(String token, String roleInfoId, PageBean pageBean) {
//如果用户是登录状态查询该用户的点赞列表 //如果用户是登录状态查询该用户的点赞列表
List<TravelThumpup> thumpupList = null; List<TravelThumpup> thumpupList = null;
if(null != token){
if(null != token && "" != token){
HanHaiMember hanHaiMember = shiroRealm.checkUserTokenIsEffectHanHaiOpenId(token); HanHaiMember hanHaiMember = shiroRealm.checkUserTokenIsEffectHanHaiOpenId(token);
thumpupList = travelThumpupService thumpupList = travelThumpupService
.lambdaQuery() .lambdaQuery()
@ -596,6 +596,7 @@ public class IndexApiServiceImpl implements IndexApiService {
} }
//分页 //分页
List<VideoApiBean> videoApiBeanListPage = new ArrayList<>();
//页码 //页码
int pageNo = pageBean.getPageNo(); int pageNo = pageBean.getPageNo();
//每一页展示数量 //每一页展示数量
@ -603,7 +604,7 @@ public class IndexApiServiceImpl implements IndexApiService {
//数据总量 //数据总量
int listCount = videoApiBeanList.size(); int listCount = videoApiBeanList.size();
if(listCount < 1){ if(listCount < 1){
return Result.OK("没有视频数据");
return Result.OK("没有视频数据",videoApiBeanListPage);
} }
//总页数 //总页数
int pageCount = listCount%pageSize==0?listCount/pageSize:listCount/pageSize+1; int pageCount = listCount%pageSize==0?listCount/pageSize:listCount/pageSize+1;
@ -622,7 +623,7 @@ public class IndexApiServiceImpl implements IndexApiService {
endIndex = listCount; endIndex = listCount;
} }
List<VideoApiBean> videoApiBeanListPage = videoApiBeanList.subList(startIndex,endIndex);
videoApiBeanListPage = videoApiBeanList.subList(startIndex,endIndex);
return Result.OK("视频列表", videoApiBeanListPage); return Result.OK("视频列表", videoApiBeanListPage);
} }


Loading…
Cancel
Save