修改问诊配置
This commit is contained in:
@@ -397,4 +397,22 @@ class UserDoctor extends Model
|
||||
->where($params)
|
||||
->get($fields);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取医生数据-医生配置
|
||||
* @param array $params
|
||||
* @param array $not_in_params
|
||||
* @param array $doctor_inquiry_config_params
|
||||
* @param array $fields
|
||||
* @return Collection|array|\Hyperf\Utils\Collection
|
||||
*/
|
||||
public static function getListWithConfig(array $params = [], array $not_in_params = [],array $doctor_inquiry_config_params = [],array $fields = ['*']): Collection|array|\Hyperf\Utils\Collection
|
||||
{
|
||||
$doctor_ids = Db::table('doctor_inquiry_config')->where($doctor_inquiry_config_params)->select("doctor_id");
|
||||
|
||||
return self::where($params)
|
||||
->whereNotIn('doctor_id',$not_in_params)
|
||||
->whereIn("doctor_id",$doctor_ids)
|
||||
->get($fields);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user