|
@@ -141,6 +141,23 @@ public class AppGameLotteryServiceImpl extends ServiceImpl<AppGameLotteryMapper,
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+ List<AppGameLottery> list2 = appGameLotteryMapper.selectLeakLottery2(time);
|
|
|
+ if(null != list2 && list2.size() > 0) {
|
|
|
+ list2.forEach(e->{
|
|
|
+ if(null != e.getGameId() && StringUtils.isNotBlank( e.getGameDate())){
|
|
|
+ LambdaQueryWrapper<AppGameLottery> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper.eq(AppGameLottery::getGameId, e.getGameId());
|
|
|
+ queryWrapper.eq(AppGameLottery::getGameDate, e.getGameDate());
|
|
|
+ if(null == appGameLotteryMapper.selectOne(queryWrapper)){
|
|
|
+ AppGameLottery insert = new AppGameLottery();
|
|
|
+ BeanUtils.copyProperties(e,insert);
|
|
|
+ insert.setId(null);
|
|
|
+ insert.setIsLottery(0);//设置为未开奖
|
|
|
+ insertAppGameLottery(insert);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -155,6 +172,11 @@ public class AppGameLotteryServiceImpl extends ServiceImpl<AppGameLotteryMapper,
|
|
|
AppGameLottery history = appGameLotteryMapper.leakInfo(reslut.getGameId(),reslut.getGameDate());
|
|
|
if(null != history){
|
|
|
reslut.setGameLotterySucc(history.getGameLotterySucc());
|
|
|
+ }else{
|
|
|
+ AppGameLottery history2 = appGameLotteryMapper.leakInfo2(reslut.getGameId(),reslut.getGameDate());
|
|
|
+ if(null != history2){
|
|
|
+ reslut.setGameLotterySucc(history2.getGameLotterySucc());
|
|
|
+ }
|
|
|
}
|
|
|
return reslut;
|
|
|
}
|