Commit 6311256d authored by zw's avatar zw

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

parent 6548ee14
...@@ -31,8 +31,8 @@ class RankingList extends Basic{ ...@@ -31,8 +31,8 @@ class RankingList extends Basic{
*/ */
public function getRandKingList(){ public function getRandKingList(){
$params = $this->params; $params = $this->params;
/* $params["position"] = 1;//职称 1店长 2经理 3主任 4顾问 0新人 $params["position"] = 1;//职称 1店长 2经理 3主任 4顾问 0新人
$this->siteId = 10001;*/ $this->siteId = 10001;
if(!isset($params["position"]) || $params["position"] < 0 || $params["position"] > 5){ if(!isset($params["position"]) || $params["position"] < 0 || $params["position"] > 5){
return $this->response("101","请求参数错误"); return $this->response("101","请求参数错误");
} }
......
...@@ -46,7 +46,7 @@ class RankingListService ...@@ -46,7 +46,7 @@ class RankingListService
//todo 2.根据上月的业绩排行获取本月业绩排行, //todo 2.根据上月的业绩排行获取本月业绩排行,
//todo 3.根据此职称的总经纪人数分组 //todo 3.根据此职称的总经纪人数分组
$begin_time = date('Y-m-01 00:00:00', strtotime('-1 month')); $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')); $end_time = date("Y-m-d 23:59:59", strtotime(-date('d') . 'day'));
$params["a.site_id"] = $siteId; $params["a.site_id"] = $siteId;
$params["a.position"] = $position; $params["a.position"] = $position;
...@@ -135,7 +135,7 @@ class RankingListService ...@@ -135,7 +135,7 @@ class RankingListService
*/ */
public function StoreRankingList($siteId){ public function StoreRankingList($siteId){
$begin_time = date('Y-m-01 00:00:00', strtotime('-1 month')); $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')); $end_time = date("Y-m-d 23:59:59", strtotime(-date('d') . 'day'));
$params["a.site_id"] = $siteId; $params["a.site_id"] = $siteId;
$params["a.status"] = 0; $params["a.status"] = 0;
......
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