|
@@ -128,8 +128,26 @@ public class AppGameBettingServiceImpl extends ServiceImpl<AppGameBettingMapper,
|
|
|
|
|
|
@Override
|
|
|
public List<AppGameBetting> selectListByDate(Long userId, String beginTime, String endTime,Long gameId,String gameDate) {
|
|
|
+ LambdaQueryWrapper<AppGameBetting> queryWrapper = Wrappers.lambdaQuery();
|
|
|
//查询已开奖 余额投注
|
|
|
- return selectListByDate(userId,beginTime,endTime,gameId,gameDate,0,0);
|
|
|
+ queryWrapper.ne(AppGameBetting::getIsWinning, 0);
|
|
|
+ queryWrapper.eq(AppGameBetting::getBettingType, 0);
|
|
|
+ if(null != userId){
|
|
|
+ queryWrapper.eq(AppGameBetting::getUserId,userId);
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(beginTime)){
|
|
|
+ queryWrapper.ge(AppGameBetting::getUpdateTime,beginTime);
|
|
|
+ }
|
|
|
+ if(null != gameId){
|
|
|
+ queryWrapper.eq(AppGameBetting::getGameId,gameId);
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(endTime)){
|
|
|
+ queryWrapper.le(AppGameBetting::getUpdateTime,endTime);
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(gameDate)){
|
|
|
+ queryWrapper.like(AppGameBetting::getGameDate,gameDate);
|
|
|
+ }
|
|
|
+ return appGameBettingMapper.selectList(queryWrapper);
|
|
|
}
|
|
|
|
|
|
@Override
|