|
|
|
@ -110,7 +110,7 @@ public class HighCouponCodeServiceImpl implements HighCouponCodeService { |
|
|
|
|
@Override |
|
|
|
|
public Integer getStockCountByCoupon(Long couponId) { |
|
|
|
|
HighCouponCodeExample example = new HighCouponCodeExample(); |
|
|
|
|
example.createCriteria().andCouponIdEqualTo(couponId).andStatusEqualTo(1).andSalesEndTimeLessThan(new Date()); |
|
|
|
|
example.createCriteria().andCouponIdEqualTo(couponId).andStatusEqualTo(1).andSalesEndTimeGreaterThan(new Date()); |
|
|
|
|
return highCouponCodeMapper.selectByExample(example).size(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|