Commit 1fa54efc authored by zw's avatar zw

pk

parent 51867f1a
......@@ -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;
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment