Browse Source

评价回复页面接口显示时间格式化

lijie 2 years ago
parent
commit
d0d44f8729
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mhotel/src/com/happy/dao/impl/BookingCommentImplDao.java

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

@@ -34,7 +34,7 @@ public class BookingCommentImplDao implements BookingCommentDao {
 
 
     private String selectSql = "select " +
     private String selectSql = "select " +
             "a.id,a.comment_id,a.comment_parent_id,a.comment_name,a.booking_id,a.hotel_id,a.house_id,a.content,a.comment_status,a.score,a.score_ws," +
             "a.id,a.comment_id,a.comment_parent_id,a.comment_name,a.booking_id,a.hotel_id,a.house_id,a.content,a.comment_status,a.score,a.score_ws," +
-            "a.score_fw,a.score_ss,a.score_wz,a.create_id,a.create_username,a.create_date,a.modify_date,a.status,b.check_out_time as checkOutTime,c.user_name as createName,b.hotel_manager_id" +
+            "a.score_fw,a.score_ss,a.score_wz,a.create_id,a.create_username, DATE_FORMAT(a.create_date, '%Y-%m-%d %H:%i:%s') create_date, DATE_FORMAT(a.modify_date, '%Y-%m-%d %H:%i:%s') modify_date,a.status,DATE_FORMAT(b.check_out_time, '%Y-%m-%d %H:%i:%s') as checkOutTime,c.user_name as createName,b.hotel_manager_id" +
             " from booking_comment a" +
             " from booking_comment a" +
             " left join booking b on b.id = a.booking_id" +
             " left join booking b on b.id = a.booking_id" +
             " left join users c on c.id = a.create_id" +
             " left join users c on c.id = a.create_id" +