|
@@ -239,8 +239,12 @@ public class AppGameBettingController extends BaseController{
|
|
@Anonymous
|
|
@Anonymous
|
|
@PostMapping(value = "/count")
|
|
@PostMapping(value = "/count")
|
|
@ApiOperation(value = "游戏输赢统计(首页)", notes = "游戏输赢统计(首页)")
|
|
@ApiOperation(value = "游戏输赢统计(首页)", notes = "游戏输赢统计(首页)")
|
|
- public HttpRet<AppGameBettingCountVO> getCount(@RequestParam(name = "strDate") String strDate, @RequestParam(name = "userId") Long userId)
|
|
|
|
|
|
+ public HttpRet<AppGameBettingCountVO> getCount(@RequestParam(name = "strDate") String strDate, @RequestParam(name = "userId") Long userId, @RequestParam(name = "bettingType") Integer bettingType)
|
|
{
|
|
{
|
|
|
|
+
|
|
|
|
+ if(bettingType == null){
|
|
|
|
+ bettingType = 0;
|
|
|
|
+ }
|
|
AppGameBettingCountVO appGameBettingCountDTO = new AppGameBettingCountVO();
|
|
AppGameBettingCountVO appGameBettingCountDTO = new AppGameBettingCountVO();
|
|
List<AppGame> gameList = appGameService.selectAppGameList(new AppGame());
|
|
List<AppGame> gameList = appGameService.selectAppGameList(new AppGame());
|
|
|
|
|
|
@@ -248,7 +252,7 @@ public class AppGameBettingController extends BaseController{
|
|
return HttpRet.success("查询成功",appGameBettingCountDTO);
|
|
return HttpRet.success("查询成功",appGameBettingCountDTO);
|
|
}
|
|
}
|
|
|
|
|
|
- List<AppGameBettingDetailsCountVO> countList = appGameBettingService.getCount(strDate, userId);
|
|
|
|
|
|
+ List<AppGameBettingDetailsCountVO> countList = appGameBettingService.getCount(strDate, userId, bettingType);
|
|
if(countList == null){
|
|
if(countList == null){
|
|
countList = new ArrayList<>();
|
|
countList = new ArrayList<>();
|
|
}
|
|
}
|