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
36af5f05
Commit
36af5f05
authored
Jan 30, 2024
by
liguangyu06
Browse files
优化
parent
50d50290
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_order_list/获取需求单列表_后台运营系统.air/获取需求单列表_后台运营系统.py
View file @
36af5f05
...
...
@@ -50,8 +50,9 @@ mysql_handle = mySql()
host
,
port
,
user
,
pwd
=
mysql_handle
.
getConf
(
db
=
"cmdc_db"
)
# 查询数据库中需求单数量
sql
=
"SELECT count(t.demandId) FROM `cmdc-order`.tc_demand t WHERE deleteSign = 0 and sellerCompanyCode = 00111 and paymentType in (1,2)"
total
=
mysql_handle
.
selectSql
(
host
,
port
,
user
,
pwd
,
"cmdc-user"
,
sql
)[
0
][
0
]
sql
=
"SELECT count(t.demandId) FROM `cmdc-order`.tc_demand t "
\
"WHERE deleteSign = 0 and sellerCompanyCode = 00111 and paymentType is not null"
total
=
int
(
mysql_handle
.
selectSql
(
host
,
port
,
user
,
pwd
,
"cmdc-user"
,
sql
)[
0
][
0
])
-
1
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict1"
,
total
)
...
...
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