|
|
@@ -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());
|