|
@@ -11,6 +11,7 @@ import org.jeecg.common.constant.CommonConstant;
|
|
|
import org.jeecg.common.util.DictAnnotationUtil;
|
|
|
import org.jeecg.modules.app.service.IGameService;
|
|
|
import org.jeecg.modules.app.vo.game.*;
|
|
|
+import org.jeecg.modules.system.app.entity.AppGame;
|
|
|
import org.jeecg.modules.system.app.entity.AppInsure;
|
|
|
import org.jeecg.modules.system.app.entity.InsurePrice;
|
|
|
import org.jeecg.modules.system.app.mapper.*;
|
|
@@ -156,6 +157,17 @@ public class GameServiceImpl implements IGameService {
|
|
|
return Result.OK(findByGameIdPriceVo);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Result<AppGame> findScoreByGameId(String id) {
|
|
|
+ AppGame appGame = appGameMapper.selectById(id);
|
|
|
+ if (appGame==null){
|
|
|
+ return Result.error("请确认所查询需要的数据是否存在");
|
|
|
+ }
|
|
|
+ if (StringUtils.isEmpty(appGame.getGameResults())){
|
|
|
+ return Result.error("该赛事成绩未出来");
|
|
|
+ }
|
|
|
+ return Result.ok(appGame);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|