This commit is contained in:
zhaohengkun 2024-10-18 10:03:47 +08:00
parent 826fd38add
commit a40e1e29e7

View File

@ -162,13 +162,14 @@ public class CardCouponServiceImpl extends ServiceImpl<CardCouponMapper, CardCou
m1.put("createTimeStart", com.fuint.common.util.DateUtil.getTodayMidnight());
m1.put("createTimeEnd", com.fuint.common.util.DateUtil.getTomorrowMidnight());
m1.put("mtUserId", null);
List<CardCouponUser> list2 = cardCouponUserMapper.selectCardCouponUserList(m1);
//查询 优惠券 信息
CardCoupon card = cardCouponMapper.selectById(cardCouponUser.getCardCouponId());
if (card.getGetNumLimit() <= list.size()) {
return new ResponseObject(500, "领取失败,超出总领取上限", null);
return new ResponseObject(500, "领取失败,超出每人总领取上限", null);
}
if (card.getDayGetLimit() <= list2.size()) {