|
|
@@ -511,6 +511,7 @@ public class BookingCommentImplDao implements BookingCommentDao {
|
|
|
public List<PersonageCommentVo> personageNotCommentPage(String usersId, int page, int rows) {
|
|
|
int start = (page - 1) * rows;// ÿҳµÄÆðʼÏÂ
|
|
|
String sql = "SELECT\n" +
|
|
|
+ "\thd.name AS town,\n"+
|
|
|
"\tb.id AS id,\n" +
|
|
|
"\tbc.id as bookingCommentId ,b.hotel_id as hotelId,b.house_id as houseId,\n" +
|
|
|
"\tb.hotel_name AS hotelName,\n" +
|
|
|
@@ -524,6 +525,8 @@ public class BookingCommentImplDao implements BookingCommentDao {
|
|
|
"\t`booking` b\n" +
|
|
|
"\tLEFT JOIN booking_comment bc on b.id=bc.booking_id AND bc.comment_parent_id IS NULL AND bc.`status`!=0\n" +
|
|
|
"\t\n" +
|
|
|
+ "\tLEFT JOIN hotel_dict hd on hd.code = 10 and hd.id = b.hotel_township\n"+
|
|
|
+ "\t\n" +
|
|
|
"\tLEFT JOIN users u on u.id =b.create_userid LEFT JOIN file_info fi on fi.link_id=b.house_id\n" +
|
|
|
"\t\n" +
|
|
|
"\tWHERE bc.id IS NULL AND u.id= :usersId AND b.order_status=5 AND b.status_del=1 ORDER BY b.order_start_time DESC LIMIT :start,:rows";
|
|
|
@@ -552,6 +555,7 @@ public class BookingCommentImplDao implements BookingCommentDao {
|
|
|
public List<PersonageCommentVo> personageCommentPage(String usersId, int page, int rows) {
|
|
|
int start = (page - 1) * rows;// ÿҳµÄÆðʼÏÂ
|
|
|
String sql = "SELECT\n" +
|
|
|
+ "\thd.name AS town,\n"+
|
|
|
"\tb.id AS id,\n" +
|
|
|
"\tbc.id AS bookingCommentId,\n" +
|
|
|
"\tb.hotel_name AS hotelName,\n" +
|
|
|
@@ -566,6 +570,7 @@ public class BookingCommentImplDao implements BookingCommentDao {
|
|
|
"\tAND bc.comment_parent_id IS NULL \n" +
|
|
|
"\tAND bc.`status` = 1\n" +
|
|
|
"\tLEFT JOIN users u ON u.id = b.create_userid LEFT JOIN file_info fi on fi.link_id=b.house_id \n" +
|
|
|
+ "\tLEFT JOIN hotel_dict hd on hd.code = 10 and hd.id = b.hotel_township\n"+
|
|
|
"WHERE\n" +
|
|
|
"\tu.id = :usersId \n" +
|
|
|
"\tAND b.order_status = 5 \n" +
|
|
|
@@ -681,6 +686,7 @@ public class BookingCommentImplDao implements BookingCommentDao {
|
|
|
public List<PersonageCommentVo> auditPageComment(String usersId, int page, int rows) {
|
|
|
int start = (page - 1) * rows;// ÿҳµÄÆðʼÏÂ
|
|
|
String sql = "SELECT\n" +
|
|
|
+ "\thd.name AS town,\n"+
|
|
|
"\tb.id AS id,\n" +
|
|
|
"\tbc.id AS bookingCommentId,\n" +
|
|
|
"\tb.hotel_name AS hotelName,\n" +
|
|
|
@@ -695,6 +701,7 @@ public class BookingCommentImplDao implements BookingCommentDao {
|
|
|
"\tAND bc.comment_parent_id IS NULL \n" +
|
|
|
"\tAND bc.`status` = 2\n" +
|
|
|
"\tLEFT JOIN users u ON u.id = b.create_userid LEFT JOIN file_info fi on fi.link_id=b.house_id \n" +
|
|
|
+ "\tLEFT JOIN hotel_dict hd on hd.code = 10 and hd.id = b.hotel_township\n"+
|
|
|
"WHERE\n" +
|
|
|
"\tu.id = :usersId \n" +
|
|
|
"\tAND b.order_status = 5 \n" +
|
|
|
@@ -733,6 +740,7 @@ public class BookingCommentImplDao implements BookingCommentDao {
|
|
|
public List<PersonageCommentVo> refuseAuditPageComment(String usersId, int page, int rows) {
|
|
|
int start = (page - 1) * rows;// ÿҳµÄÆðʼÏÂ
|
|
|
String sql = "SELECT\n" +
|
|
|
+ "\thd.name AS town,\n"+
|
|
|
"\tb.id AS id,\n" +
|
|
|
"\tbc.id AS bookingCommentId,\n" +
|
|
|
"\tb.hotel_name AS hotelName,\n" +
|
|
|
@@ -747,6 +755,7 @@ public class BookingCommentImplDao implements BookingCommentDao {
|
|
|
"\tAND bc.comment_parent_id IS NULL \n" +
|
|
|
"\tAND bc.`status` = 3\n" +
|
|
|
"\tLEFT JOIN users u ON u.id = b.create_userid LEFT JOIN file_info fi on fi.link_id=b.house_id LEFT JOIN workflow w ON bc.id=w.link_id \n" +
|
|
|
+ "\tLEFT JOIN hotel_dict hd on hd.code = 10 and hd.id = b.hotel_township\n"+
|
|
|
"WHERE\n" +
|
|
|
"\tu.id = :usersId \n" +
|
|
|
"\tAND b.order_status = 5 \n" +
|