修改问诊配置

This commit is contained in:
2023-10-11 15:36:41 +08:00
parent 095ad1d327
commit b3897354e8
5 changed files with 90 additions and 80 deletions
+18
View File
@@ -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);
}
}