|
@@ -212,16 +212,17 @@ async def handle_detail_background(
|
|
|
goods_art_no_arrays, excel_df
|
|
goods_art_no_arrays, excel_df
|
|
|
)
|
|
)
|
|
|
else:
|
|
else:
|
|
|
- remote_data = run_main.data_mode_generate_detail.get_goods_art_no_info(goods_art_list=goods_art_no_arrays)
|
|
|
|
|
- if remote_data == {}:
|
|
|
|
|
- raise UnicornException("所有货号在商品档案资料中不存在,请检查货号是否正确")
|
|
|
|
|
- error_goods_art_no = []
|
|
|
|
|
- for goods_art_no_check in goods_art_no_arrays:
|
|
|
|
|
- check_item = remote_data.get(goods_art_no_check,None)
|
|
|
|
|
- if not check_item:
|
|
|
|
|
- error_goods_art_no.append(goods_art_no_check)
|
|
|
|
|
- if len(error_goods_art_no) > 0:
|
|
|
|
|
- raise UnicornException("以下货号在商品档案资料中不存在,请检查货号是否正确:{}".format(error_goods_art_no))
|
|
|
|
|
|
|
+ if is_detail == 1:
|
|
|
|
|
+ remote_data = run_main.data_mode_generate_detail.get_goods_art_no_info(goods_art_list=goods_art_no_arrays)
|
|
|
|
|
+ if remote_data == {}:
|
|
|
|
|
+ raise UnicornException("所有货号在商品档案资料中不存在,请检查货号是否正确")
|
|
|
|
|
+ error_goods_art_no = []
|
|
|
|
|
+ for goods_art_no_check in goods_art_no_arrays:
|
|
|
|
|
+ check_item = remote_data.get(goods_art_no_check,None)
|
|
|
|
|
+ if not check_item:
|
|
|
|
|
+ error_goods_art_no.append(goods_art_no_check)
|
|
|
|
|
+ if len(error_goods_art_no) > 0:
|
|
|
|
|
+ raise UnicornException("以下货号在商品档案资料中不存在,请检查货号是否正确:{}".format(error_goods_art_no))
|
|
|
await _process_non_excel_mode(
|
|
await _process_non_excel_mode(
|
|
|
params, goods_art_no_arrays
|
|
params, goods_art_no_arrays
|
|
|
)
|
|
)
|