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
9b51171e
Commit
9b51171e
authored
Nov 26, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
5fe75bcb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
RankingListService.php
application/index/service/RankingListService.php
+27
-1
No files found.
application/index/service/RankingListService.php
View file @
9b51171e
...
...
@@ -30,11 +30,15 @@ class RankingListService
$this
->
crewNumMax
=
25
;
}
/**
* pk业绩
* @param $position
* @param $siteId
* @return array
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
RankingList
(
$position
,
$siteId
)
{
...
...
@@ -111,7 +115,14 @@ class RankingListService
}
/**
* 门店业绩排行
* @param $siteId
* @return array
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
StoreRankingList
(
$siteId
){
$begin_time
=
date
(
'Y-m-01 00:00:00'
,
strtotime
(
'-1 month'
));
...
...
@@ -180,6 +191,17 @@ class RankingListService
return
$result
;
}
/**
* 门店排名
* @param $params
* @param $begin_time
* @param $end_time
* @param $ids
* @return array
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getStoreSort
(
$params
,
$begin_time
,
$end_time
,
$ids
)
{
$storeModel
=
new
AStore
();
...
...
@@ -216,12 +238,16 @@ class RankingListService
}
/**
* 个人业绩团队业绩前五
* @param $yesterday
* @param $end_day
* @param $site_id
* @return mixed
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
totalAgent
(
$yesterday
,
$end_day
,
$site_id
)
{
...
...
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