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