Commit 515e1c93 by 庞善天

脚本补充

1 parent 7d75d0e7
...@@ -85,5 +85,10 @@ CREATE TABLE `supervisor_task_participant` ( ...@@ -85,5 +85,10 @@ CREATE TABLE `supervisor_task_participant` (
### 杨卫 -----------------start-------------------- ### 杨卫 -----------------start--------------------
### 杨卫 -----------------end---------------------- ### 杨卫 -----------------end----------------------
### 庞善天 -----------------start--------------------
alter table dj_car_life_vd_equity_order add order_type tinyint(2) default '1' comment '订单类型(1:正常订单,2:打折策略,3:买赠策略,4:冲量活动,5:组合付款,6:内部结算)' after order_id;
### 庞善天 -----------------end----------------------
### 庞善天 -----------------start--------------------
alter table scrm_equity.`service_equity_order` add order_type tinyint(2) default '1' comment '订单类型(1:正常订单,2:打折策略,3:买赠策略,4:冲量活动,5:组合付款,6:内部结算)' after contract_no;
### 庞善天 -----------------end----------------------
...@@ -81,4 +81,13 @@ WHERE deleted_flag = 'N' AND task_type = 5 ...@@ -81,4 +81,13 @@ WHERE deleted_flag = 'N' AND task_type = 5
AND merchant_id IS NOT NULL AND merchant_id IS NOT NULL
AND id NOT IN (SELECT relation_id FROM supervisor_task_merchant WHERE deleted_flag = 'N'); AND id NOT IN (SELECT relation_id FROM supervisor_task_merchant WHERE deleted_flag = 'N');
### 谢海旭 -----------------end---------------------
\ No newline at end of file \ No newline at end of file
### 谢海旭 -----------------end---------------------
### 庞善天 -----------------start-------------------
UPDATE dj_car_life_vd_equity_order e
INNER JOIN dj_car_life_vd_quotation q ON e.order_id = q.order_id AND q.del_flag = 'N'
SET e.order_type = q.order_type
WHERE e.deleted_flag = 'N';
### 庞善天 -----------------end---------------------
\ No newline at end of file \ No newline at end of file
### 庞善天 -----------------start-------------------
UPDATE service_equity_order s
INNER JOIN dj_car_life_vd_equity_order e ON s.contract_no = e.contract_no AND e.deleted_flag = 'N'
SET s.order_type = e.order_type
WHERE s.deleted_flag = 'N';
### 庞善天 -----------------end---------------------
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!