\app\goods\serviceProductService

产品数据服务支持 Class ProductService

Summary

Methods
Properties
Constants
buildGoodsList()
syncGoodsStock()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

buildGoodsList()

buildGoodsList(array  $goodsList) : array

主产品表数据处理

Parameters

array $goodsList

Returns

array

syncGoodsStock()

syncGoodsStock(integer  $goods_id) : array

同步更新产品库存及售出(@todo 需要重新做库存统计)

Parameters

integer $goods_id

产品ID

Throws

\think\Exception
\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException
\think\exception\PDOException

Returns

array