|
@@ -1365,10 +1365,15 @@ public class AuthServiceImpl implements AuthService {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public ResponseJson<PageInfo<ChallengeRoundVo>> getPublishedVideo(String mobile,String authParty,Integer status,Integer cursor,Integer count,Integer authUserId,Integer pageNum,Integer pageSize){
|
|
|
|
|
|
+ public ResponseJson<PageInfo<ChallengeRoundVo>> getPublishedVideo(String mobile,String authParty,Integer status,Integer cursor,Integer count,Integer authUserId,Integer pageNum,Integer pageSize,String startTIme,String endTime){
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
|
+ List<ChallengeRoundVo> listChallengeRoundVo=null;
|
|
ChallengeActivityVo activityTime = authMapper.getActivityTime(authUserId);
|
|
ChallengeActivityVo activityTime = authMapper.getActivityTime(authUserId);
|
|
- List<ChallengeRoundVo> listChallengeRoundVo=authMapper.getPublishedVideo(mobile,authParty,status,authUserId,activityTime.getStartTime(),activityTime.getEndTime());
|
|
|
|
|
|
+ if(StringUtils.isNotEmpty(startTIme)&&StringUtils.isNotEmpty(endTime)){
|
|
|
|
+ listChallengeRoundVo=authMapper.getPublishedVideo(mobile,authParty,status,authUserId,startTIme,endTime);
|
|
|
|
+ }else{
|
|
|
|
+ listChallengeRoundVo=authMapper.getPublishedVideo(mobile,authParty,status,authUserId,activityTime.getStartTime(),activityTime.getEndTime());
|
|
|
|
+ }
|
|
PageInfo<ChallengeRoundVo> pageData = new PageInfo<>(listChallengeRoundVo);
|
|
PageInfo<ChallengeRoundVo> pageData = new PageInfo<>(listChallengeRoundVo);
|
|
//调用抖音api获取视频数据
|
|
//调用抖音api获取视频数据
|
|
String dyopenId=null;
|
|
String dyopenId=null;
|
|
@@ -1430,7 +1435,12 @@ public class AuthServiceImpl implements AuthService {
|
|
}
|
|
}
|
|
PageInfo<ChallengeRoundVo> pageDa = new PageInfo<>(collect);
|
|
PageInfo<ChallengeRoundVo> pageDa = new PageInfo<>(collect);
|
|
//获取不排名的数据
|
|
//获取不排名的数据
|
|
- List<ChallengeRoundVo> publishedVideoListNoRanking = authMapper.getPublishedVideoNoRanking(mobile,authParty,status,authUserId,activityTime.getStartTime(),activityTime.getEndTime());
|
|
|
|
|
|
+ List<ChallengeRoundVo> publishedVideoListNoRanking=null;
|
|
|
|
+ if(StringUtils.isNotEmpty(startTIme)&&StringUtils.isNotEmpty(endTime)){
|
|
|
|
+ publishedVideoListNoRanking = authMapper.getPublishedVideoNoRanking(mobile,authParty,status,authUserId,startTIme,endTime);
|
|
|
|
+ }else{
|
|
|
|
+ publishedVideoListNoRanking = authMapper.getPublishedVideoNoRanking(mobile,authParty,status,authUserId,activityTime.getStartTime(),activityTime.getEndTime());
|
|
|
|
+ }
|
|
//获取不排名的数据
|
|
//获取不排名的数据
|
|
if(publishedVideoListNoRanking.size()>0&&listChallengeRoundVo.size()>0){
|
|
if(publishedVideoListNoRanking.size()>0&&listChallengeRoundVo.size()>0){
|
|
for (ChallengeRoundVo noRanking:publishedVideoListNoRanking) {
|
|
for (ChallengeRoundVo noRanking:publishedVideoListNoRanking) {
|