\app\store\service\statisticsData

数据概况服务类 Class Data

Summary

Methods
Properties
Constants
getError()
hasError()
getSurveyData()
getTransactionTrend()
getGoodsRanking()
geUserExpendRanking()
No public properties found
No constants found
No protected methods found
$error
$wxappId
N/A
No private methods found
No private properties found
N/A

Properties

$error

$error : 

Type

$wxappId

$wxappId : 

Type

Methods

getError()

getError() : mixed

获取错误信息

Returns

mixed

hasError()

hasError() : boolean

是否存在错误

Returns

boolean

getSurveyData()

getSurveyData(null  $startDate = null, null  $endDate = null) : array

获取数据概况

Parameters

null $startDate
null $endDate

Throws

\think\Exception

Returns

array

getTransactionTrend()

getTransactionTrend() : array

近7日走势

Throws

\think\Exception

Returns

array

getGoodsRanking()

getGoodsRanking() : string

商品销售榜

Throws

\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException

Returns

string

geUserExpendRanking()

geUserExpendRanking() : string

用户消费榜

Throws

\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException

Returns

string