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
647fde8f
Commit
647fde8f
authored
May 08, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7afad171
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
RankingListService.php
application/index/service/RankingListService.php
+4
-2
No files found.
application/index/service/RankingListService.php
View file @
647fde8f
...
...
@@ -58,7 +58,7 @@ class RankingListService
*/
public
function
RankingList
(
$position
,
$siteId
,
$pk_type
)
{
$date
=
$this
->
getTotalDate
(
$pk_type
,
1
,
$siteId
);
$date
=
$this
->
getTotalDate
(
$pk_type
,
3
,
$siteId
);
if
(
count
(
$date
)
<=
0
)
{
return
null
;
...
...
@@ -80,7 +80,6 @@ class RankingListService
$result
=
$this
->
group
(
$resultArr
,
$siteId
,
$pk_type
);
//循环分组后的数组,查询出各组本月业绩排行
//本月
//本月
$time
=
$this
->
getTotalDate
(
$pk_type
,
2
,
$siteId
);
$sort_begin_time
=
$time
[
"begin_time"
];
...
...
@@ -176,6 +175,9 @@ class RankingListService
if
(
$type
==
1
){
$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'
));
}
elseif
(
$type
==
3
)
{
$begin_time
=
date
(
'Y-m-01 00:00:00'
,
strtotime
(
'-1 month'
));
$end_time
=
date
(
"Y-m-d 23:59:59"
,
strtotime
(
-
date
(
'd'
)
.
'day'
));
}
else
{
$begin_time
=
date
(
'Y-m-01'
,
time
());
$end_time
=
date
(
"Y-m-01"
,
strtotime
(
'+1 month'
));
...
...
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