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
5e718f0f
Commit
5e718f0f
authored
Oct 18, 2024
by
xiao-hesheng
Browse files
流程五脚本提交
parent
658c3efd
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_a3_流程三_产品导入和审批_数据库验证.air/a_a3_流程三_产品导入和审批_数据库验证.py
View file @
5e718f0f
...
...
@@ -19,20 +19,25 @@ import sys
def
check_mcms_goods_info
(
type
=
1
):
print
(
'检查审批前的产品信息'
)
if
type
==
1
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message1'
)[
"hosGoodsId"
]
elif
type
==
2
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
elif
type
==
3
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message3'
)[
"hosGoodsId"
]
elif
type
==
4
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message4'
)[
"hosGoodsId"
]
elif
type
==
5
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message5'
)[
"hosGoodsId"
]
else
:
try
:
if
type
==
1
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message1'
)[
"hosGoodsId"
]
elif
type
==
2
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
elif
type
==
3
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message3'
)[
"hosGoodsId"
]
elif
type
==
4
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message4'
)[
"hosGoodsId"
]
elif
type
==
5
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message5'
)[
"hosGoodsId"
]
else
:
hos_goods_id
=
'hos_goods_id'
# if hos_goods_id==None:
# print('产品信息还未写入文件,请检查脚本')
# sys.exit(0)
except
Exception
as
e
:
print
(
"发生异常:"
,
str
(
e
))
hos_goods_id
=
'hos_goods_id'
if
hos_goods_id
==
None
:
print
(
'产品信息还未写入文件,请检查脚本'
)
sys
.
exit
(
0
)
branch_id
=
get_branch_id
()
sql1
=
"select * from spd_ybtest_hdi.mcms_goods_info where id='%s';"
%
hos_goods_id
...
...
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