Browse Source

修改bug

raojiaolong@163.com 2 years ago
parent
commit
40578be6a8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mhotel/src/com/happy/dao/impl/HotelImplDao.java

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

@@ -171,7 +171,7 @@ public class HotelImplDao implements HotelDao {
         int start = (page - 1) * rows;// 每页的起始下标
         String sql = "SELECT a.*,b.min_price,c.hotel_township,d.hotel_township_name, e.h_type_name,c.hotel_name FROM `hotel` a " +
                 "left join (select manager_id,min(price) min_price from house where status=1 group by manager_id) b on a.manager_id = b.manager_id " +
-                "left join (select id,manager_id,hotel_township,hotel_name,type from admin_manager ) c on a.manager_id = c.id " +
+                "left join (select id,manager_id,hotel_township,hotel_name,type,status 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 id DESC limit :start,:rows ";