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
a366dea0
Commit
a366dea0
authored
Jul 16, 2024
by
xiao-hesheng
Browse files
数据库验证流程十一脚本编写
parent
1a06ecc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_b4流程十一请领业务流_二级库向直送_数据库验证.air/a_b4流程十一请领业务流_二级库向直送_数据库验证.py
View file @
a366dea0
...
...
@@ -748,6 +748,7 @@ def check_mcms_purchase(type=16):
# 要验证的数据sql
sql1
=
"select * from mcms_purchase where branch_id='%s' and bill_mode='%s' and id='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
type
,
id1
)
print
(
sql1
)
# 获取实际值
actual
=
check_mcms_pur_plan_sql
(
sql1
)
print
(
'actual'
,
actual
)
...
...
@@ -764,24 +765,25 @@ def check_mcms_purchase(type=16):
area_code
=
commonFuc
().
analysis_json
(
'shelfCode'
,
list_a
)
area_name
=
'默认库区'
# source_id = id1
rec_user
=
get_login_user_uxid
()
rec_user
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)[
'username1'
]
# rec_user = get_login_user_uxid()
rec_addr
=
'自动化测试'
sql
=
"select bill_expdt_date from mcms_pur_plan where branch_id='%s' and source_id='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
buyBillId
)
print
(
sql
)
bill_expdt_date
=
get_expdt_date
(
sql
)
create_user
=
rec_user
create_user
=
get_login_user_uxid
()
create_time
=
get_create_time
(
"select create_time from mcms_pur
_plan
where branch_id='%s' and
source_
id='%s' order by create_time desc LIMIT 1;"
%
(
"select create_time from mcms_pur
chase
where branch_id='%s' and id='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
id1
))
last_modified
=
get_create_time
(
"select last_modified from mcms_pur
_plan
where branch_id='%s' and
source_
id='%s' order by create_time desc LIMIT 1;"
%
(
"select last_modified from mcms_pur
chase
where branch_id='%s' and id='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
id1
))
last_modified_user
=
create_user
last_auditor
=
last_modified
last_auditor
=
rec_user
last_audit_time
=
get_create_time
(
"select last_audit_time from mcms_pur
_plan
where branch_id='%s' and
source_
id='%s' order by create_time desc LIMIT 1;"
%
(
"select last_audit_time from mcms_pur
chase
where branch_id='%s' and id='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
id1
))
if
type
==
16
:
...
...
@@ -807,7 +809,7 @@ def check_mcms_purchase(type=16):
exe_prov_id
=
prov_id
exe_prov_name
=
prov_name
close_date
=
get_create_time
(
"select c
reate_tim
e from mcms_pur
_plan
where id='%s';"
%
(
"select c
lose_dat
e from mcms_pur
chase
where id='%s';"
%
(
id1
))
source_id
=
planBillId
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
...
...
@@ -876,7 +878,7 @@ def check_mcms_purchase(type=16):
exe_prov_id
=
prov_id
exe_prov_name
=
prov_name
close_date
=
get_create_time
(
"select c
reate_tim
e from mcms_pur
_plan
where id='%s';"
%
(
"select c
lose_dat
e from mcms_pur
chase
where id='%s';"
%
(
id1
))
source_id
=
planBillId
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
...
...
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