Browse Source

桌台排序

gorden 6 months ago
parent
commit
96f86a03e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/sys_manage/RestaurantTableController.php

+ 1 - 1
app/admin/controller/sys_manage/RestaurantTableController.php

@@ -356,7 +356,7 @@ class RestaurantTableController extends Curd
                 $restaurant = SysDept::where('dept_super_id', $premise->dept_id)->where('dept_category', '餐厅')->where('dept_status', 'ACTIVED')->first();
             }
 
-            $tables = SysDept::where('dept_super_id', $restaurant->dept_id)->where('dept_category', '桌台')->orderBy('dept_status','ASC')->get()->toArray();
+            $tables = SysDept::where('dept_super_id', $restaurant->dept_id)->where('dept_category', '桌台')->orderBy('dept_sort','ASC')->get()->toArray();
 
             foreach ($tables as $table) {
                 $tableList[] = [