|
@@ -94,6 +94,7 @@ func (b MessaggeService) UserList(in *messagecenter.UserReq) (data *[]map[string
|
|
|
tm := time.Now()
|
|
|
if in.UserType == 2 {
|
|
|
var serviceSql string
|
|
|
+ //判断是分页列表还是聊天列表 聊天列表需要展示客服信息
|
|
|
if in.QueryType == 1 {
|
|
|
serviceSql = fmt.Sprintf(`UNION
|
|
|
(
|
|
@@ -103,6 +104,7 @@ func (b MessaggeService) UserList(in *messagecenter.UserReq) (data *[]map[string
|
|
|
b.nickname AS name,
|
|
|
b.headimage as headimg,
|
|
|
c.content,
|
|
|
+ c.type,
|
|
|
c.create_time,
|
|
|
a.unread as number,
|
|
|
a.timestamp
|
|
@@ -119,6 +121,7 @@ func (b MessaggeService) UserList(in *messagecenter.UserReq) (data *[]map[string
|
|
|
a.your_position_id AS id,
|
|
|
1 AS userType,
|
|
|
c.nickname AS name,
|
|
|
+ c.headimg,
|
|
|
d.content,
|
|
|
d.type
|
|
|
d.create_time,
|
|
@@ -139,6 +142,7 @@ func (b MessaggeService) UserList(in *messagecenter.UserReq) (data *[]map[string
|
|
|
b.name,
|
|
|
'' AS headimg,
|
|
|
d.content,
|
|
|
+ d.type,
|
|
|
d.create_time,
|
|
|
a.unread as number,
|
|
|
c.timestamp
|