dev-discount
胡锐 4 years ago
commit 9f0b3ac6b5
  1. 2
      hai-service/src/main/java/com/hai/service/impl/HighCouponCodeServiceImpl.java

@ -110,7 +110,7 @@ public class HighCouponCodeServiceImpl implements HighCouponCodeService {
@Override @Override
public Integer getStockCountByCoupon(Long couponId) { public Integer getStockCountByCoupon(Long couponId) {
HighCouponCodeExample example = new HighCouponCodeExample(); 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(); return highCouponCodeMapper.selectByExample(example).size();
} }

Loading…
Cancel
Save