Browse Source

投诉详情显示订单号

liu 2 years ago
parent
commit
325271c66c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mhotel/src/com/happy/dao/impl/BookingComplainImplDao.java

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

@@ -166,13 +166,13 @@ public class BookingComplainImplDao implements BookingComplainDao {
     @Override
     @Override
     public ProgressDetailsVo progressDetails(String complaintId) {
     public ProgressDetailsVo progressDetails(String complaintId) {
         String sql="SELECT\n" +
         String sql="SELECT\n" +
-                "\tbc.booking_id as bookingId,\n" +
+                "\tb.order_num as bookingId,\n" +
                 "\tbc.id as complaintId,\n" +
                 "\tbc.id as complaintId,\n" +
                 "\tbc.title,\n" +
                 "\tbc.title,\n" +
                 "\tbc.content,\n" +
                 "\tbc.content,\n" +
                 "\tbc.create_date as dateTime\n" +
                 "\tbc.create_date as dateTime\n" +
                 "FROM\n" +
                 "FROM\n" +
-                "\t`booking_complaint` bc\n" +
+                "\t`booking_complaint` bc LEFT JOIN booking b on b.id=bc.booking_id and b.status_del=1  \n" +
                 " where bc.id=:complaintId and bc.`status`=1";
                 " where bc.id=:complaintId and bc.`status`=1";
         MapSqlParameterSource sps = new MapSqlParameterSource();
         MapSqlParameterSource sps = new MapSqlParameterSource();
         sps.addValue("complaintId", complaintId);
         sps.addValue("complaintId", complaintId);