\app\common\service\goods\sourceMaster

商品来源-普通商品扩展类 Class Master

Summary

Methods
Properties
Constants
updateGoodsStock()
updateStockSales()
backGoodsStock()
getError()
hasError()
No public properties found
No constants found
No protected methods found
$error
$wxappId
N/A
updateGoods()
updateGoodsSku()
No private properties found
N/A

Properties

$error

$error : 

Type

$wxappId

$wxappId : 

Type

Methods

updateGoodsStock()

updateGoodsStock(  $goodsList) : boolean

更新商品库存 (针对下单减库存的商品)

Parameters

$goodsList

Returns

boolean

updateStockSales()

updateStockSales(  $goodsList) : boolean

更新商品库存销量(订单付款后)

Parameters

$goodsList

Throws

\Exception

Returns

boolean

backGoodsStock()

backGoodsStock(  $goodsList,   $isPayOrder = false) : array|false

回退商品库存

Parameters

$goodsList
$isPayOrder

Throws

\Exception

Returns

array|false

getError()

getError() : mixed

获取错误信息

Returns

mixed

hasError()

hasError() : boolean

是否存在错误

Returns

boolean

updateGoods()

updateGoods(  $data) : array|false

更新商品信息

Parameters

$data

Throws

\Exception

Returns

array|false

updateGoodsSku()

updateGoodsSku(  $data) : \think\Collection

更新商品sku信息

Parameters

$data

Returns

\think\Collection