diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/service/impl/TbUserCouponsServiceImpl.java b/src/main/java/com/chaozhanggui/system/cashierservice/service/impl/TbUserCouponsServiceImpl.java index 41744c4..bcf02ec 100644 --- a/src/main/java/com/chaozhanggui/system/cashierservice/service/impl/TbUserCouponsServiceImpl.java +++ b/src/main/java/com/chaozhanggui/system/cashierservice/service/impl/TbUserCouponsServiceImpl.java @@ -52,11 +52,11 @@ public class TbUserCouponsServiceImpl implements TbUserCouponsService { List tbShopUsers = tbShopUserMapper.selectByUserId(couponDto.getUserId().toString(), couponDto.getShopId()==null?null:couponDto.getShopId().toString()); if (!CollectionUtils.isEmpty(tbShopUsers)) { tbShopUsers.forEach(s -> { - if (couponDto.getStatus()==null || (couponDto.getStatus() != null && couponDto.getStatus() != 0)) { + if (couponDto.getStatus()==null || (couponDto.getStatus() != null && couponDto.getStatus() == 0)) { List unuseCoupon = inRecordMapper.queryVipPro(s.getMemberId().intValue(), s.getShopId().intValue()); result.addAll(unuseCoupon); } - if (couponDto.getStatus()==null || (couponDto.getStatus() != null && couponDto.getStatus() != 1)) { + if (couponDto.getStatus()==null || (couponDto.getStatus() != null && couponDto.getStatus() == 1)) { List useCoupon = outRecordMapper.queryVipPro(s.getMemberId().intValue(), s.getShopId().intValue()); result.addAll(useCoupon); }