|
@@ -31,10 +31,12 @@ public class BookingComplainImplDao implements BookingComplainDao {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private String selectSql = "select " +
|
|
private String selectSql = "select " +
|
|
|
- "a.id,a.booking_id,a.hotel_id,a.house_id,a.title,a.content,a.create_id,a.create_date,a.modify_date,a.status,h.h_name as house_name,h2.hname as hotel_name" +
|
|
|
|
|
|
|
+ "u.user_phone as complainPhone,m.corpn_phone as hotelPhone,a.id,a.booking_id,a.hotel_id,a.house_id,a.title,a.content,a.create_id,a.create_date,a.modify_date,a.status,h.h_name as house_name,h2.hname as hotel_name" +
|
|
|
" from booking_complaint a " +
|
|
" from booking_complaint a " +
|
|
|
" left join house h on a.house_id = h.id " +
|
|
" left join house h on a.house_id = h.id " +
|
|
|
" left join hotel h2 on a.hotel_id = h2.id "+
|
|
" left join hotel h2 on a.hotel_id = h2.id "+
|
|
|
|
|
+ " left join admin_manager m on h2.manager_id = m.id " +
|
|
|
|
|
+ " left join users u on a.create_id = u.id " +
|
|
|
" where a.status != 0 ";
|
|
" where a.status != 0 ";
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|