|
@@ -77,7 +77,7 @@ class Skus extends Model
|
|
|
public function getListByIds($skuIds)
|
|
|
{
|
|
|
// 写入数据表
|
|
|
- $data = $this->query()->whereIn('id',$skuIds)->where([['status','=',0]])->get(['id as sku_id','product_id','attr_names as sku_attr_names','quota','min_quota','price','stock','status'])->toArray();
|
|
|
+ $data = $this->query()->whereIn('id',$skuIds)->where([['status','=',0]])->get(['id as sku_id','product_id','attr_names as sku_attr_names','quota','min_quota','price','market_price','stock','status'])->toArray();
|
|
|
// 列表
|
|
|
$list = [];
|
|
|
// 循环处理
|
|
@@ -97,7 +97,7 @@ class Skus extends Model
|
|
|
public function getListByProductId($productId)
|
|
|
{
|
|
|
// 写入数据表
|
|
|
- $list = $this->query()->where([['product_id','=',$productId]])->get(['id','attr_ids','attr_names','min_quota','quota','sku_thumb','price','stock','status'])->toArray();
|
|
|
+ $list = $this->query()->where([['product_id','=',$productId]])->get(['id','attr_ids','attr_names','min_quota','quota','sku_thumb','price','market_price','stock','status'])->toArray();
|
|
|
// 返回结果
|
|
|
return $list;
|
|
|
}
|