|
|
@@ -143,7 +143,7 @@ public class BookingComplainImplDao implements BookingComplainDao {
|
|
|
"\t( SELECT bcp.progress_type FROM booking_complaint_progress bcp WHERE bcp.complaint_id = bc.id ORDER BY bcp.create_date DESC LIMIT 1 ) AS progressType \n" +
|
|
|
"FROM\n" +
|
|
|
"\t`booking_complaint` bc\n" +
|
|
|
- "\tLEFT JOIN booking b ON b.id = bc.booking_id AND b.status_del=1 LEFT JOIN ( SELECT fi.link_id, GROUP_CONCAT( fi.url ) AS url FROM file_info fi GROUP BY fi.link_id ) fi2 ON fi2.link_id = bc.id where bc.create_id=:usersId limit :start,:rows )bc2 ORDER BY bc2.progressType asc ,bc2.dateTime DESC ";
|
|
|
+ "\tLEFT JOIN booking b ON b.id = bc.booking_id AND b.status_del=1 LEFT JOIN ( SELECT fi.link_id, GROUP_CONCAT( fi.url ) AS url FROM file_info fi GROUP BY fi.link_id ) fi2 ON fi2.link_id = bc.house_id where bc.create_id=:usersId limit :start,:rows )bc2 ORDER BY bc2.progressType asc ,bc2.dateTime DESC ";
|
|
|
MapSqlParameterSource sps = new MapSqlParameterSource();
|
|
|
sps.addValue("start", start);
|
|
|
sps.addValue("rows", rows);
|
|
|
@@ -160,7 +160,7 @@ public class BookingComplainImplDao implements BookingComplainDao {
|
|
|
"\t count(1) \n" +
|
|
|
"FROM\n" +
|
|
|
"\t`booking_complaint` bc\n" +
|
|
|
- "\tLEFT JOIN booking b ON b.id = bc.booking_id AND b.status_del=1 LEFT JOIN ( SELECT fi.link_id, GROUP_CONCAT( fi.url ) AS url FROM file_info fi GROUP BY fi.link_id ) fi2 ON fi2.link_id = bc.id where bc.create_id=:usersId ";
|
|
|
+ "\tLEFT JOIN booking b ON b.id = bc.booking_id AND b.status_del=1 LEFT JOIN ( SELECT fi.link_id, GROUP_CONCAT( fi.url ) AS url FROM file_info fi GROUP BY fi.link_id ) fi2 ON fi2.link_id = bc.house_id where bc.create_id=:usersId ";
|
|
|
|
|
|
MapSqlParameterSource sps = new MapSqlParameterSource();
|
|
|
sps.addValue("usersId", usersId);
|