Browse Source

up - 统计

liugc 1 year ago
parent
commit
c19a61bf37

+ 1 - 1
app/adminapi/lists/master_worker/MasterWorkerServiceOrderLists.php

@@ -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;
     }