|
@@ -70,16 +70,18 @@ public class bookCommentAction extends BaseController implements ServletRequestA
|
|
|
}
|
|
}
|
|
|
if (checkoutStartTime != null){
|
|
if (checkoutStartTime != null){
|
|
|
s1.append(" and DATE_FORMAT(b.check_out_time, '%Y-%m-%d') >= '").append(checkoutStartTime).append("' ");
|
|
s1.append(" and DATE_FORMAT(b.check_out_time, '%Y-%m-%d') >= '").append(checkoutStartTime).append("' ");
|
|
|
- s2.append(" and DATE_FORMAT(a.check_out_time, '%Y-%m-%d') >= '").append(checkoutStartTime).append("' ");
|
|
|
|
|
|
|
+ s2.append(" and DATE_FORMAT(a.checkOutTime, '%Y-%m-%d') >= '").append(checkoutStartTime).append("' ");
|
|
|
}
|
|
}
|
|
|
if (checkoutEndTime != null){
|
|
if (checkoutEndTime != null){
|
|
|
s1.append(" and DATE_FORMAT(b.check_out_time, '%Y-%m-%d') <= '").append(checkoutEndTime).append("' ");
|
|
s1.append(" and DATE_FORMAT(b.check_out_time, '%Y-%m-%d') <= '").append(checkoutEndTime).append("' ");
|
|
|
- s2.append(" and DATE_FORMAT(a.check_out_time, '%Y-%m-%d') <= '").append(checkoutEndTime).append("' ");
|
|
|
|
|
|
|
+ s2.append(" and DATE_FORMAT(a.checkOutTime, '%Y-%m-%d') <= '").append(checkoutEndTime).append("' ");
|
|
|
}
|
|
}
|
|
|
if (status != null){
|
|
if (status != null){
|
|
|
s1.append(" and a.comment_status = ").append(status).append(" ");
|
|
s1.append(" and a.comment_status = ").append(status).append(" ");
|
|
|
s2.append(" and a.comment_status = ").append(status).append(" ");
|
|
s2.append(" and a.comment_status = ").append(status).append(" ");
|
|
|
}
|
|
}
|
|
|
|
|
+ System.out.println(s1.toString());
|
|
|
|
|
+ System.out.println(s2.toString());
|
|
|
IPage<BookingComment> list = bookingCommentService.queryPage(s1.toString(),s2.toString(), page, rows);
|
|
IPage<BookingComment> list = bookingCommentService.queryPage(s1.toString(),s2.toString(), page, rows);
|
|
|
if(list != null && !"".equals(list)){
|
|
if(list != null && !"".equals(list)){
|
|
|
resultJson.put("message", "查询分页成功");
|
|
resultJson.put("message", "查询分页成功");
|