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
6d82a647
Commit
6d82a647
authored
Nov 19, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huancun
parent
2bd10374
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
AAgents.php
application/model/AAgents.php
+2
-2
No files found.
application/model/AAgents.php
View file @
6d82a647
...
@@ -437,11 +437,11 @@ class AAgents extends BaseModel
...
@@ -437,11 +437,11 @@ class AAgents extends BaseModel
$str_ids
=
" and a.id in (
$ids
)"
;
$str_ids
=
" and a.id in (
$ids
)"
;
}
}
$sql
=
"select aa.id,aa.store_name,aa.name,aa.phone,aa.performance from
$sql
=
"select aa.id,aa.store_name,aa.name,aa.phone,aa.performance from
(select a.id,c.store_name,a.name,a.phone,0 as performance from a_agents a
(select a.id,c.store_name,a.name,a.phone,0
.00
as performance from a_agents a
left join a_store c on a.store_id=c.id
left join a_store c on a.store_id=c.id
where a.position=
$position
and a.site_id=
$siteId
and a.status in (0,3)
$str_ids
)
where a.position=
$position
and a.site_id=
$siteId
and a.status in (0,3)
$str_ids
)
as aa left join
as aa left join
(select a.id,c.store_name,a.name,a.phone,0 as performance from a_agents a
(select a.id,c.store_name,a.name,a.phone,0
.00
as performance from a_agents a
left join t_agent_total b on a.id=b.agent_id left join a_store c on a.store_id=c.id
left join t_agent_total b on a.id=b.agent_id left join a_store c on a.store_id=c.id
where b.total_time BETWEEN '
$startTime
' and '
$endTime
'and a.status in (0,3)
$str_ids
GROUP BY b.agent_id )
where b.total_time BETWEEN '
$startTime
' and '
$endTime
'and a.status in (0,3)
$str_ids
GROUP BY b.agent_id )
as bb on aa.id = bb.id where bb.id is null"
;
as bb on aa.id = bb.id where bb.id is null"
;
...
...
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