diff --git a/app/Http/Controllers/Customer/OrdersController.php b/app/Http/Controllers/Customer/OrdersController.php index 1cea07a..ff576c0 100644 --- a/app/Http/Controllers/Customer/OrdersController.php +++ b/app/Http/Controllers/Customer/OrdersController.php @@ -315,6 +315,7 @@ class OrdersController extends CommonController * @OA\Parameter(name="product_id", in="query", @OA\Schema(type="integer"), required=true, description="产品id"), * @OA\Parameter(name="factors", in="query", @OA\Schema(type="object"), required=true, description="价格因子选择,[{id:1,factor_item_id:1},{...}],如果为空数组请传[]"), * @OA\Parameter(name="bed_id", in="query", @OA\Schema(type="integer"), required=true, description="床位id"), + * @OA\Parameter(name="paramedic_id", in="query", @OA\Schema(type="integer"), required=false, description="护工id"), * @OA\Parameter(name="patient_name", in="query", @OA\Schema(type="integer"), required=true, description="被看护人姓名"), * @OA\Parameter(name="patient_sex", in="query", @OA\Schema(type="integer"), required=true, description="被看护人性别"), * @OA\Parameter(name="patient_mobile", in="query", @OA\Schema(type="integer"), required=true, description="被看护人联系电话"), @@ -587,7 +588,7 @@ class OrdersController extends CommonController */ public function getBalances() { - $balances = (new Balance())->where("member_id", $this->customer->id)->with([ + $balances = (new Balance())->where("customer_id", $this->customer->id)->with([ "order" => function ($query) { $query->select("id", "serial"); }