医生列表
This commit is contained in:
parent
8ebda591e6
commit
328aa2bf50
@ -246,31 +246,6 @@ class UserDoctor extends Model
|
|||||||
$params['inquiry_mode'] = 1;// 接诊方式:图文
|
$params['inquiry_mode'] = 1;// 接诊方式:图文
|
||||||
$query->where($params)->whereIn('inquiry_type', [1, 3]);
|
$query->where($params)->whereIn('inquiry_type', [1, 3]);
|
||||||
});
|
});
|
||||||
// ->when($sort_order, function ($query, $sort_order) {
|
|
||||||
// if ($sort_order == 1) {
|
|
||||||
// $query->orderBy('is_recommend', 'desc');// 是否首页推荐(0:否 1:是)
|
|
||||||
// $query->orderBy('avg_response_time', 'desc');// 响应时间快
|
|
||||||
// $query->orderBy('served_patients_num', 'desc');// 服务数从多到少
|
|
||||||
// $query->orderBy(Db::raw("convert(substr(user_name,1,1) using `GBK`)"), 'asc');// 名称排名
|
|
||||||
// } elseif ($sort_order == 2) {
|
|
||||||
// // 响应时间快
|
|
||||||
// $query->orderBy('avg_response_time', 'asc');
|
|
||||||
// $query->orderBy(Db::raw("convert(substr(user_name,1,1) using `GBK`)"), 'asc');// 名称排名
|
|
||||||
// } elseif ($sort_order == 3) {
|
|
||||||
// // 价格从低到高
|
|
||||||
// $query->orderBy('avg_response_time', 'asc');
|
|
||||||
// $query->orderBy(Db::raw("convert(substr(user_name,1,1) using `GBK`)"), 'asc');// 名称排名
|
|
||||||
// } elseif ($sort_order == 4) {
|
|
||||||
// // 价格从高到低
|
|
||||||
// $query->orderBy('avg_response_time', 'desc');
|
|
||||||
// $query->orderBy(Db::raw("convert(substr(user_name,1,1) using `GBK`)"), 'asc');// 名称排名
|
|
||||||
// } elseif ($sort_order == 5) {
|
|
||||||
// // 服务数从多到少
|
|
||||||
// $query->orderBy('served_patients_num', 'desc');
|
|
||||||
// $query->orderBy(Db::raw("convert(substr(user_name,1,1) using `GBK`)"), 'asc');// 名称排名
|
|
||||||
// }
|
|
||||||
// return $query;
|
|
||||||
// });
|
|
||||||
|
|
||||||
if (!empty($sort_order)){
|
if (!empty($sort_order)){
|
||||||
if (in_array($sort_order,[1,3,4])){
|
if (in_array($sort_order,[1,3,4])){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user