修改了首页推荐医生,去除了数量限制
This commit is contained in:
parent
4f927d5ac8
commit
ba91b80fb4
@ -170,12 +170,10 @@ class UserDoctor extends Model
|
||||
* 2:接诊量由高到低的医生
|
||||
* 3:好评率由高到低的医生
|
||||
* 5:在线
|
||||
* 6:5个
|
||||
* @param int $limit 数量
|
||||
* @param array $fields
|
||||
* @return array|Collection|\Hyperf\Utils\Collection
|
||||
*/
|
||||
public static function getIndexRecommendDoctorLimit(int $limit = 5, array $fields = ['*']): array|Collection|\Hyperf\Utils\Collection
|
||||
public static function getIndexRecommendDoctor(array $fields = ['*']): array|Collection|\Hyperf\Utils\Collection
|
||||
{
|
||||
$params = array();
|
||||
// 状态(0:禁用 1:正常 2:删除)
|
||||
@ -200,7 +198,6 @@ class UserDoctor extends Model
|
||||
->orderBy("is_platform_deep_cooperation", "desc")
|
||||
->orderBy("served_patients_num", "desc")
|
||||
->orderBy("praise_rate", "desc")
|
||||
->limit($limit)
|
||||
->get($fields);
|
||||
|
||||
|
||||
|
||||
@ -481,7 +481,7 @@ class PatientDoctorService extends BaseService
|
||||
"be_good_at",
|
||||
];
|
||||
|
||||
$recommend_doctors = UserDoctorModel::getIndexRecommendDoctorLimit(5, $fields);
|
||||
$recommend_doctors = UserDoctorModel::getIndexRecommendDoctor($fields);
|
||||
if (empty($recommend_doctors)) {
|
||||
return success();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user