提交 9f2dba51 authored 作者: 窦馨雨's avatar 窦馨雨

合并分支 'dxy' 到 'qa'

修改重复抽奖判定 查看合并请求 !124
...@@ -92,8 +92,8 @@ public class LotteryCoreDaoImpl implements LotteryCoreDao { ...@@ -92,8 +92,8 @@ public class LotteryCoreDaoImpl implements LotteryCoreDao {
LambdaQueryWrapper<LotteryRecord> qw = new LambdaQueryWrapper<>(); LambdaQueryWrapper<LotteryRecord> qw = new LambdaQueryWrapper<>();
qw.eq(LotteryRecord::getWxOpenId,record.getWxOpenId()); qw.eq(LotteryRecord::getWxOpenId,record.getWxOpenId());
qw.eq(LotteryRecord::getCreateDate,FORMAT.format(new Date())); qw.eq(LotteryRecord::getCreateDate,FORMAT.format(new Date()));
LotteryRecord lotteryRecord = lotteryMapper.selectOne(qw); List<LotteryRecord> lotteryRecordList = lotteryMapper.selectList(qw);
if (Objects.nonNull(lotteryRecord) && lotteryRecord.getPrizeLevel() != null){ if (lotteryRecordList.size() > 1){
throw new ParamException(RCode.LOTTERY_RECORD_ERROR); throw new ParamException(RCode.LOTTERY_RECORD_ERROR);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论