Commit 356ca7ed authored by zw's avatar zw

分区调整统计三个月业绩排序

parent 0c4a7e36
......@@ -42,10 +42,6 @@ class RankingListService
*/
public function RankingList($position, $siteId)
{
//todo 1.查询出此职称的经纪人 获取10月份某个职称的排行 职称 1店长 2经理 3主任 4顾问 0新人
//todo 2.根据上月的业绩排行获取本月业绩排行,
//todo 3.根据此职称的总经纪人数分组
$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'));
$params["a.site_id"] = $siteId;
......@@ -54,7 +50,7 @@ class RankingListService
$params['b.total_time'] = array('between', array($begin_time, $end_time));
$resultArr = $this->getSort($params, $begin_time, $end_time, "");
if (count($resultArr) <= 0) {
return false;
return null;
}
//分组
......@@ -142,7 +138,7 @@ class RankingListService
$params['b.total_time'] = array('between', array($begin_time, $end_time));
$resultArr = $this->getStoreSort($params, $begin_time, $end_time, "");
if (count($resultArr) <= 0) {
return false;
return null;
}
//分组
......
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