顾客组管理

This commit is contained in:
TL 2022-06-30 09:46:42 +08:00
parent 21daa9cd9a
commit 524e316d1e
1 changed files with 2 additions and 2 deletions

View File

@ -66,10 +66,10 @@ class CustomerGroupRepo
{
$builder = CustomerGroup::query()
->leftJoin('customer_group_descriptions AS cgd', function ($join) {
$join->on('cgd.customer_group_id', 'customer_group.id')
$join->on('cgd.customer_group_id', 'customer_groups.id')
->where('cgd.language_id', current_language_id());
})
->select(['customer_group.*', 'cgd.name', 'cgd.description']);
->select(['customer_groups.*', 'cgd.name', 'cgd.description']);
$groups = $builder->get();
return $groups;