feat : order
This commit is contained in:
@@ -50,6 +50,6 @@ class OrderGood extends Model
|
|||||||
*/
|
*/
|
||||||
public function getGoodIdsByOrderId(int $orderId): array
|
public function getGoodIdsByOrderId(int $orderId): array
|
||||||
{
|
{
|
||||||
return $this->where('order_id', $orderId)->select('sku_id','SUM(`quantity`) as `quantity`')->get()->toArray();
|
return $this->where('order_id', $orderId)->select('sku_id')->selectRaw('SUM(`quantity`) as `quantity`')->get()->toArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user