feat : rank
This commit is contained in:
@@ -96,11 +96,12 @@ class Sku extends Model
|
|||||||
->get();
|
->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array $spuIds
|
* @param array $spuIds
|
||||||
* @return Collection|null
|
* @return \Hyperf\Database\Model\Model|\Hyperf\Database\Query\Builder|null
|
||||||
*/
|
*/
|
||||||
public function getAddStapleFoodListBySpuIds(array $spuIds): Collection|null
|
public function getAddStapleFoodListBySpuIds(array $spuIds): \Hyperf\Database\Query\Builder|\Hyperf\Database\Model\Model|null
|
||||||
{
|
{
|
||||||
return $this
|
return $this
|
||||||
->whereIn('spu_id',$spuIds)
|
->whereIn('spu_id',$spuIds)
|
||||||
@@ -114,9 +115,9 @@ class Sku extends Model
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $spuId
|
* @param int $spuId
|
||||||
* @return Collection|null
|
* @return Builder[]|\Hyperf\Database\Model\Collection
|
||||||
*/
|
*/
|
||||||
public function getListBySpuId(int $spuId): Collection|null
|
public function getListBySpuId(int $spuId): \Hyperf\Database\Model\Collection|array
|
||||||
{
|
{
|
||||||
return $this
|
return $this
|
||||||
->where('spu_id',$spuId)
|
->where('spu_id',$spuId)
|
||||||
|
|||||||
Reference in New Issue
Block a user