Parcourir la source

用户列表最后一条信息修改

WH01243 il y a 3 ans
Parent
commit
f2fe78f719
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      service/message_mail_box.go

+ 1 - 1
service/message_mail_box.go

@@ -43,7 +43,7 @@ func (b MessaggeService) UserList(in *messagecenter.UserReq) (data *[]map[string
 		data = util.Mysql.SelectBySql(userSql, in.NewUserId)
 		userMessageId := util.Inhandle(data)
 		//客服最后一次信息查询
-		customerSql := " SELECT   max( c.id )   as messageId  FROM   socialize_message_mailbox c   LEFT JOIN socialize_chat_session d ON  IF   ( c.send_user_type = 1, d.id = c.send_user_id, d.id = c.receive_user_id )   WHERE   c.own_id = ?    AND ( c.type = 4 OR c.type = 5  and c.type=6 or  c.type=7 )    AND c.own_type = 2  and   d.user_id=c.own_id  GROUP BY   d.ent_id  "
+		customerSql := " SELECT   max( c.id )   as messageId  FROM   socialize_message_mailbox c   LEFT JOIN socialize_chat_session d ON  IF   ( c.send_user_type = 1, d.id = c.send_user_id, d.id = c.receive_user_id )   WHERE   c.own_id = ?    AND ( c.type = 4 OR c.type = 5  or c.type=6 or  c.type=7 )    AND c.own_type = 2  and   d.user_id=c.own_id  GROUP BY   d.ent_id  "
 		data = util.Mysql.SelectBySql(customerSql, in.NewUserId)
 		customerMessageId := util.Inhandle(data)
 		//用户的列表