|
|
@@ -107,7 +107,7 @@ class MasterWorkerServiceOrderLists extends BaseAdminDataLists implements ListsS
|
|
|
->select()->toArray();
|
|
|
$categoryData = GoodsCategory::select()->toArray();
|
|
|
foreach ($lists as &$item) {
|
|
|
- $item['category_name'] = implode('、',array_column(get_parent_info($categoryData,explode(',',$item['category_ids'])),'name'));
|
|
|
+ $item['category_name'] = $item['category_ids']?implode('、',array_column(get_parent_info($categoryData,explode(',',$item['category_ids'])),'name')):'';
|
|
|
}
|
|
|
return $lists;
|
|
|
}
|