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
ccca8b41
Commit
ccca8b41
authored
Jul 26, 2024
by
xiao-hesheng
Browse files
数据库验证流程十三脚本编写
parent
54e69d0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_b4流程十一请领业务流_二级库向直送_数据库验证.air/a_b4流程十一请领业务流_二级库向直送_数据库验证.py
View file @
ccca8b41
...
...
@@ -2109,7 +2109,7 @@ def check_mcms_psi_batch_in(DR_ID, type, order_no, source_id1):
else
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
dept_name
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid2'
]
shelf_code
=
get_stockAreaId_new_fromDb
(
get_branch_name
()
+
'中心库房'
,
1
)
shelf_code
=
get_stockAreaId_new_fromDb
(
get_branch_name
(),
1
)
create_user
=
get_login_user_uxid_bydb
(
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)[
'username1'
])
create_time
=
get_create_time
(
"select create_time from mcms_psi_batch where pid='%s';"
%
DR_ID
)
last_modified
=
get_create_time
(
"select last_modified from mcms_psi_batch where pid='%s';"
%
DR_ID
)
...
...
air_case/public1/public1/public1.py
View file @
ccca8b41
...
...
@@ -1890,6 +1890,7 @@ def get_stockAreaId_new_fromDb(deptName, type=1):
# 中心库房名称
branch_name
=
FileUtils
().
r_info
(
module
,
'院区新增'
)[
"branch_name"
]
stockId
=
get_stockId_fromdb
(
branch_name
+
'中心库房'
)
deptName
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid1'
]
# 二级库房名称
elif
type
==
2
:
stockId
=
get_stockId_fromdb
(
deptName
+
'库房'
)
...
...
@@ -1901,6 +1902,7 @@ def get_stockAreaId_new_fromDb(deptName, type=1):
# 获取库房id==========结束============
# ====获取库区id===== 开始==========
sql
=
"select shelf_code from mcms_stock_shelf where stock_Id='%s'and address='%s';"
%
(
stockId
,
deptName
)
print
(
sql
)
shelfCode
=
get_id
(
sql
)
...
...
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