|
|
@ -56,6 +56,7 @@ class GoodsSku extends GoodsSkuModel |
|
|
|
|
|
|
|
|
|
|
|
//设置spu_id为当前商品id的商品的spu_id=0; by liuqing |
|
|
|
//设置spu_id为当前商品id的商品的spu_id=0; by liuqing |
|
|
|
GoodsModel::where('spu_id', $goodsId)->update(['spu_id' => 0]); |
|
|
|
GoodsModel::where('spu_id', $goodsId)->update(['spu_id' => 0]); |
|
|
|
|
|
|
|
GoodsSku::where('spu_id', $goodsId)->update(['spu_id' => 0, 'goods_props' => "", 'spec_value_ids' => '']); |
|
|
|
//更新sku列表里面的商品id的spu_id |
|
|
|
//更新sku列表里面的商品id的spu_id |
|
|
|
|
|
|
|
|
|
|
|
GoodsModel::whereIn('goods_id', $goodsIds)->update(['spu_id' => $goodsId]); |
|
|
|
GoodsModel::whereIn('goods_id', $goodsIds)->update(['spu_id' => $goodsId]); |
|
|
|