'提交代码'

dev-discount
199901012 4 years ago
parent cc96571768
commit e8fbd711ee
  1. 2
      hai-service/src/main/java/com/hai/service/impl/HighCouponCodeServiceImpl.java

@ -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();
}

Loading…
Cancel
Save