|
@@ -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)
|
|
|
//用户的列表
|