修改问诊购药分配医生

This commit is contained in:
2023-04-17 13:30:36 +08:00
parent 8ff1205e7c
commit 108ce91850
5 changed files with 408 additions and 308 deletions
+12
View File
@@ -309,4 +309,16 @@ class UserDoctor extends Model
{
return self::where($params)->whereNotIn('doctor_id',$not_in_params)->first($fields);
}
/**
* 获取数据-多
* @param array $params
* @param array $not_in_params
* @param array $fields
* @return Collection|array|\Hyperf\Utils\Collection
*/
public static function getUserDoctorNotInList(array $params = [], array $not_in_params = [],array $fields = ['*']): Collection|array|\Hyperf\Utils\Collection
{
return self::where($params)->whereNotIn('doctor_id',$not_in_params)->get($fields);
}
}