Commit 26f6433a authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程十二脚本编写

parent 5a30920a
......@@ -427,9 +427,9 @@ def second_dept_return_Out_Stock(type): # 二级库退库出库
try:
updateUserLoginDefaultRange(get_listUserMgrRangePage1(2)) # 设置登录账号默认权限是三级库
second_dept_return_Out_Stock(2) # 高值耗材退货出库
# second_dept_return_Out_Stock(1) # 低值耗材退货出库
# second_dept_return_Out_Stock(3) # 低值耗材退货出库
second_dept_return_Out_Stock(2) #高值耗材退货出库
# second_dept_return_Out_Stock(1) #低值耗材退货出库
# second_dept_return_Out_Stock(3) #低值耗材退货出库
# second_dept_one_key_in(2)
# second_dept_one_key_in(2)
# second_dept_one_key_in(2)
......
......@@ -631,6 +631,9 @@ class delData(object):
sql7 = "delete from mcms_operation_notice where branch_name like '%东土城路院区_____';"
sql8 = "delete from mcms_purchase_detail where pid in(select id from mcms_purchase where branch_id not in(select id from spd3_herp_test2.mcms_branch_info ));"
sql9 = "delete from mcms_purchase where branch_id not in(select id from spd3_herp_test2.mcms_branch_info );"
#删除发票中的垃圾数据
sql10=" delete from mcms_invoice where id in (select pid from mcms_invoice_detail where hos_goods_id not in(select id from mcms_goods_info));"
sql11=" delete from mcms_invoice_detail where hos_goods_id not in(select id from mcms_goods_info);"
cursor.execute(sql1)
cursor.execute(sql2)
cursor.execute(sql3)
......@@ -640,6 +643,8 @@ class delData(object):
cursor.execute(sql7)
cursor.execute(sql8)
cursor.execute(sql9)
cursor.execute(sql10)
cursor.execute(sql11)
cursor.execute("commit;")
print('外网业务数据,包括采购,发票,结算等据删除成功')
cursor.close()
......
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