Browse Source

更新文件 AppImplDao.java

陈士柏 2 years ago
parent
commit
925eeb84a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mhotel/src/com/happy/dao/impl/AppImplDao.java

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

@@ -518,7 +518,7 @@ public class AppImplDao implements AppDao {
     }
     }
 
 
     public List<Hotel> queryMs(String town){
     public List<Hotel> queryMs(String town){
-        String sql = "select a.*,b.name from (select a.*,b.hotel_township from `hotel` a left join `admin_manager` b  on a.`manager_id`=b.`manager_id` where a.`status`=1 ) a left join `hotel_dict` b on a.hotel_township=b.`id` where b.name=:town ";
+        String sql = "select a.*,b.name from (select a.*,b.hotel_township from `hotel` a left join `admin_manager` b  on a.`manager_id`=b.`manager_id` where a.`status`=1 ) a right join `hotel_dict` b on a.hotel_township=b.`id` where b.name=:town ";
         MapSqlParameterSource sps = new MapSqlParameterSource();
         MapSqlParameterSource sps = new MapSqlParameterSource();
         sps.addValue("town", town);
         sps.addValue("town", town);
         List<Hotel> list = namedParameterJdbcTemplate.query(sql, sps,
         List<Hotel> list = namedParameterJdbcTemplate.query(sql, sps,