|
@@ -59,7 +59,7 @@ class ProductService extends Service
|
|
|
public function productCategoryList($data,$user){
|
|
|
$model = ProductCategory::where('del_time',0)
|
|
|
->select('title','id','parent_id')
|
|
|
- ->orderby('id','asc');
|
|
|
+ ->orderby('id','desc');
|
|
|
if(! empty($data['title'])) $model->where('title', 'LIKE', '%'.$data['title'].'%');
|
|
|
|
|
|
$list = $model->get()->toArray();
|