\app\common\service\goods\sourceBasics

商品来源抽象类 Class Basics

Summary

Methods
Properties
Constants
getError()
hasError()
updateGoodsStock()
updateStockSales()
backGoodsStock()
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

updateGoodsStock()

updateGoodsStock(  $goodsList) : mixed

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

Parameters

$goodsList

Returns

mixed

updateStockSales()

updateStockSales(  $goodsList) : mixed

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

Parameters

$goodsList

Returns

mixed

backGoodsStock()

backGoodsStock(  $goodsList,   $isPayOrder) : mixed

回退商品库存

Parameters

$goodsList
$isPayOrder

Returns

mixed