Browse Source

订单统计--现存用户统计所有

master
liangyuyan 6 years ago
parent
commit
f830b2bc41
  1. 4
      app/Admin/Repositories/v3/OrderReport.php

4
app/Admin/Repositories/v3/OrderReport.php

@ -81,7 +81,7 @@ class OrderReport extends EloquentRepository
$storeNewUserNewTwo->where([['created_at','>=',strtotime($startTime)]]); $storeNewUserNewTwo->where([['created_at','>=',strtotime($startTime)]]);
$storeNewUserNewThree->where([['created_at','>=',strtotime($startTime)]]); $storeNewUserNewThree->where([['created_at','>=',strtotime($startTime)]]);
$storeNewUserNewFour->where([['created_at','>=',strtotime($startTime)]]); $storeNewUserNewFour->where([['created_at','>=',strtotime($startTime)]]);
$newUser->where([['created_at','>=',strtotime($startTime)]]);
// $newUser->where([['created_at','>=',strtotime($startTime)]]);
} }
if($endTime){ if($endTime){
$endTime = $endTime.' 23:59:59'; $endTime = $endTime.' 23:59:59';
@ -95,7 +95,7 @@ class OrderReport extends EloquentRepository
$storeNewUserNewTwo->where([['created_at','<=',strtotime($endTime)]]); $storeNewUserNewTwo->where([['created_at','<=',strtotime($endTime)]]);
$storeNewUserNewThree->where([['created_at','<=',strtotime($endTime)]]); $storeNewUserNewThree->where([['created_at','<=',strtotime($endTime)]]);
$storeNewUserNewFour->where([['created_at','<=',strtotime($endTime)]]); $storeNewUserNewFour->where([['created_at','<=',strtotime($endTime)]]);
$newUser->where([['created_at','<=',strtotime($endTime)]]);
// $newUser->where([['created_at','<=',strtotime($endTime)]]);
} }
if(empty($startTime) && empty($endTime)){ if(empty($startTime) && empty($endTime)){
$time = date('Y-m-d',time()); $time = date('Y-m-d',time());

Loading…
Cancel
Save