Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-spd
Commits
e516d861
Commit
e516d861
authored
Nov 01, 2024
by
xiao-hesheng
Browse files
脚本优化
parent
3cf189e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/db/sql/sql_del_branch_info.py
View file @
e516d861
...
...
@@ -269,6 +269,18 @@ class delData(object):
cursor
.
execute
(
"commit;"
)
print
(
'内网供应关系删除成功 '
)
cursor
.
close
()
def
Del_supply_relation1
(
self
):
connection
=
pymysql
.
connect
(
host
=
"10.17.65.108"
,
user
=
"root"
,
password
=
"Cmic.2023"
,
database
=
"spd3_herp_test2"
,
charset
=
"utf8"
)
cursor
=
connection
.
cursor
()
# 删除供应关系
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"供货关系申请2"
,
'message'
)
e_corpId
=
info
[
'e_corpId'
]
sql
=
"delete from supply_relation where prov_id in (select id from bas_company_info where cname like '%%国药集团公司_____%%') and prov_id!='%s';"
%
e_corpId
cursor
.
execute
(
sql
)
cursor
.
execute
(
"commit;"
)
print
(
'内网供应关系删除成功 '
)
cursor
.
close
()
def
Del_reporter_data
(
self
,
type
=
1
,
branch_id
=
'branch_id'
):
connection
=
pymysql
.
connect
(
host
=
"10.17.65.108"
,
user
=
"root"
,
password
=
"Cmic.2023"
,
...
...
@@ -1026,3 +1038,4 @@ class delData(object):
# delData().Delete_business_Data_All()
# delData().Delete_business_Data_All2()
# delData().check_goods_info()
# delData().Del_supply_relation1()
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment