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
7221ea16
Commit
7221ea16
authored
Oct 08, 2024
by
xiao-hesheng
Browse files
流程五脚本提交
parent
8fc3ac18
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_a6流程五_中心库入库结算_正结算2_外网配送_数据库验证.air/a_a6流程五_中心库入库结算_正结算2_外网配送_数据库验证.py
View file @
7221ea16
...
@@ -386,11 +386,11 @@ from a_a6流程五_中心库入库结算_正结算2_外网配送 import order_dp
...
@@ -386,11 +386,11 @@ from a_a6流程五_中心库入库结算_正结算2_外网配送 import order_dp
try
:
try
:
token
,
projectCode1
,
uxid1
,
corpId1
,
info1
=
call_login
(
1
)
token
,
projectCode1
,
uxid1
,
corpId1
,
info1
=
call_login
(
1
)
#
#
order_dp(1, token, projectCode1, uxid1) # 1低值
order_dp
(
1
,
token
,
projectCode1
,
uxid1
)
# 1低值
#
order_dp(2, token, projectCode1, uxid1) # 2高值
order_dp
(
2
,
token
,
projectCode1
,
uxid1
)
# 2高值
#
order_dp(3, token, projectCode1, uxid1) # 3试剂
order_dp
(
3
,
token
,
projectCode1
,
uxid1
)
# 3试剂
time
.
sleep
(
12
)
list_data
=
[
'16'
,
'20'
,
'66'
]
list_data
=
[
'16'
,
'20'
,
'66'
]
for
i
in
list_data
:
for
i
in
list_data
:
time
.
sleep
(
6
)
time
.
sleep
(
6
)
...
...
air_case/b6_spd3_core_business_flow_database_check/a_a7流程五_中心库入库结算_正结算3_内网验收入库结算_数据库验证.air/a_a7流程五_中心库入库结算_正结算3_内网验收入库结算_数据库验证.py
View file @
7221ea16
This diff is collapsed.
Click to expand it.
common/db/sql/sql_del_branch_info.py
View file @
7221ea16
...
@@ -829,15 +829,19 @@ class delData(object):
...
@@ -829,15 +829,19 @@ class delData(object):
# 查询脚本创建的的院区
# 查询脚本创建的的院区
sql1
=
"select id from mcms_branch_info where name like '%%东土城路院区%%' and id <>'%s';"
%
no_branch_id
sql1
=
"select id from mcms_branch_info where name like '%%东土城路院区%%' and id <>'%s';"
%
no_branch_id
cursor
.
execute
(
sql1
)
cursor
.
execute
(
sql1
)
results
=
cursor
.
fetchone
()
# results = cursor.fetchone()
str1
=
str
(
results
)
results
=
cursor
.
fetchall
()
new_str1
=
str1
.
replace
(
',)'
,
''
)
list_1
=
[]
new_str1
=
new_str1
.
replace
(
'('
,
''
)
for
i
in
results
:
new_str1
=
new_str1
.
replace
(
','
,
''
)
str1
=
str
(
i
)
new_str1
=
new_str1
.
replace
(
"'"
,
''
)
new_str1
=
str1
.
replace
(
',)'
,
''
)
new_str1
=
new_str1
.
replace
(
'('
,
''
)
new_str1
=
new_str1
.
replace
(
','
,
''
)
new_str1
=
new_str1
.
replace
(
"'"
,
''
)
list_1
.
append
(
new_str1
)
# print(new_str1)
# print(new_str1)
cursor
.
close
()
cursor
.
close
()
return
new_
st
r
1
return
li
st
_
1
# delData().Delete_branch_by_id()
# delData().Delete_branch_by_id()
# delData().Delete_goods_change_info()
# delData().Delete_goods_change_info()
...
...
main1/main_text.py
View file @
7221ea16
...
@@ -301,15 +301,17 @@ def main_text():
...
@@ -301,15 +301,17 @@ def main_text():
root
.
geometry
(
"+{}+{}"
.
format
(
x
,
y
))
root
.
geometry
(
"+{}+{}"
.
format
(
x
,
y
))
root
.
resizable
(
False
,
False
)
root
.
resizable
(
False
,
False
)
combo
=
ttk
.
Combobox
(
root
)
combo
=
ttk
.
Combobox
(
root
)
branch_id
=
delData
().
get_branch_id_bydb
(
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"院区新增"
,
'message'
)[
'branch_id'
])
branch_id_list
=
delData
().
get_branch_id_bydb
(
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"院区新增"
,
'message'
)[
'branch_id'
])
combo
[
"values"
]
=
(
branch_id
)
for
i
in
branch_id_list
:
combo
.
current
(
0
)
# 设置默认选项
combo
[
"values"
]
=
(
i
)
combo
.
bind
(
"<<ComboboxSelected>>"
,
dropdown_changed
)
combo
.
current
(
0
)
# 设置默认选项
combo
.
pack
()
combo
.
bind
(
"<<ComboboxSelected>>"
,
dropdown_changed
)
button
=
tk
.
Button
(
root
,
text
=
"删除此院区数据"
,
command
=
lambda
:
button_clicked
(
branch_id
))
combo
.
pack
()
button
.
pack
()
button
=
tk
.
Button
(
root
,
text
=
"删除此院区数据"
,
command
=
lambda
:
button_clicked
(
i
))
button
.
pack
()
root
.
mainloop
()
root
.
mainloop
()
def
button_clicked
(
branch_id
):
def
button_clicked
(
branch_id
):
result
=
confirm
()
result
=
confirm
()
...
@@ -326,6 +328,7 @@ def main_text():
...
@@ -326,6 +328,7 @@ def main_text():
delData
().
Delete_business_Data_All2
()
delData
().
Delete_business_Data_All2
()
delData
().
Delete_branch_by_id
(
3
,
branch_id
)
delData
().
Delete_branch_by_id
(
3
,
branch_id
)
print
(
branch_id
,
'删除完毕'
)
print
(
branch_id
,
'删除完毕'
)
def
get_input
():
def
get_input
():
import
tkinter
as
tk
import
tkinter
as
tk
from
tkinter
import
simpledialog
from
tkinter
import
simpledialog
...
...
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