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
5f758672
Commit
5f758672
authored
Dec 12, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周pk
parent
e62ef728
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
RankingList.php
application/index/controller/RankingList.php
+4
-3
RankingListService.php
application/index/service/RankingListService.php
+2
-2
No files found.
application/index/controller/RankingList.php
View file @
5f758672
...
...
@@ -32,10 +32,11 @@ class RankingList extends Basic{
*/
public
function
getRandKingList
(){
$params
=
$this
->
params
;
/*
$params = array(
/*
$params = array(
"position" => 1,//职称 1店长 2经理 3主任 4顾问 0新人
"pk_type" => 2//pk类型 1月pk 2周pk
);*/
"pk_type" => 1//pk类型 1月pk 2周pk
);
$this->siteId = 10001;*/
if
(
!
isset
(
$params
[
"position"
])
||
$params
[
"position"
]
<
0
||
$params
[
"position"
]
>
5
){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
...
...
application/index/service/RankingListService.php
View file @
5f758672
...
...
@@ -97,7 +97,7 @@ class RankingListService
}
$ids
=
rtrim
(
$ids
,
","
);
$param_now
[
"a.id"
]
=
array
(
"in"
,
$ids
);
$sort_arr
=
$this
->
getSort
(
$param_now
,
$
begin_time
,
$
end_time
,
$ids
);
$sort_arr
=
$this
->
getSort
(
$param_now
,
$
sort_begin_time
,
$sort_
end_time
,
$ids
);
$result
[
$index
]
=
$sort_arr
;
}
return
$result
;
...
...
@@ -156,7 +156,7 @@ class RankingListService
}
$ids
=
rtrim
(
$ids
,
","
);
$param_now
[
"a.id"
]
=
array
(
"in"
,
$ids
);
$sort_arr
=
$this
->
getStoreSort
(
$param_now
,
$
begin_time
,
$
end_time
,
$ids
);
$sort_arr
=
$this
->
getStoreSort
(
$param_now
,
$
sort_begin_time
,
$sort_
end_time
,
$ids
);
$result
[
$index
]
=
$sort_arr
;
}
return
$result
;
...
...
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