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
398a6a14
Commit
398a6a14
authored
Nov 14, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pk
parent
ab1eaeab
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
RankingList.php
application/index/controller/RankingList.php
+1
-1
AAgents.php
application/model/AAgents.php
+3
-5
No files found.
application/index/controller/RankingList.php
View file @
398a6a14
...
...
@@ -23,7 +23,7 @@ class RankingList extends Basic{
public
function
getRandKingList
(){
$params
=
$this
->
params
;
/*
$params["position"] = 1;
/*
$params["position"] = 1;
$this->siteId = 10001;*/
if
(
!
isset
(
$params
[
"position"
])
||
$params
[
"position"
]
<
0
||
$params
[
"position"
]
>
5
){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
...
...
application/model/AAgents.php
View file @
398a6a14
...
...
@@ -433,19 +433,17 @@ class AAgents extends BaseModel
}
public
function
getAgentListByPk1
(
$siteId
,
$position
,
$startTime
,
$endTime
,
$ids
){
$str_ids
=
" "
;
$str_ids1
=
" "
;
if
(
$ids
){
$str_ids
=
" and id in (
$ids
)"
;
$str_ids1
=
" 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
(select a.id,c.store_name,a.name,a.phone,0 as performance from a_agents a
left join a_store c on a.store_id=c.id
where
position=
$position
and site_id=
$siteId
and
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
(select a.id,c.store_name,a.name,a.phone,0 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
where b.total_time BETWEEN '
$startTime
' and '
$endTime
'and a.status in (0,3)
$str_ids
1
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"
;
$data
=
Db
::
table
(
$this
->
table
)
->
query
(
$sql
);
//echo $this->getLastSql();
...
...
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