夏文涛 преди 2 години
родител
ревизия
d4b97dfd2d
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      mhotel/src/com/happy/dao/impl/HouseNumberImplDao.java

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

@@ -97,14 +97,15 @@ public class HouseNumberImplDao implements HouseNumberDao {
     }
 
     /**
-     * »ñÈ¡Èëס·¿¼ä
+     * ??????
      */
     @Override
     public List<HouseNumber> queryCheckRoom(Booking book) {
         String sql = "select `id`,`house_id`,`number_name`,`create_id`,`create_date`,`modify_date`from\n" +
                      "(select * from house_number where house_id = :house_id and status != 0) a\n" +
                      "where not exists\n" +
-                     "(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 booking_id != :booking_id and `status` >1 and number_id = a.id group by number_id)";
+                     "(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 booking_id != :booking_id and `status` >1 and number_id = a.id group by number_id)" +
+                     "order by number_name asc";
         MapSqlParameterSource sps = new MapSqlParameterSource();
         sps.addValue("house_id", book.getHouseId());
         sps.addValue("booking_id", book.getId());