Commit 63ec1cee by 岳巧源

modify script

parent 36ed080c
Showing with 5 additions and 5 deletions
......@@ -7,6 +7,6 @@ rabbit_mq_password = "jy2y2900"
rabbit_mq_exchange = "europa_erp_parse_file_exchange"
rabbit_mq_routing_key = "europa_erp_sku_routing"
tmp_xls_file_dir = "/data/golang/src/europa-erp-go/scripts/data_server/tmp"
tmp_xls_file_dir = "/data/golang/src/europa-erp-go/scripts/data_server/tmp/"
......@@ -7,4 +7,4 @@ rabbit_mq_password = "ans2024123"
rabbit_mq_exchange = "europa_erp_parse_file_exchange"
rabbit_mq_routing_key = "europa_erp_sku_routing"
tmp_xls_file_dir = "/data/golang/src/europa-erp-go/scripts/data_server/tmp"
\ No newline at end of file
tmp_xls_file_dir = "/data/golang/src/europa-erp-go/scripts/data_server/tmp/"
\ No newline at end of file
......@@ -55,6 +55,8 @@ def resolve(file_name: str, supplier_id: int):
for i in range(len(df.index.values)):
goods_name = str(df.loc[i, "原厂型号"])
brand_name = str(df.loc[i, "品牌"])
if goods_name.strip() == "" or brand_name.strip() == "":
continue
stock = str(df.loc[i, "库存"])
moq = str(df.loc[i, "起订量"])
price_is_us = False
......@@ -65,8 +67,6 @@ def resolve(file_name: str, supplier_id: int):
str(df.loc[i, "批次"]): int(df.loc[i, "库存"]),
}
eccn = ""
if goods_name.strip() == "" or brand_name.strip() == "":
continue
if str(df.loc[i, "批次"]).strip() == "":
batch_sn = {}
table = {
......
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 sign in to comment