Commit dd59a427 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程五脚本编写

parent 594e3ebf
...@@ -226,9 +226,13 @@ class delData(object): ...@@ -226,9 +226,13 @@ class delData(object):
cursor = connection.cursor() cursor = connection.cursor()
# 删除供应关系 # 删除供应关系
info = FileUtils().r_info8('b5_spd3_core_business_flow', "供货关系申请2", 'message') info = FileUtils().r_info8('b5_spd3_core_business_flow', "供货关系申请2", 'message')
e_corpId = info['e_corpId'] try:
sql = "delete from supply_relation where prov_id in(select id from bas_company_info where id = '%s');"%e_corpId e_corpId = info['e_corpId']
print(sql) sql = "delete from supply_relation where prov_id in(select id from bas_company_info where id = '%s');"%e_corpId
print(sql)
except:
sql = "delete from supply_relation where prov_id in(select id from bas_company_info where id = 'aaaa');"
print(sql)
cursor.execute(sql) cursor.execute(sql)
cursor.execute("commit;") cursor.execute("commit;")
print('内网供应关系删除成功 ') print('内网供应关系删除成功 ')
......
Supports Markdown
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