|
|
@ -13,9 +13,9 @@ declare (strict_types=1); |
|
|
|
namespace app\api\controller; |
|
|
|
namespace app\api\controller; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use app\api\service\statistics\Data as StatisticsDataService; |
|
|
|
use think\db\exception\ModelNotFoundException; |
|
|
|
use think\db\exception\ModelNotFoundException; |
|
|
|
use think\response\Json; |
|
|
|
use think\response\Json; |
|
|
|
use app\api\service\statistics\Data as StatisticsDataService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 数据概况 |
|
|
|
* 数据概况 |
|
|
@ -49,6 +49,10 @@ class Data extends Controller |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function statistics($startDate = null, $endDate = null): Json |
|
|
|
public function statistics($startDate = null, $endDate = null): Json |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (empty($startDate) || empty($endDate)) { |
|
|
|
|
|
|
|
$startDate = null; |
|
|
|
|
|
|
|
$endDate = null; |
|
|
|
|
|
|
|
} |
|
|
|
// 获取数据 |
|
|
|
// 获取数据 |
|
|
|
$data = [ |
|
|
|
$data = [ |
|
|
|
// 订单数据 |
|
|
|
// 订单数据 |
|
|
|