Commit 33f81468 authored by 王浩's avatar 王浩

Merge branch 'test' into 'master'

product system

See merge request !82
parents 8c29e159 ac3ab732
...@@ -47,7 +47,8 @@ class ProductBatchCreate(BaseView): ...@@ -47,7 +47,8 @@ class ProductBatchCreate(BaseView):
self.add_parallel_rpc_call_info('create_brand', 'neptune/commodity/brand/create', self.add_parallel_rpc_call_info('create_brand', 'neptune/commodity/brand/create',
cn_name=brand_info.get('cnName'), icon=brand_info.get('imgSrc'), cn_name=brand_info.get('cnName'), icon=brand_info.get('imgSrc'),
description=brand_info.get('description'), en_name=brand_info.get('en_name'), description=brand_info.get('description'), en_name=brand_info.get('en_name'),
origin_brand_id=brand_info.get('id'), platform=PRODUCT_FLATFORM.BEVOL, product_id=product_id) origin_brand_id=brand_info.get('id'), platform=PRODUCT_FLATFORM.BEVOL, product_id=product_id,
classify_id=1)
if composition_infos: if composition_infos:
self.add_parallel_rpc_call_info('batch_create_composition', 'neptune/commodity/composition/batch_create', self.add_parallel_rpc_call_info('batch_create_composition', 'neptune/commodity/composition/batch_create',
infos=composition_infos, platform=PRODUCT_FLATFORM.BEVOL, product_id=product_id) infos=composition_infos, platform=PRODUCT_FLATFORM.BEVOL, product_id=product_id)
...@@ -93,7 +94,8 @@ class ProductBatchCreate(BaseView): ...@@ -93,7 +94,8 @@ class ProductBatchCreate(BaseView):
grade=product_info.get('grade'), price=product_info.get('price'), grade=product_info.get('grade'), price=product_info.get('price'),
country=product_info.get('country'), country=product_info.get('country'),
comment_nums=product_info.get('comment_nums'), comment_nums=product_info.get('comment_nums'),
origin_product_id=product_info.get('id'), platform=PRODUCT_FLATFORM.BEVOL) origin_product_id=product_info.get('id'), platform=PRODUCT_FLATFORM.BEVOL,
classify_ids=[1])
return error, ret return error, ret
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment