瀏覽代碼

展示所有民宿接口,修改订单详情显示已删除房间问题

lijie 2 年之前
父節點
當前提交
ff99b08514

+ 1 - 1
mhotel/src/com/happy/action/hotelAction.java

@@ -479,7 +479,7 @@ public class hotelAction extends ActionSupport implements ServletRequestAware {
      * 描述:查询所有民宿信息列表
      *
      */
-    public String queryAllHotel(){
+    public String queryListhotel(){
         JSONObject resultJson = new JSONObject();
         List<Hotel> list = hotelService.queryList("");
         if (list != null){

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

@@ -79,7 +79,7 @@ public class HouseNumberImplDao implements HouseNumberDao {
     @Override
     public List<HouseNumber> queryHouseStatus(Booking book) {
         String sql = "select `id`,`house_id`,`number_name`,`create_id`,`create_date`,`modify_date`,IF(b.number_id is not null, 3, `status`) as `status` from \n" +
-                "(select * from house_number where house_id = :house_id) a\n" +
+                "(select * from house_number where house_id = :house_id and status != 0) a\n" +
                 "left join (select number_id from house_number_status where DATE_FORMAT(set_date,'%Y-%m-%d') >= :order_start_time and DATE_FORMAT(set_date,'%Y-%m-%d') <= :order_end_time and `status` != 1 group by number_id) b on a.id = b.number_id";
         MapSqlParameterSource sps = new MapSqlParameterSource();
         sps.addValue("house_id", book.getHouseId());