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
5c835241
Commit
5c835241
authored
Aug 08, 2024
by
xiao-hesheng
Browse files
流程十五脚本编写
parent
ee414d9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_b5流程十二请领业务流_二级库向二级库.air/a_b5流程十二请领业务流_二级库向二级库.py
View file @
5c835241
...
@@ -426,21 +426,42 @@ def pick_execute():
...
@@ -426,21 +426,42 @@ def pick_execute():
print
(
'提交拣货执行单================='
,
url
)
print
(
'提交拣货执行单================='
,
url
)
if
billMode
==
'16'
:
if
billMode
==
'16'
:
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload51_1_1"
,
targetAreaCode
,
sourceId
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload51_1_1"
,
targetAreaCode
,
sourceId
)
print
(
'提交拣货执行单'
,
'request_body'
,
request_body
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'提交拣货执行单,result1'
,
result
)
DR_id
=
commonFuc
().
analysis_json
(
'data'
,
result
)
# 将拣货单id写入文件
info1
=
(
DR_id
,
DR_id
)
titlename
=
(
'DR_NO1低值'
,
'DR_NO1低值'
)
FileUtils
().
w_info8
(
info1
,
'b5_spd3_core_business_flow'
,
'拣货单低值id'
,
titlename
,
'message26'
)
elif
billMode
==
'20'
:
elif
billMode
==
'20'
:
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload51_1_2"
,
targetAreaCode
,
sourceId
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload51_1_2"
,
targetAreaCode
,
sourceId
)
print
(
'提交拣货执行单'
,
'request_body'
,
request_body
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'提交拣货执行单,result1'
,
result
)
DR_id
=
commonFuc
().
analysis_json
(
'data'
,
result
)
info1
=
(
DR_id
,
DR_id
)
titlename
=
(
'DR_NO1高值'
,
'DR_NO1高值'
)
FileUtils
().
w_info8
(
info1
,
'b5_spd3_core_business_flow'
,
'拣货单高值id'
,
titlename
,
'message26'
)
elif
billMode
==
'66'
:
elif
billMode
==
'66'
:
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload51_1_3"
,
targetAreaCode
,
sourceId
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload51_1_3"
,
targetAreaCode
,
sourceId
)
print
(
'提交拣货执行单'
,
'request_body'
,
request_body
)
print
(
'提交拣货执行单'
,
'request_body'
,
request_body
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'提交拣货执行单,result1'
,
result
)
print
(
' 提交拣货执行单,result1'
,
result
)
DR_id
=
commonFuc
().
analysis_json
(
'data'
,
result
)
DR_id
=
commonFuc
().
analysis_json
(
'data'
,
result
)
info1
=
(
DR_id
,
DR_id
)
titlename
=
(
'DR_NO1试剂'
,
'DR_NO1试剂'
)
DRNo_list
.
append
(
DR_id
)
FileUtils
().
w_info8
(
info1
,
'b5_spd3_core_business_flow'
,
'拣货单试剂id'
,
titlename
,
'message26'
)
# 将拣货单id写入文件
# print('提交拣货执行单', 'request_body', request_body)
info
=
(
DRNo_list
[
0
],
DRNo_list
[
1
],
DRNo_list
[
2
])
# result = commonFuc().http_post(url, request_body, headers)
titlename
=
(
'DR_NO1'
,
'DR_NO2'
,
'DR_NO3'
)
# print(' 提交拣货执行单,result1', result)
FileUtils
().
w_info8
(
info
,
'b5_spd3_core_business_flow'
,
'拣货单id'
,
titlename
,
'message26'
)
# DR_id=commonFuc().analysis_json('data',result)
# DRNo_list.append(DR_id)
# # 将拣货单id写入文件
# info = (DRNo_list[0], DRNo_list[1], DRNo_list[2])
# titlename = ('DR_NO1', 'DR_NO2', 'DR_NO3')
# FileUtils().w_info8(info, 'b5_spd3_core_business_flow', '拣货单id', titlename, 'message26')
# 复核===================================
# 复核===================================
...
...
air_case/b6_spd3_core_business_flow_database_check/a_b5流程十二请领业务流_二级库向二级库_数据库验证.air/a_b5流程十二请领业务流_二级库向二级库_数据库验证.py
View file @
5c835241
...
@@ -386,15 +386,18 @@ def check_mcms_psi_dept(type=16):
...
@@ -386,15 +386,18 @@ def check_mcms_psi_dept(type=16):
branch_id
,
type
)
branch_id
,
type
)
actual
=
check_mcms_dept_buy_sql
(
sql
)
actual
=
check_mcms_dept_buy_sql
(
sql
)
print
(
actual
)
print
(
actual
)
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"拣货单id"
,
'message26'
)
#
info = FileUtils().r_info8('b5_spd3_core_business_flow', "拣货单id", 'message26')
# print(info)
# print(info)
if
type
==
16
:
if
type
==
16
:
DR_ID
=
info
[
'DR_NO2'
]
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"拣货单低值id"
,
'message26'
)
DR_ID
=
info
[
'DR_NO1低值'
]
elif
type
==
20
:
elif
type
==
20
:
DR_ID
=
info
[
'DR_NO3'
]
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"拣货单高值id"
,
'message26'
)
DR_ID
=
info
[
'DR_NO1高值'
]
else
:
else
:
DR_ID
=
info
[
'DR_NO1'
]
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"拣货单试剂id"
,
'message28'
)
DR_ID
=
info
[
'DR_NO1试剂'
]
DR_ID
=
''
.
join
(
DR_ID
)
DR_ID
=
''
.
join
(
DR_ID
)
sql
=
"select order_no from mcms_psi_dept where id='%s';"
%
DR_ID
sql
=
"select order_no from mcms_psi_dept where id='%s';"
%
DR_ID
order_no
=
get_id
(
sql
)
order_no
=
get_id
(
sql
)
...
...
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