|
@@ -44,7 +44,7 @@ public class BookingComplainImplDao implements BookingComplainDao {
|
|
|
" where a.status != 0 ";
|
|
" where a.status != 0 ";
|
|
|
|
|
|
|
|
private String selectLeftSql = "select " +
|
|
private String selectLeftSql = "select " +
|
|
|
- " bk.order_num,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" +
|
|
|
|
|
|
|
+ " bk.order_num,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,(SELECT bcp.progress_type FROM booking_complaint_progress bcp WHERE bcp.complaint_id = a.id ORDER BY bcp.create_date DESC LIMIT 1 ) AS status" +
|
|
|
" 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 "+
|