\app\store\service\statistics\dataTrade7days

近7日走势 Class Trade7days

Summary

Methods
Properties
Constants
getError()
hasError()
__construct()
getTransactionTrend()
No public properties found
No constants found
No protected methods found
$error
$wxappId
N/A
getLately7days()
getOrderTotalByDate()
getOrderTotal()
getOrderTotalPrice()
getOrderTotalPriceByDate()
$OrderModel
N/A

Properties

$error

$error : 

Type

$wxappId

$wxappId : 

Type

$OrderModel

$OrderModel : 

Type

Methods

getError()

getError() : mixed

获取错误信息

Returns

mixed

hasError()

hasError() : boolean

是否存在错误

Returns

boolean

__construct()

__construct() 

构造方法

getTransactionTrend()

getTransactionTrend() : array

近7日走势

Throws

\think\Exception

Returns

array

getLately7days()

getLately7days() 

最近七天日期

getOrderTotalByDate()

getOrderTotalByDate(  $days) : array

获取订单总量 (指定日期)

Parameters

$days

Throws

\think\Exception

Returns

array

getOrderTotal()

getOrderTotal(null  $day = null) : string

获取订单总量

Parameters

null $day

Throws

\think\Exception

Returns

string

getOrderTotalPrice()

getOrderTotalPrice(null  $day = null) : string

获取某天的总销售额

Parameters

null $day

Returns

string

getOrderTotalPriceByDate()

getOrderTotalPriceByDate(  $days) : array

获取订单总量 (指定日期)

Parameters

$days

Returns

array