|
|
|
|
@ -134,6 +134,7 @@ class OrdersController extends CommonController
|
|
|
|
|
$model = $model->where("project_id", $bed->project_id);
|
|
|
|
|
$model = $model->where("status", 1);
|
|
|
|
|
$model = $model->with(["project", "levelInProject"]);
|
|
|
|
|
$model = $model->withCount(["orders"]);
|
|
|
|
|
$model = $model->select("id", "name", "avatar", "sex", "birthday", "hometown", "work_years", "paramedic_level_id", "project_id");
|
|
|
|
|
//性别筛选:如果是女患者,选择女的护工
|
|
|
|
|
if ($request->sex == "女") {
|
|
|
|
|
|