Browse Source

修改领券中心数量不对bug

liu 2 years ago
parent
commit
f1258a1770
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mhotel/src/com/happy/dao/impl/HotelCouponImplDao.java

+ 1 - 1
mhotel/src/com/happy/dao/impl/HotelCouponImplDao.java

@@ -237,7 +237,7 @@ public class HotelCouponImplDao implements HotelCouponDao {
         String sql="SELECT\n" +
                 "\t count(1)\n" +
                 "FROM\n" +
-                "\t`hotel_coupon` hc where hc.effective_start_date<:date and hc.effective_end_date>:date";
+                "\t`hotel_coupon` hc where hc.effective_start_date<:date and hc.effective_end_date>:date and hc.`status` = 1 ";
         MapSqlParameterSource sps = new MapSqlParameterSource();
         sps.addValue("date", date);
         return namedParameterJdbcTemplate.queryForInt(sql, sps);