|
@@ -48,13 +48,16 @@ public class AppGameBettingServiceImpl extends ServiceImpl<AppGameBettingMapper,
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public List<AppGameBetting> selectListByGameId(Long gameId, Long userId, Integer isWinning, String strDate) {
|
|
|
|
|
|
+ public List<AppGameBetting> selectListByGameId(Long gameId, Long userId, Integer isWinning, String strDate, Integer bettingType) {
|
|
LambdaQueryWrapper<AppGameBetting> queryWrapper = Wrappers.lambdaQuery();;
|
|
LambdaQueryWrapper<AppGameBetting> queryWrapper = Wrappers.lambdaQuery();;
|
|
queryWrapper.eq(AppGameBetting::getGameId, gameId);
|
|
queryWrapper.eq(AppGameBetting::getGameId, gameId);
|
|
queryWrapper.eq(AppGameBetting::getUserId, userId);
|
|
queryWrapper.eq(AppGameBetting::getUserId, userId);
|
|
if(isWinning != null && isWinning != -1){
|
|
if(isWinning != null && isWinning != -1){
|
|
queryWrapper.eq(AppGameBetting::getIsWinning, isWinning);
|
|
queryWrapper.eq(AppGameBetting::getIsWinning, isWinning);
|
|
}
|
|
}
|
|
|
|
+ if(bettingType != null && bettingType != -1){
|
|
|
|
+ queryWrapper.eq(AppGameBetting::getBettingType, bettingType);
|
|
|
|
+ }
|
|
if(StringUtils.isNotBlank(strDate)){
|
|
if(StringUtils.isNotBlank(strDate)){
|
|
queryWrapper.between(AppGameBetting::getCreateTime, strDate + " 00:00:00", strDate + " 23:59:59");
|
|
queryWrapper.between(AppGameBetting::getCreateTime, strDate + " 00:00:00", strDate + " 23:59:59");
|
|
}
|
|
}
|