Browse Source

投诉列表添加投诉人电话,酒店电话

lijie 2 years ago
parent
commit
67f79d377c

+ 4 - 0
mhotel/src/com/happy/Model/BookingComplaint.java

@@ -31,5 +31,9 @@ public class BookingComplaint {
 
     private String hotelName; //酒店名称名称
 
+    private String complainPhone; // 投诉人电话
+
+    private String hotelPhone; //酒店电话
+
     List<FileInfo> fileInfos;// 附件
 }

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

@@ -31,10 +31,12 @@ public class BookingComplainImplDao implements BookingComplainDao {
     }
 
     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 " +
             " left join house h on a.house_id = h.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 ";
 
     @Override