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-cmdc
Commits
d29594bd
Commit
d29594bd
authored
1 year ago
by
liguangyu06
Browse files
Options
Download
Email Patches
Plain Diff
优化
parent
acfe1963
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
air_case/cmdc_order_list/获取库存列表信息.air/获取库存列表信息.py
+2
-2
air_case/cmdc_order_list/获取库存列表信息.air/获取库存列表信息.py
with
2 additions
and
2 deletions
+2
-2
air_case/cmdc_order_list/获取库存列表信息.air/获取库存列表信息.py
+
2
-
2
View file @
d29594bd
...
...
@@ -51,7 +51,7 @@ api_time = float(result.elapsed.total_seconds())
# 获取库存列表中总库存
result
=
json
.
loads
(
result
.
content
)
#
print(result)
print
(
result
)
result
=
{
"stockQty"
:
result
[
"data"
][
"stockQty"
]}
# 将接口响应时间添加至result
...
...
@@ -69,7 +69,7 @@ sql = "SELECT sum(t.quantity)/10000 FROM `cmdc-product`.ic_inventory t " \
# print(sql)
total
=
(
mysql_handle
.
selectSql
(
host
,
port
,
user
,
pwd
,
"cmdc-product"
,
sql
)[
0
][
0
]
if
mysql_handle
.
selectSql
(
host
,
port
,
user
,
pwd
,
"cmdc-product"
,
sql
)[
0
][
0
]
else
0
)
total
=
0
#
total = 0
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict109"
,
int
(
total
))
# print(check_dict)
...
...
This diff is collapsed.
Click to expand it.
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