소스 검색

医院排序

linwu 4 달 전
부모
커밋
c1813618e8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Http/Controllers/Mobile/Health/HospitalController.php

+ 1 - 1
app/Http/Controllers/Mobile/Health/HospitalController.php

@@ -29,7 +29,7 @@ class HospitalController extends MobileBaseController
             ['is_health', '=', 1],
         ];
 
-        $list             = Company::where($where)->get();
+        $list             = Company::where($where)->orderBy('sort_index','desc')->get();
         $other_categories = $this->categoryRepository->getCategories();
         $tag_category     = array_get($other_categories, 'AIX_jobtag');
         foreach ($list as $v) {