...
|
...
|
@@ -251,8 +251,8 @@ select a.*,b.source_content,b.enable_status,b.user_id chance_user_id,b.create_at |
|
|
select id msg_id,message content,source_type,source_id,is_read,create_at msg_time,chance_id,receive_user_id,sender_user_id from user_msg
|
|
|
where receive_user_id =? and (?=0 or id<?) and msg_type=?
|
|
|
)a left outer join chance b on a.chance_id = b.id
|
|
|
)a left outer join chance_data b on a.source_id = b.chance_id
|
|
|
order by id
|
|
|
)a left outer join chance_data b on a.chance_id = b.chance_id
|
|
|
order by id desc
|
|
|
LIMIT ?`
|
|
|
|
|
|
sqlCount := `select count(0)
|
...
|
...
|
|