|
@@ -647,7 +647,7 @@ func (b MessaggeService) FindMessage(in *messagecenter.MessageReq) *[]map[string
|
|
|
"IF ( a.own_id = a.send_user_id, 0, a.send_user_id ) AS send_position_id,"+
|
|
|
"a.send_user_type,a.type AS itemType FROM %s a "+
|
|
|
"LEFT JOIN %s b ON a.messag_id = b.id "+
|
|
|
- "WHERE a.own_type = 2 AND a.own_id = %d "+
|
|
|
+ "WHERE a.own_type = 2 and a.iswithdraw = 0 AND a.own_id = %d "+
|
|
|
"AND a.chat_group_id = %d AND a.type IN ( 3, 6 ) %s "+
|
|
|
"ORDER BY a.create_time desc,a.id DESC "+
|
|
|
"LIMIT 0, %d",
|