|
|
@@ -231,7 +231,7 @@ public class HotelImplDao implements HotelDao {
|
|
|
"left join (select id,manager_id,hotel_township,hotel_name,type,status,link_pro_url from admin_manager ) c on a.manager_id = c.id " +
|
|
|
"LEFT JOIN ( SELECT id,name as hotel_township_name,status FROM hotel_dict GROUP BY id) d ON d.id = c.hotel_township " +
|
|
|
"LEFT JOIN ( SELECT id,name as h_type_name FROM hotel_dict GROUP BY id) e ON e.id = a.htype " +
|
|
|
- " WHERE hstatus = 1 and a.status=1 and c.status = 1 "+sqlx+" ORDER BY booking_num DESC limit :start,:rows ";
|
|
|
+ " WHERE hstatus = 1 and a.status=1 and c.status = 1 and c.type in ('2','3') "+sqlx+" ORDER BY booking_num DESC limit :start,:rows ";
|
|
|
MapSqlParameterSource sps = new MapSqlParameterSource();
|
|
|
sps.addValue("start", start);
|
|
|
sps.addValue("rows", rows);
|
|
|
@@ -253,7 +253,7 @@ public class HotelImplDao implements HotelDao {
|
|
|
"left join (select id,manager_id,hotel_township,hotel_name,type,status,link_pro_url from admin_manager ) c on a.manager_id = c.id " +
|
|
|
"LEFT JOIN ( SELECT id,name as hotel_township_name,status FROM hotel_dict GROUP BY id) d ON d.id = c.hotel_township " +
|
|
|
"LEFT JOIN ( SELECT id,name as h_type_name FROM hotel_dict GROUP BY id) e ON e.id = a.htype " +
|
|
|
- " WHERE hstatus = 1 and a.status=1 and c.status = 1 "+sqlx;
|
|
|
+ " WHERE hstatus = 1 and a.status=1 and c.status = 1 and c.type in ('2','3') "+sqlx;
|
|
|
MapSqlParameterSource sps = new MapSqlParameterSource();
|
|
|
return namedParameterJdbcTemplate.queryForInt(sql, sps);
|
|
|
}
|