wip
This commit is contained in:
parent
419f29debe
commit
60e49ee22a
|
|
@ -154,7 +154,7 @@ class ProductController extends Controller
|
|||
|
||||
public function updateStatus(Request $request)
|
||||
{
|
||||
ProductRepo::updateStatusByIds($request->get('ids'));
|
||||
ProductRepo::updateStatusByIds($request->get('ids'), $request->get('status'));
|
||||
|
||||
return json_success(trans('common.updated_success'), []);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ class ProductRepo
|
|||
->get();
|
||||
return $products;
|
||||
}
|
||||
public static function DeleteByIds($ids, $price)
|
||||
public static function DeleteByIds($ids)
|
||||
{
|
||||
Product::query()->whereIn('id', $ids)->delete();
|
||||
ProductSku::query()->whereIn('product_id', $ids)->delete();
|
||||
|
|
|
|||
Loading…
Reference in New Issue