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
6311256d
Commit
6311256d
authored
Dec 03, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分区调整统计三个月业绩排序
parent
6548ee14
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
RankingList.php
application/index/controller/RankingList.php
+2
-2
RankingListService.php
application/index/service/RankingListService.php
+2
-2
No files found.
application/index/controller/RankingList.php
View file @
6311256d
...
@@ -31,8 +31,8 @@ class RankingList extends Basic{
...
@@ -31,8 +31,8 @@ class RankingList extends Basic{
*/
*/
public
function
getRandKingList
(){
public
function
getRandKingList
(){
$params
=
$this
->
params
;
$params
=
$this
->
params
;
/*
$params["position"] = 1;//职称 1店长 2经理 3主任 4顾问 0新人
$params
[
"position"
]
=
1
;
//职称 1店长 2经理 3主任 4顾问 0新人
$this->siteId = 10001;
*/
$this
->
siteId
=
10001
;
if
(
!
isset
(
$params
[
"position"
])
||
$params
[
"position"
]
<
0
||
$params
[
"position"
]
>
5
){
if
(
!
isset
(
$params
[
"position"
])
||
$params
[
"position"
]
<
0
||
$params
[
"position"
]
>
5
){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
...
...
application/index/service/RankingListService.php
View file @
6311256d
...
@@ -46,7 +46,7 @@ class RankingListService
...
@@ -46,7 +46,7 @@ class RankingListService
//todo 2.根据上月的业绩排行获取本月业绩排行,
//todo 2.根据上月的业绩排行获取本月业绩排行,
//todo 3.根据此职称的总经纪人数分组
//todo 3.根据此职称的总经纪人数分组
$begin_time
=
date
(
'Y-m-01 00:00:00'
,
strtotime
(
'-
1
month'
));
$begin_time
=
date
(
'Y-m-01 00:00:00'
,
strtotime
(
'-
3
month'
));
$end_time
=
date
(
"Y-m-d 23:59:59"
,
strtotime
(
-
date
(
'd'
)
.
'day'
));
$end_time
=
date
(
"Y-m-d 23:59:59"
,
strtotime
(
-
date
(
'd'
)
.
'day'
));
$params
[
"a.site_id"
]
=
$siteId
;
$params
[
"a.site_id"
]
=
$siteId
;
$params
[
"a.position"
]
=
$position
;
$params
[
"a.position"
]
=
$position
;
...
@@ -135,7 +135,7 @@ class RankingListService
...
@@ -135,7 +135,7 @@ class RankingListService
*/
*/
public
function
StoreRankingList
(
$siteId
){
public
function
StoreRankingList
(
$siteId
){
$begin_time
=
date
(
'Y-m-01 00:00:00'
,
strtotime
(
'-
1
month'
));
$begin_time
=
date
(
'Y-m-01 00:00:00'
,
strtotime
(
'-
3
month'
));
$end_time
=
date
(
"Y-m-d 23:59:59"
,
strtotime
(
-
date
(
'd'
)
.
'day'
));
$end_time
=
date
(
"Y-m-d 23:59:59"
,
strtotime
(
-
date
(
'd'
)
.
'day'
));
$params
[
"a.site_id"
]
=
$siteId
;
$params
[
"a.site_id"
]
=
$siteId
;
$params
[
"a.status"
]
=
0
;
$params
[
"a.status"
]
=
0
;
...
...
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