...
|
...
|
@@ -205,12 +205,12 @@ func GetChanceCommentMsg(uid, lastId int64, pageSize int, msgType int, v interfa |
|
|
sql := `select a.*,b.content commented_content,b.create_at commented_time,b.user_id commented_user_id from (
|
|
|
select a.*,b.images,b.speechs,b.videos from (
|
|
|
select a.*,b.source_content,b.enable_status,b.user_id chance_user_id,b.create_at,b.review_status from (
|
|
|
select id,message content,source_type,source_id,create_at comment_time from user_msg
|
|
|
select id,message content,source_type,source_id,is_read,create_at comment_time from user_msg
|
|
|
where receive_user_id =? and (?=0 or id<?) and msg_type=?
|
|
|
)a left outer join chance b on a.source_id = b.id and source_type=1
|
|
|
)a left outer join chance_data b on a.source_id = b.chance_id and source_type = 1
|
|
|
)a left outer join comment b on a.source_id = b.id and a.source_type=2
|
|
|
order by create_at desc
|
|
|
order by a.create_at desc
|
|
|
LIMIT ?`
|
|
|
|
|
|
sqlCount := `select count(0)
|
...
|
...
|
|