文件
mashangyoujiu/Application/Retail/Controller/HomeController.class.php

47 行
839 B
PHP
可执行文件

<?php
namespace Retail\Controller;
use Common\Order\Statistics;
//[1.7.90]
/**
* 门店首页数据
* Class HomeController
* @package Retail\Controller
*/
class HomeController extends BaseController
{
/**
* 门店概况页面
*/
public function index()
{
$this->display();
}
/**
* 销售统计页面
*/
public function statistics()
{
$this->display();
}
/**
* 销售数据统计
*/
public function getStoreSaleDataList()
{
$Statistics = new Statistics();
$this->ajaxReturn($Statistics->getStoreSaleDataList([
'merchant_id' => $this->merchant_id,
'store_id' => $this->store_id,
'date' => I('post.date'),
'page' => I('post.page'),
'type' => 2,
]));
}
}