|
@@ -43,7 +43,7 @@ public class IDCImplDao implements IDCDao {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public List<IDCHotelEto> getHotelData() {
|
|
public List<IDCHotelEto> getHotelData() {
|
|
|
- String sql = "select c.name hposition,count(1) hotelNum from hotel a left join admin_manager b on a.manager_id=b.id left join hotel_dict c on c.id = b.hotel_township group by c.id order by count(1) DESC";
|
|
|
|
|
|
|
+ String sql = "select c.name hposition,count(1) hotelNum from hotel a left join admin_manager b on a.manager_id=b.id left join hotel_dict c on c.id = b.hotel_township where a.status = 1 and c.name is not null group by c.id order by count(1) DESC";
|
|
|
List<IDCHotelEto> list = null;
|
|
List<IDCHotelEto> list = null;
|
|
|
try{
|
|
try{
|
|
|
list = namedParameterJdbcTemplate.query(sql, new BeanPropertyRowMapper<>(IDCHotelEto.class));
|
|
list = namedParameterJdbcTemplate.query(sql, new BeanPropertyRowMapper<>(IDCHotelEto.class));
|