Commit 6a5342bf by chenxi

改动内容提交

1 parent f9cddabb
...@@ -5,17 +5,26 @@ update dj_car_life_upgrade_goods ...@@ -5,17 +5,26 @@ update dj_car_life_upgrade_goods
set on_shelf_status = 1 set on_shelf_status = 1
where id > 0; where id > 0;
insert into dj_car_life_goods_provider(provider_name, created_by, created_date, updated_by, updated_date, deleted_flag) values ('无', 'system', now(), 'system', now(), 'N'); insert into dj_car_life_goods_provider(provider_name, created_by, created_date, updated_by, updated_date, deleted_flag) values ('无', 'system', now(), 'system', now(), 'N'); and upgrade_goods_name !='' and type!='' and product_template_id is null;
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;
-- 刷产品、商品、套餐适用区域数据 todo -- 刷产品、商品、套餐适用区域数据 todo
-- 刷产品适用区域
INSERT INTO dj_smartcarlife.dj_car_life_upgrade_goods_area (upgrade_goods_id, province_code, province_name,
city_code, city_name, created_by, created_date,
updated_by, updated_date, deleted_flag)
select id,
'-1',
'全国',
'-1',
'全国',
created_by,
now(),
updated_by,
now(),
deleted_flag
from dj_car_life_upgrade_goods;
### 陈希 -----------------end--------------------- ### 陈希 -----------------end---------------------
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!