feat: 修改了 StoreProductLists.php 中的查询方法,使其更加灵活。

This commit is contained in:
mkm 2024-06-27 17:13:48 +08:00
parent fef754e25a
commit 5113989f7b

View File

@ -65,8 +65,7 @@ class StoreProductLists extends BaseAdminDataLists implements ListsSearchInterfa
$item['unit_name'] = StoreProductUnit::where('id', $item['unit'])->value('name');
$item['cate_name'] = StoreCategory::where('id', $item['cate_id'])->value('name');
return $item;
})
->toArray();
})?->toArray();
}