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
1fa54efc
Commit
1fa54efc
authored
Nov 14, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pk
parent
51867f1a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
RankingList.php
application/index/controller/RankingList.php
+12
-0
RankingListService.php
application/index/service/RankingListService.php
+24
-0
No files found.
application/index/controller/RankingList.php
View file @
1fa54efc
...
...
@@ -21,6 +21,10 @@ class RankingList extends Basic{
$this
->
service_
=
new
RankingListService
();
}
/**
* 查询分区业绩pk
* @return \think\Response
*/
public
function
getRandKingList
(){
$params
=
$this
->
params
;
/*$params["position"] = 1;
...
...
@@ -34,6 +38,10 @@ class RankingList extends Basic{
}
}
/**
* 导出分区pk榜
* @return string
*/
public
function
exportReport
(){
$params
=
$this
->
params
;
/* $params["position"] = 1;
...
...
@@ -46,6 +54,10 @@ class RankingList extends Basic{
return
''
;
}
/**
* pk榜门店业绩和个人业绩排序显示前五
* @return \think\Response
*/
public
function
selectPkSortByTime
()
{
$params
=
$this
->
params
;
...
...
application/index/service/RankingListService.php
View file @
1fa54efc
...
...
@@ -27,6 +27,12 @@ class RankingListService
$this
->
crewNumMax
=
25
;
}
/**
* pk业绩
* @param $position
* @param $siteId
* @return array
*/
public
function
RankingList
(
$position
,
$siteId
)
{
//todo 1.查询出此职称的经纪人 获取10月份某个职称的排行 职称 1店长 2经理 3主任 4顾问 0新人
...
...
@@ -102,6 +108,17 @@ class RankingListService
}
/**
* 查询数据
* @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
getSort
(
$params
,
$begin_time
,
$end_time
,
$ids
){
$fields
=
"a.id,c.store_name,a.name,a.phone,SUM(b.performance) as performance"
;
//查询出有业绩的经纪人
...
...
@@ -114,6 +131,13 @@ class RankingListService
}
/**
* 个人业绩团队业绩前五
* @param $yesterday
* @param $end_day
* @param $site_id
* @return mixed
*/
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