\app\common\serviceOrder

订单服务类 Class Order

Summary

Methods
Properties
Constants
createOrderNo()
getOrderList()
getOrderDetail()
model()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$orderModelClass
N/A

Properties

$orderModelClass

$orderModelClass : array

订单模型类

Type

array

Methods

createOrderNo()

createOrderNo() : string

生成订单号

Returns

string

getOrderList()

getOrderList(\think\Collection|\think\Paginator  $data, string  $orderIndex = 'order', array  $with = array()) : mixed

整理订单列表 (根据order_type获取不同类型的订单记录)

Parameters

\think\Collection|\think\Paginator $data

数据源

string $orderIndex

订单记录的索引

array $with

关联查询

Returns

mixed

getOrderDetail()

getOrderDetail(  $orderId, integer  $orderType = \app\common\enum\OrderType::MASTER) : mixed

获取订单详情 (根据order_type获取不同类型的订单详情)

Parameters

$orderId
integer $orderType

Returns

mixed

model()

model(integer  $orderType = \app\common\enum\OrderType::MASTER) : mixed

根据订单类型获取对应的订单模型类

Parameters

integer $orderType

Returns

mixed