Commit 46e96cc1 by zhoulm

历史数据处理DML

1 parent 2fcae779
...@@ -20,6 +20,17 @@ update dj_car_life_upgrade_goods a,dj_car_life_product_template b set a.product_ ...@@ -20,6 +20,17 @@ update dj_car_life_upgrade_goods a,dj_car_life_product_template b set a.product_
### 陈希 -----------------end--------------------- ### 陈希 -----------------end---------------------
### 立明 -----------------start------------------- ### 立明 -----------------start-------------------
INSERT INTO `dj_car_life_fee_category_scene` (`fee_category_id`, `base_scene_code`, `application_scene_type`, `application_scene_name`, `created_by`, `created_date`, `updated_by`, `updated_date`, `deleted_flag`) VALUES (1301, '100101', 1, '1.1', 'zhoulm_v5.8.0', NOW(), 'zhoulm_v5.8.0', now(), 'N');
INSERT INTO `dj_car_life_product_template` ( `product_name`, `product_code`, `price_unit_type`, `price_unit_name`, `created_by`, `created_date`, `updated_by`, `updated_date`, `deleted_flag`)
select distinct upgrade_goods_name,type,null,null,'system',NOW(),'system',NOW(),'N' from dj_car_life_upgrade_goods where deleted_flag='N' and upgrade_goods_name is not null and type is not null
and upgrade_goods_name !='' and type!='' and product_template_id is null;
update dj_car_life_upgrade_goods a,dj_car_life_product_template b set a.product_template_id=b.id where a.deleted_flag='N'
and upgrade_goods_name is not null and type is not null
and upgrade_goods_name !='' and type!='' and product_template_id is null and a.upgrade_goods_name=b.product_name and a.type=b.product_code;
### 立明 -----------------end--------------------- ### 立明 -----------------end---------------------
### 彦峰 -----------------start------------------- ### 彦峰 -----------------start-------------------
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!