From 916cc923e1470b059fdec780bc7dcc3f41de1ed0 Mon Sep 17 00:00:00 2001 From: liapples Date: Sat, 16 Oct 2021 10:13:37 +0800 Subject: [PATCH] =?UTF-8?q?service=5Fpersons=E6=94=B9=E4=B8=BAsingle=5Fdep?= =?UTF-8?q?osit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MySQL_change.sql | 4 ++++ app/Http/Controllers/Api/OrderController.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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, ]); //订单超时