Commit 0dade05b by 岳巧源

add incorrect supplier id

parent 56ec51e3
Showing with 2 additions and 0 deletions
...@@ -225,6 +225,8 @@ if __name__ == '__main__': ...@@ -225,6 +225,8 @@ if __name__ == '__main__':
"""handle the file and then post to rabbitmq""" """handle the file and then post to rabbitmq"""
rs_hk_supplier_id = get_supplier_id(supplier_name='Rs', conf=conf_environment) rs_hk_supplier_id = get_supplier_id(supplier_name='Rs', conf=conf_environment)
rs_cn_supplier_id = get_supplier_id(supplier_name='RS-CN', conf=conf_environment) rs_cn_supplier_id = get_supplier_id(supplier_name='RS-CN', conf=conf_environment)
if rs_cn_supplier_id == -1 or rs_hk_supplier_id == -1:
sys.exit("can't query the correct supplier id.")
handle_hk_csv(extract_dir + handle_file_name_1, conf_environment, rs_hk_supplier_id) handle_hk_csv(extract_dir + handle_file_name_1, conf_environment, rs_hk_supplier_id)
handle_cn_csv(extract_dir + handle_file_name_3, conf_environment, rs_cn_supplier_id) handle_cn_csv(extract_dir + handle_file_name_3, conf_environment, rs_cn_supplier_id)
......
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