Browse Source

service_persons改为single_deposit

master
李可松 4 years ago
parent
commit
916cc923e1
  1. 4
      MySQL_change.sql
  2. 2
      app/Http/Controllers/Api/OrderController.php

4
MySQL_change.sql

@ -272,3 +272,7 @@ ALTER TABLE `industry_orders`
ALTER TABLE `products` ALTER TABLE `products`
ADD COLUMN `single_deposit` DECIMAL(20,2) NOT NULL DEFAULT '0.00' COMMENT '交易金单价' AFTER `content`, ADD COLUMN `single_deposit` DECIMAL(20,2) NOT NULL DEFAULT '0.00' COMMENT '交易金单价' AFTER `content`,
DROP COLUMN `service_persons`; 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`;

2
app/Http/Controllers/Api/OrderController.php

@ -331,7 +331,7 @@ class OrderController extends Controller
'agent_product_spec_id' => json_encode($agent_product_spec_ids), 'agent_product_spec_id' => json_encode($agent_product_spec_ids),
'product_type' => $ap->product->type, 'product_type' => $ap->product->type,
'product_spec_id' => json_encode($product_spec_ids), 'product_spec_id' => json_encode($product_spec_ids),
'service_persons' => $ap->product->service_persons,
'single_deposit' => $ap->product->single_deposit,
]); ]);
//订单超时 //订单超时

Loading…
Cancel
Save