提交 e8922bb8 authored 作者: douxy's avatar douxy

修改重复抽奖判定

上级 97ec0d2c
...@@ -93,7 +93,7 @@ public class LotteryCoreDaoImpl implements LotteryCoreDao { ...@@ -93,7 +93,7 @@ public class LotteryCoreDaoImpl implements LotteryCoreDao {
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); LotteryRecord lotteryRecord = lotteryMapper.selectOne(qw);
if (Objects.nonNull(lotteryRecord)){ if (Objects.nonNull(lotteryRecord) && lotteryRecord.getPrizeLevel() != null){
throw new ParamException(RCode.LOTTERY_RECORD_ERROR); throw new ParamException(RCode.LOTTERY_RECORD_ERROR);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论