Commit 647fde8f authored by clone's avatar clone

1

parent 7afad171
......@@ -58,7 +58,7 @@ class RankingListService
*/
public function RankingList($position, $siteId, $pk_type)
{
$date = $this->getTotalDate($pk_type,1,$siteId);
$date = $this->getTotalDate($pk_type,3,$siteId);
if (count($date) <= 0) {
return null;
......@@ -80,7 +80,6 @@ class RankingListService
$result = $this->group($resultArr, $siteId, $pk_type);
//循环分组后的数组,查询出各组本月业绩排行
//本月
//本月
$time = $this->getTotalDate($pk_type,2,$siteId);
$sort_begin_time = $time["begin_time"];
......@@ -176,6 +175,9 @@ class RankingListService
if($type == 1){
$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'));
}elseif($type == 3) {
$begin_time = date('Y-m-01 00:00:00', strtotime('-1 month'));
$end_time = date("Y-m-d 23:59:59", strtotime(-date('d') . 'day'));
}else{
$begin_time = date('Y-m-01', time());
$end_time = date("Y-m-01", strtotime('+1 month'));
......
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