|
@@ -8,6 +8,7 @@ import com.game.business.dto.AppGameBettingDetailsCountDTO;
|
|
|
import com.game.business.service.*;
|
|
|
import com.game.common.core.controller.BaseController;
|
|
|
import com.game.common.core.domain.AjaxResult;
|
|
|
+import com.game.common.core.domain.R;
|
|
|
import com.game.common.core.page.TableDataInfo;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -181,13 +182,13 @@ public class AppGameBettingController extends BaseController{
|
|
|
*/
|
|
|
@GetMapping(value = "/count")
|
|
|
@ApiOperation(value = "游戏输赢统计(首页)", notes = "游戏输赢统计(首页)")
|
|
|
- public AjaxResult getCount(@RequestParam(name = "strDate") String strDate)
|
|
|
+ public R<AppGameBettingCountDTO> getCount(@RequestParam(name = "strDate") String strDate)
|
|
|
{
|
|
|
AppGameBettingCountDTO appGameBettingCountDTO = new AppGameBettingCountDTO();
|
|
|
List<AppGame> gameList = appGameService.selectAppGameList(new AppGame());
|
|
|
|
|
|
if(gameList == null || gameList.isEmpty()){
|
|
|
- return success(appGameBettingCountDTO);
|
|
|
+ return R.ok(appGameBettingCountDTO);
|
|
|
}
|
|
|
|
|
|
List<AppGameBettingDetailsCountDTO> countList = appGameBettingService.getCount(strDate);
|
|
@@ -226,7 +227,7 @@ public class AppGameBettingController extends BaseController{
|
|
|
appGameBettingCountDTO.setWinAmount(winAmount);
|
|
|
appGameBettingCountDTO.setLoseAmount(loseAmount);
|
|
|
appGameBettingCountDTO.setList(newList);
|
|
|
- return success(appGameBettingCountDTO);
|
|
|
+ return R.ok(appGameBettingCountDTO);
|
|
|
}
|
|
|
|
|
|
/**
|