|
|
|
|
@ -763,7 +763,7 @@ class OrdersController extends CommonController
|
|
|
|
|
* @OA\POST(
|
|
|
|
|
* path="/manager/update-order-items",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-子订单修改(覆盖单条修改)",
|
|
|
|
|
* summary="V2-子订单修改(覆盖单条修改),20230618更新:对早于过上月的价格锁定",
|
|
|
|
|
* description="子订单修改",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
* @OA\Parameter(name="ids", in="query", @OA\Schema(type="integer"), required=true, description="子订单id,可传单个id或数组"),
|
|
|
|
|
@ -839,6 +839,12 @@ class OrdersController extends CommonController
|
|
|
|
|
$warnings[] = "将对" . $price_changed_paid_items->count() . "天已付款的子订单进行价格更改";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach ($price_changed_paid_items as $price_changed_paid_item) {
|
|
|
|
|
if (date("Ym", strtotime($price_changed_paid_item->service_date)) < date("Ym", strtotime("-1 month", time()))) {
|
|
|
|
|
$errors[] = "子订单{$price_changed_paid_item->id}超期价格锁定";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($total_increased > $customer->balance) {
|
|
|
|
|
$errors[] = "价格补差{$total_increased}超过了客户余额{$customer->balance},请先充值";
|
|
|
|
|
}
|
|
|
|
|
@ -1710,7 +1716,7 @@ class OrdersController extends CommonController
|
|
|
|
|
* @OA\Post(
|
|
|
|
|
* path="/manager/change-order-status/{id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-更新订单状态",
|
|
|
|
|
* summary="V2-更新订单状态,20230618更新:鉴定是否权限是否开启",
|
|
|
|
|
* description="更新订单状态",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
* @OA\Parameter(name="from_status", in="query", @OA\Schema(type="integer"), required=true, description="原状态"),
|
|
|
|
|
|