作者 何书鹏
1 个管道 的构建 通过 耗费 5 秒

排序

@@ -65,7 +65,7 @@ class Index extends Api @@ -65,7 +65,7 @@ class Index extends Api
65 */ 65 */
66 public function index() 66 public function index()
67 { 67 {
68 - $dept_list = Dept::where('pid',0)->field('id,image,name')->select(); 68 + $dept_list = Dept::where('pid',0)->field('id,image,name')->order('weigh desc')->select();
69 $doctor_list = (new Doctor)->getList(['a.status'=>'1'],['a.star'=>'desc','a.createtime'=>'desc']); 69 $doctor_list = (new Doctor)->getList(['a.status'=>'1'],['a.star'=>'desc','a.createtime'=>'desc']);
70 $doctor_list = $doctor_list->items(); 70 $doctor_list = $doctor_list->items();
71 $appointment_log = AppointmentLog::with(['doctor']) 71 $appointment_log = AppointmentLog::with(['doctor'])