Commit 49d6b824 by 岳巧源

add currency

parent cc09ad5c
Showing with 2 additions and 0 deletions
...@@ -64,6 +64,8 @@ def resolve(file_name: str, supplier_id: int): ...@@ -64,6 +64,8 @@ def resolve(file_name: str, supplier_id: int):
if currency.strip() == "" or currency.strip() == "nan": if currency.strip() == "" or currency.strip() == "nan":
continue continue
currency = currency.upper().strip() currency = currency.upper().strip()
if currency != "USD" and currency != "RMB":
continue
if goods_name.strip() == "" or brand_name.strip() == "" or goods_name.strip() == "nan" or brand_name.strip() == "nan": if goods_name.strip() == "" or brand_name.strip() == "" or goods_name.strip() == "nan" or brand_name.strip() == "nan":
continue continue
stock = str(int(df.loc[i, "库存"])) stock = str(int(df.loc[i, "库存"]))
......
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