Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
00a55cc7
Commit
00a55cc7
authored
Jul 19, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
65254ff6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ChatRelation.php
application/model/ChatRelation.php
+3
-3
No files found.
application/model/ChatRelation.php
View file @
00a55cc7
...
@@ -80,15 +80,15 @@ class ChatRelation extends Model
...
@@ -80,15 +80,15 @@ class ChatRelation extends Model
$date
=
$this
->
field
(
$field
)
$date
=
$this
->
field
(
$field
)
->
alias
(
"a"
)
->
alias
(
"a"
)
->
join
(
"chat_user b"
,
"a.to_id != '"
.
$only_id
.
"' and a.to_id=b.only_id or a.from_id=b.only_id"
,
"left"
)
->
join
(
"chat_user b"
,
"a.to_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.id = c.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.id=d.id"
,
"left"
)
->
join
(
"u_users d"
,
"b.type =2 and b.
user_
id=d.id"
,
"left"
)
->
where
(
$where_
)
->
where
(
$where_
)
->
whereOr
(
function
(
$query
)
use
(
$whereOr_
)
{
->
whereOr
(
function
(
$query
)
use
(
$whereOr_
)
{
$query
->
where
(
$whereOr_
);
$query
->
where
(
$whereOr_
);
})
})
->
group
(
"a.to_id,a.from_id"
)
->
group
(
"a.to_id,a.from_id"
)
->
select
();
->
select
();
//
echo $this->getLastSql();
//
echo $this->getLastSql();
return
$date
;
return
$date
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment