Commit a3a7297c authored by hangjun83's avatar hangjun83

接口bug修复

parent 0fad9fec
......@@ -39,7 +39,7 @@ class OrdersController extends Controller
* @Post(
* path="/openapi/orders/getRhawnOrders",
* tags={"订单相关接口"},
* summary="获取用户订单列表数据集",
* summary="用户订单列表数据",
* description="订单列表",
* @RequestBody(
* @MediaType(
......@@ -49,7 +49,9 @@ class OrdersController extends Controller
* @Property(property="pageSize", @Schema(type="integer"),description="返回数据集数量"),
* @Property(property="pageNo", @Schema(type="integer"),description="当前页数"),
* example={"pageSize" : 100, "pageNo" : 1}
* )
* ),
* @OA\Examples(example="pageSize", value="100",summary="每页的数据量"),
* @OA\Examples(example="pageNo", value="1",summary="当前页数"),
* )
* ),
* @OA\Parameter(
......@@ -88,11 +90,10 @@ class OrdersController extends Controller
return Response::ok('客户编号不存在!');
}
$params = [
'customer_code' => $customerCode
];
$requestParams = $this->formatKeysfromArray($request->all(),'toUnderScore');
$requestParams = array_merge($requestParams,['customer_code' => $customerCode]);
try{
$orderList = $this->rhawnOrdersService->getCustomerRhawnOrdersList($params);
$orderList = $this->rhawnOrdersService->getCustomerRhawnOrdersList($requestParams);
if($orderList){
$orderList = $this->formatKeysfromArray($orderList,'toCamelCase');
}
......@@ -106,7 +107,7 @@ class OrdersController extends Controller
* @Post(
* path="/openapi/orders/getRhawnOrderDetail",
* tags={"订单相关接口"},
* summary="获取用户订单详情数据集",
* summary="用户订单详情数据",
* description="订单详情",
* @RequestBody(
* @MediaType(
......@@ -114,8 +115,9 @@ class OrdersController extends Controller
* @Schema(
* required={"orderNumber"},
* @Property(property="orderNumber", @Schema(type="string"),description="订单编号"),
* example={"orderNumber" : "XXXXXX"}
* )
* example={"orderNumber" : "20221008-122565111"}
* ),
* @OA\Examples(example="orderNumber", value="20221008-122565111",summary="订单编号"),
* )
* ),
* @OA\Parameter(
......@@ -172,7 +174,7 @@ class OrdersController extends Controller
* @Post(
* path="/openapi/orders/createRhawnOrders",
* tags={"订单相关接口"},
* summary="生成一个用户新订单",
* summary="生成用户新订单",
* description="生成新订单",
* @RequestBody(
* @MediaType(
......@@ -283,7 +285,7 @@ class OrdersController extends Controller
* @Post(
* path="/openapi/orders/getOrdersDispatch",
* tags={"订单相关接口"},
* summary="获取订单的配货单信息",
* summary="订单的配货单信息",
* description="配货单信息",
* @RequestBody(
* @MediaType(
......@@ -292,7 +294,8 @@ class OrdersController extends Controller
* required={"orderNumber"},
* @Property(property="orderNumber", @Schema(type="string"),description="订单编号"),
* example={"orderNumber" : "20221008-122565111"}
* )
* ),
* @OA\Examples(example="orderNumber", value="20221008-122565111",summary="订单编号"),
* )
* ),
* @OA\Parameter(
......
......@@ -79,11 +79,11 @@ class ProductsController extends Controller
return Response::ok('客户编号不存在!');
}
$params = [
'customer_code' => $customerCode
];
$requestParams = $this->formatKeysfromArray($request->all(),'toUnderScore');
$requestParams = array_merge($requestParams,['customer_code' => $customerCode]);
try{
$productList = $this->rhawnProductsService->getAllProducts($params);
$productList = $this->rhawnProductsService->getAllProducts($requestParams);
if($productList){
$productList = $this->formatKeysfromArray($productList,'toCamelCase');
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment