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
7606b6ab
Commit
7606b6ab
authored
Aug 01, 2024
by
xiao-hesheng
Browse files
优化调整脚本
parent
b21d3b85
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_b3流程十请领业务流_二级库向边仓_数据库验证.air/a_b3流程十请领业务流_二级库向边仓_数据库验证.py
View file @
7606b6ab
...
...
@@ -217,6 +217,7 @@ def check_mcms_dept_buy(type=16):
pkgDefId
=
commonFuc
().
analysis_json
(
'pkgDefId'
,
list_a
)
pkgDefName
=
commonFuc
().
analysis_json
(
'pkgDefName'
,
list_a
)
# 获取边仓id
time
.
sleep
(
3
)
target_stock_id
=
get_id
(
"select logic_id FROM yb_direct WHERE branch_id ='%s' order by create_time desc LIMIT 1;"
%
branch_id
)
bill_expdt_date
=
get_expdt_date
(
"select bill_expdt_date from mcms_dept_buy where branch_id='%s' and bill_mode='%s' and buy_kind='KS' order by create_time desc LIMIT 1;"
%
(
...
...
common/common_func.py
View file @
7606b6ab
...
...
@@ -525,7 +525,7 @@ class commonFuc(object):
def
randomString
(
self
,
n
):
import
string
import
random
s
=
""
.
join
(
random
.
sample
(
string
.
ascii_letters
+
string
.
digits
+
"!@#$%^&*
()
"
,
n
))
s
=
""
.
join
(
random
.
sample
(
string
.
ascii_letters
+
string
.
digits
+
"!@#$%^&*"
,
n
))
return
s
def
random_int
(
self
):
import
random
...
...
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