|
@@ -191,7 +191,7 @@ func (b MessaggeService) UserList(in *messagecenter.UserReq) (data *[]map[string
|
|
|
FROM
|
|
|
socialize_customer_service_user a
|
|
|
INNER JOIN base_user b ON ( a.customer_service_id = %d AND a.user_id = b.id %s %s)
|
|
|
- INNER JOIN socialize_summary c ON ( a.ent_id = c.ent_id AND a.user_id = c.user_id, %s)`, in.EntUserId, filtrationSql, phoneSql,
|
|
|
+ INNER JOIN socialize_summary c ON ( a.ent_id = c.ent_id AND a.user_id = c.user_id %s)`, in.EntUserId, filtrationSql, phoneSql,
|
|
|
strings.ReplaceAll(timeSql, "a.", "c."))
|
|
|
var restrictionSql string
|
|
|
switch in.IsArtificial {
|
|
@@ -278,8 +278,8 @@ func (b MessaggeService) ConversationList(in *messagecenter.ConversationReq) (da
|
|
|
b.headimg
|
|
|
FROM
|
|
|
socialize_customer_service_user a
|
|
|
- INNER JOIN base_user b ON ( a.customer_service_id = %d AND a.user_id = b.id %s %s)
|
|
|
- INNER JOIN socialize_summary c ON ( a.ent_id = c.ent_id AND a.user_id = c.user_id, %s)`, in.EntUserId, filtrationSql)
|
|
|
+ INNER JOIN base_user b ON ( a.customer_service_id = %d AND a.user_id = b.id %s)
|
|
|
+ INNER JOIN socialize_summary c ON ( a.ent_id = c.ent_id AND a.user_id = c.user_id)`, in.EntUserId, filtrationSql)
|
|
|
sqlStr = aiSql + " UNION ALL " + serviceSql
|
|
|
}
|
|
|
|