Browse Source

修改视频返回下标越界

tiaosheng
wang0018 5 years ago
parent
commit
f9203196d5
  1. 8
      mt/src/main/java/com/ccsens/mt/service/CompeteService.java
  2. 1
      mt/src/main/java/com/ccsens/mt/service/ScoreService.java
  3. 4
      tall/src/main/resources/application.yml

8
mt/src/main/java/com/ccsens/mt/service/CompeteService.java

@ -1417,9 +1417,11 @@ public class CompeteService implements ICompeteService {
CompeteVideoExample competeVideoExample = new CompeteVideoExample();
competeVideoExample.createCriteria().andProjectIdEqualTo(competeStartOrder.getProjectId()).andPlayerIdEqualTo(competeStartOrder.getPlayerId());
List<CompeteVideo> competeVideos = competeVideoMapper.selectByExample(competeVideoExample);
CompeteVideo competeVideo = competeVideos.get(0);
String path = competeVideo.getVideoUrl();
mes.setVideoUrl(path);
if(competeVideos.size()>0) {
CompeteVideo competeVideo = competeVideos.get(0);
String path = competeVideo.getVideoUrl();
mes.setVideoUrl(path);
}
});
return countScoreCurrentSites;
}

1
mt/src/main/java/com/ccsens/mt/service/ScoreService.java

@ -23,7 +23,6 @@ import com.ccsens.util.ExcelUtil;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.WebConstant;
import com.ccsens.util.exception.BaseException;
import com.sun.xml.internal.bind.v2.TODO;
import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

4
tall/src/main/resources/application.yml

@ -1,5 +1,5 @@
spring:
profiles:
active: dev
include: util-dev,common
active: test
include: util-test,common

Loading…
Cancel
Save