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
3c9cecbb
Commit
3c9cecbb
authored
Apr 14, 2025
by
liguangyu06
Browse files
增加多线程
parent
f72f2144
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/b2_herp3_bs/生成结算数据低值.air/生成结算数据低值.py
View file @
3c9cecbb
...
...
@@ -57,6 +57,7 @@ def c_pur():
# 轮询获取具体产品信息
for
i
in
result
[
"data"
][
"data"
]:
pkg_def_id
=
i
[
"pkgDefVOList"
][
0
][
"pkgDefId"
]
print
(
i
)
# 设置结算方式为入中心库结算
i
[
"inSettlement"
]
=
1
...
...
@@ -95,7 +96,7 @@ def c_pur():
"areaCode"
:
"area0379"
,
"deptId"
:
"391d5e06d0ba4cb39a3a7ee2e7934ae7"
,
"provId"
:
"p00002a0c"
,
"purMode"
:
"
6
0"
,
"purMode"
:
"
1
0"
,
"remark"
:
""
,
"sourceType"
:
3
,
"stockId"
:
"b278f988a25c4678a1448fb08c3b4a41"
,
...
...
@@ -115,7 +116,7 @@ def c_pur():
# 创建多线程
threads
=
[]
for
_
in
range
(
5
):
for
_
in
range
(
1
):
t
=
threading
.
Thread
(
target
=
c_pur
)
threads
.
append
(
t
)
t
.
start
()
...
...
data/b2_herp3_bs/data
View file @
3c9cecbb
...
...
@@ -232,7 +232,7 @@ json_headers_pur: {
"goodsName": "性能测试低值产品"
},
"pageNum": 1,
"pageSize":
20
00
"pageSize":
5
00
}
...
...
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