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
00c33326
Commit
00c33326
authored
Sep 06, 2024
by
xiao-hesheng
Browse files
流程八脚本提交
parent
d8dcb3e8
Changes
3
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_b1流程八_高值跟台业务流程_数据库验证.air/a_b1流程八_高值跟台业务流程_数据库验证.py
View file @
00c33326
...
...
@@ -100,34 +100,16 @@ def check_mcms_operation_apply_list(pid):
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message1'
)[
"hosGoodsId"
]
prov_id
=
get_prov_id
()
sub_prov_id
=
get_prov_id
()
rec_dept_id
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid2'
]
rec_dept_name
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid2'
]
target_stock_id
=
get_stockId_fromdb
(
rec_dept_name
+
'库房'
)
rec_address_id
=
get_stockAreaId_new_fromDb
(
rec_dept_name
,
2
)
source_corp_id
=
get_hosid
()
source_branch_id
=
get_branch_id
()
source_dept_id
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid1'
]
source_dept_name
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid1'
]
source_stock_id
=
get_stockId_fromdb
(
get_branch_name
()
+
'中心库房'
)
source_area_code
=
get_stockAreaId_new_fromDb
(
source_dept_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_operation_apply where id='%s';"
%
ID
)
last_modified
=
get_create_time
(
"select last_modified from mcms_operation_apply where id='%s';"
%
ID
)
oper_date
=
get_create_time
(
"select oper_date from mcms_operation_apply where id='%s';"
%
ID
)
expire_date
=
get_create_time
(
"select expire_date from mcms_operation_apply where id='%s';"
%
ID
)
create_time
=
get_create_time
(
"select create_time from mcms_operation_apply_list where id='%s';"
%
ID
)
last_modified
=
get_create_time
(
"select last_modified from mcms_operation_apply_list where id='%s';"
%
ID
)
last_modified_user
=
create_user
hos_id
=
get_hosid
()
hos_name
=
get_hosname
()
branch_name
=
get_branch_name
()
# 子表检查
check_mcms_operation_apply_list
(
ID
)
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'check_mcms_operation_apply'
,
ID
,
hos_id
,
hos_name
,
branch_id
,
branch_name
,
order_no
,
rec_dept_id
,
rec_dept_name
,
rec_address_id
,
oper_date
,
expire_date
,
create_user
,
create_time
,
last_modified
,
last_modified_user
'check_mcms_operation_apply_list'
,
ID
,
pid
,
hos_goods_id
,
prov_id
,
sub_prov_id
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
...
...
air_case/b6_spd3_core_business_flow_database_check/a_b4流程十一请领业务流_二级库向直送_数据库验证.air/a_b4流程十一请领业务流_二级库向直送_数据库验证.py
View file @
00c33326
...
...
@@ -2387,13 +2387,13 @@ def main():
sys
.
path
.
append
(
pro_path
+
r
'/air_case/b5_spd3_core_business_flow/a_b4流程十一请领业务流_二级库向直送.air'
)
using
(
pro_path
+
r
'//air_case/b5_spd3_core_business_flow/a_b4流程十一请领业务流_二级库向直送.air'
)
from
a_b4流程十一请领业务流_二级库向直送
import
goods_move2
from
a_b4流程十一请领业务流_二级库向直送
import
goods_move2
,
second_dept_Request
,
BuyCarSubmit
,
purchase_module_process
,
order_dp
,
check_accept_order
from
a_b4流程十一请领业务流_二级库向直送
import
second_dept_Request
from
a_b4流程十一请领业务流_二级库向直送
import
BuyCarSubmit
from
a_b4流程十一请领业务流_二级库向直送
import
purchase_module_process
from
a_b4流程十一请领业务流_二级库向直送
import
order_dp
from
a_b4流程十一请领业务流_二级库向直送
import
check_accept_order
#
from a_b4流程十一请领业务流_二级库向直送 import second_dept_Request
#
from a_b4流程十一请领业务流_二级库向直送 import BuyCarSubmit
#
from a_b4流程十一请领业务流_二级库向直送 import purchase_module_process
#
from a_b4流程十一请领业务流_二级库向直送 import order_dp
#
from a_b4流程十一请领业务流_二级库向直送 import check_accept_order
for
i
in
range
(
1
):
updateUserLoginDefaultRange
(
get_listUserMgrRangePage
(
2
))
# 设置登录账号默认权限是二级库
...
...
data/b6_spd3_core_business_flow_database_check/data
View file @
00c33326
...
...
@@ -297,4 +297,5 @@
#跟台手术申请单主表
"check_mcms_operation_apply": '{"id": "%s", "hos_id": "%s", "hos_name": "%s", "branch_id": "%s", "branch_name": "%s", "order_no": "%s", "rec_dept_id": "%s", "rec_dept_name": "%s", "rec_address_id": "%s", "rec_address": "默认库区", "remark": "自动化测试", "patient_in_hos_id": "123456", "patient_id": None, "patient_name": "张三", "sex": 1, "age": 44, "oper_name": "血管扩张术", "oper_doctor": "李四", "oper_date": %s, "bed_num": "2", "opration_house": "设备科一手术间", "sur_dept_id": None, "sur_dept_name": "", "tb_status": 10, "is_operation_pkg": 0, "operation_apply_mode": 0, "expire_date": %s, "source_type": 1, "version": 0, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s"}'
#跟台手术申请单子表
\ No newline at end of file
#跟台手术申请单子表
"check_mcms_operation_apply_list": '{"id": "%s", "pid": "%s", "hos_goods_id": "%s", "goods_num": 1, "prov_id": "%s", "sub_prov_id": "%s", "operation_pkg_id": None, "operation_pkg_code": None, "price": Decimal("99.999900"), "in_settlement": 3, "tb_status": 10, "version": 0, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s"}'
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