Browse Source

过滤不在admin_manager中的民宿

raojiaolong@163.com 2 years ago
parent
commit
7e22763b97
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

@@ -174,7 +174,7 @@ public class HotelImplDao implements HotelDao {
                 "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,name as hotel_township_name  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 status=1 "+sqlx+" ORDER BY id DESC limit :start,:rows ";
+                " WHERE status=1 and b.manager_id is not null"+sqlx+" ORDER BY id DESC limit :start,:rows ";
         MapSqlParameterSource sps = new MapSqlParameterSource();
         sps.addValue("start", start);
         sps.addValue("rows", rows);