diff --git a/MySQL_change.sql b/MySQL_change.sql index effd4cc..c2caa88 100644 --- a/MySQL_change.sql +++ b/MySQL_change.sql @@ -272,3 +272,7 @@ ALTER TABLE `industry_orders` ALTER TABLE `products` ADD COLUMN `single_deposit` DECIMAL(20,2) NOT NULL DEFAULT '0.00' COMMENT '交易金单价' AFTER `content`, DROP COLUMN `service_persons`; + +# 10:12 ‎2021/‎10/‎16 +ALTER TABLE `order_product_items` + CHANGE COLUMN `service_persons` `single_deposit` DECIMAL(20,2) NOT NULL DEFAULT 0 COMMENT '交易金单价' AFTER `deleted_at`; diff --git a/app/Http/Controllers/Api/OrderController.php b/app/Http/Controllers/Api/OrderController.php index e2d061c..4b37509 100644 --- a/app/Http/Controllers/Api/OrderController.php +++ b/app/Http/Controllers/Api/OrderController.php @@ -331,7 +331,7 @@ class OrderController extends Controller 'agent_product_spec_id' => json_encode($agent_product_spec_ids), 'product_type' => $ap->product->type, 'product_spec_id' => json_encode($product_spec_ids), - 'service_persons' => $ap->product->service_persons, + 'single_deposit' => $ap->product->single_deposit, ]); //订单超时