Commit 1c6d856c authored by clone's avatar clone

1

parent bf7855b4
This diff is collapsed.
......@@ -80,8 +80,8 @@ class ChatRelation extends Model
$date = $this->field($field)
->alias("a")
->join("chat_user b","b.only_id != '".$only_id."' and (a.to_id=b.only_id or a.from_id=b.only_id)","left")
->join("a_agents c","b.type = 1 and b.user_id = c.id","left")
->join("u_users d","b.type =2 and b.user_id=d.id","left")
/* ->join("a_agents c","b.type = 1 and b.user_id = c.id","left")
->join("u_users d","b.type =2 and b.user_id=d.id","left")*/
->where($where_)
->whereOr(function ($query) use ($whereOr_) {
$query->where($whereOr_);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment