1
This commit is contained in:
parent
826fd38add
commit
a40e1e29e7
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user