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
9f762ba0
Commit
9f762ba0
authored
May 07, 2024
by
liguangyu06
Browse files
优化
parent
0df7e738
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_order_list/获取用户JDE地址信息.air/获取用户JDE地址信息.py
View file @
9f762ba0
...
...
@@ -52,6 +52,7 @@ api_time = float(result.elapsed.total_seconds())
# 获取用户JDE地址信息
result
=
json
.
loads
(
result
.
content
)
# print(result)
result
=
{
"total"
:
len
(
result
[
"data"
])}
# 将接口响应时间添加至result
...
...
@@ -63,10 +64,10 @@ mysql_handle = mySql()
host
,
port
,
user
,
pwd
=
mysql_handle
.
getConf
(
db
=
"cmdc_db"
)
# 查询数据库中用户JDE地址数量
sql
=
"SELECT count(
t.addressId
) FROM `cmdc-user`.cmdc_user_address t "
\
"WHERE userId = {} AND isJde = 0 AND companyId = 7 AND deleteSign = 0
AND isDefault = 0
"
.
format
(
customerId
)
sql
=
"SELECT count(
1
) FROM `cmdc-user`.cmdc_user_address t "
\
"WHERE userId = {} AND isJde = 0 AND companyId = 7 AND deleteSign = 0 "
.
format
(
customerId
)
total
=
mysql_handle
.
selectSql
(
host
,
port
,
user
,
pwd
,
"cmdc-cms"
,
sql
)[
0
][
0
]
# print(sql)
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict102"
,
total
)
# print(check_dict)
...
...
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