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
1a06ecc0
Commit
1a06ecc0
authored
Jul 16, 2024
by
xiao-hesheng
Browse files
数据库验证流程十一脚本编写
parent
dfbd0aba
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_b4流程十一请领业务流_二级库向直送_数据库验证.air/a_b4流程十一请领业务流_二级库向直送_数据库验证.py
View file @
1a06ecc0
...
@@ -38,7 +38,7 @@ def check_mcms_dept_buy_car(type=1):
...
@@ -38,7 +38,7 @@ def check_mcms_dept_buy_car(type=1):
print
(
'create_time'
,
create_time
)
print
(
'create_time'
,
create_time
)
id
=
get_id
(
id
=
get_id
(
"select id from mcms_dept_buy_car where branch_id='%s'and hos_goods_id='%s' order by create_time desc LIMIT 1;"
%
(
"select id from mcms_dept_buy_car where branch_id='%s'and hos_goods_id='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
hos_goods_id
))
branch_id
,
hos_goods_id
))
print
(
'id'
,
id
)
print
(
'id'
,
id
)
create_user
=
get_id
(
create_user
=
get_id
(
"select create_user from mcms_dept_buy_car where branch_id='%s'and hos_goods_id='%s' order by create_time desc LIMIT 1;;"
%
(
"select create_user from mcms_dept_buy_car where branch_id='%s'and hos_goods_id='%s' order by create_time desc LIMIT 1;;"
%
(
...
@@ -50,7 +50,7 @@ def check_mcms_dept_buy_car(type=1):
...
@@ -50,7 +50,7 @@ def check_mcms_dept_buy_car(type=1):
print
(
actual_value1
)
print
(
actual_value1
)
deptid2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid2'
]
deptid2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid2'
]
deptname2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid2'
]
deptname2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid2'
]
areaCode
=
get_stockAreaId_new_fromDb
(
deptname2
,
2
)
areaCode
=
get_stockAreaId_new_fromDb
(
deptname2
,
2
)
areaName
=
'默认库区'
areaName
=
'默认库区'
# 读取文件中的信息
# 读取文件中的信息
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"二级库请领产品信息"
,
'message21'
)
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"二级库请领产品信息"
,
'message21'
)
...
@@ -101,7 +101,8 @@ def check_mcms_dept_buy_car(type=1):
...
@@ -101,7 +101,8 @@ def check_mcms_dept_buy_car(type=1):
print
(
'error'
)
print
(
'error'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
#检查二级库请领单审批前的子表数据
# 检查二级库请领单审批前的子表数据
def
mcms_dept_buy_detail
(
type
=
16
):
def
mcms_dept_buy_detail
(
type
=
16
):
branch_id
=
get_branch_id
()
branch_id
=
get_branch_id
()
# 获取主表主键
# 获取主表主键
...
@@ -182,7 +183,8 @@ def mcms_dept_buy_detail(type=16):
...
@@ -182,7 +183,8 @@ def mcms_dept_buy_detail(type=16):
print
(
'error'
)
print
(
'error'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
#检查二级库请领单审批前的主表数据
# 检查二级库请领单审批前的主表数据
def
check_mcms_dept_buy
(
type
=
16
):
def
check_mcms_dept_buy
(
type
=
16
):
branch_id
=
get_branch_id
()
branch_id
=
get_branch_id
()
sql
=
"""select * from mcms_dept_buy where branch_id='%s' and bill_mode='%s' order by create_time desc LIMIT 1;
sql
=
"""select * from mcms_dept_buy where branch_id='%s' and bill_mode='%s' order by create_time desc LIMIT 1;
...
@@ -285,7 +287,8 @@ def check_mcms_dept_buy(type=16):
...
@@ -285,7 +287,8 @@ def check_mcms_dept_buy(type=16):
print
(
'error'
)
print
(
'error'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
#检查二级库请领单审批后的主表数据
# 检查二级库请领单审批后的主表数据
def
check_mcms_dept_buy_approval_after
(
type
=
16
):
def
check_mcms_dept_buy_approval_after
(
type
=
16
):
branch_id
=
get_branch_id
()
branch_id
=
get_branch_id
()
sql
=
"""select * from mcms_dept_buy where branch_id='%s' and bill_mode='%s' order by create_time desc LIMIT 1;
sql
=
"""select * from mcms_dept_buy where branch_id='%s' and bill_mode='%s' order by create_time desc LIMIT 1;
...
@@ -390,7 +393,8 @@ def check_mcms_dept_buy_approval_after(type=16):
...
@@ -390,7 +393,8 @@ def check_mcms_dept_buy_approval_after(type=16):
print
(
'error'
)
print
(
'error'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
#检查二级库请领单审批后的子表数据
# 检查二级库请领单审批后的子表数据
def
mcms_dept_buy_detail_approval_after
(
type
=
16
):
def
mcms_dept_buy_detail_approval_after
(
type
=
16
):
branch_id
=
get_branch_id
()
branch_id
=
get_branch_id
()
# 获取主表主键
# 获取主表主键
...
@@ -474,7 +478,8 @@ def mcms_dept_buy_detail_approval_after(type=16):
...
@@ -474,7 +478,8 @@ def mcms_dept_buy_detail_approval_after(type=16):
print
(
'error'
)
print
(
'error'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
#检查采购计划主表
# 检查采购计划主表
def
check_mcms_mcms_pur_plan
(
type
=
16
):
def
check_mcms_mcms_pur_plan
(
type
=
16
):
branch_id
=
get_branch_id
()
branch_id
=
get_branch_id
()
# 获取请领单主键id
# 获取请领单主键id
...
@@ -527,18 +532,19 @@ def check_mcms_mcms_pur_plan(type=16):
...
@@ -527,18 +532,19 @@ def check_mcms_mcms_pur_plan(type=16):
branch_id
,
id1
))
branch_id
,
id1
))
last_modified
=
create_time
last_modified
=
create_time
last_modified_user
=
create_user
last_modified_user
=
create_user
planOrderNo
=
PLAN_order_no
planOrderNo
=
PLAN_order_no
if
type
==
16
:
if
type
==
16
:
# 验证子表数据
# 验证子表数据
check_mcms_mcms_pur_plan_detail
(
id2
,
type
,
planOrderNo
)
check_mcms_mcms_pur_plan_detail
(
id2
,
type
,
planOrderNo
)
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_pur_plan'
,
id2
,
PLAN_order_no
,
hos_id
,
'mcms_pur_plan'
,
id2
,
PLAN_order_no
,
hos_id
,
get_branch_id
(),
dept_id1
,
dept_name1
,
rec_org_id
,
rec_org_name
,
get_branch_id
(),
dept_id1
,
dept_name1
,
rec_org_id
,
rec_org_name
,
area_code
,
area_name
,
source_id
,
rec_user
,
area_code
,
area_name
,
source_id
,
rec_user
,
rec_addr
,
bill_expdt_date
,
buyBillId
,
planBillId
,
planOrderNo
,
buyOrderNo
,
rec_addr
,
bill_expdt_date
,
buyBillId
,
planBillId
,
planOrderNo
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
buyOrderNo
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
elif
type
==
20
:
elif
type
==
20
:
check_mcms_mcms_pur_plan_detail
(
id2
,
type
,
planOrderNo
)
check_mcms_mcms_pur_plan_detail
(
id2
,
type
,
planOrderNo
)
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_pur_plan2'
,
id2
,
PLAN_order_no
,
hos_id
,
'mcms_pur_plan2'
,
id2
,
PLAN_order_no
,
hos_id
,
get_branch_id
(),
dept_id1
,
dept_name1
,
rec_org_id
,
rec_org_name
,
get_branch_id
(),
dept_id1
,
dept_name1
,
rec_org_id
,
rec_org_name
,
...
@@ -547,15 +553,16 @@ def check_mcms_mcms_pur_plan(type=16):
...
@@ -547,15 +553,16 @@ def check_mcms_mcms_pur_plan(type=16):
buyOrderNo
,
buyOrderNo
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
create_user
,
create_time
,
last_modified
,
last_modified_user
)
elif
type
==
66
:
elif
type
==
66
:
check_mcms_mcms_pur_plan_detail
(
id2
,
type
,
planOrderNo
)
check_mcms_mcms_pur_plan_detail
(
id2
,
type
,
planOrderNo
)
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_pur_plan3'
,
id2
,
PLAN_order_no
,
hos_id
,
'mcms_pur_plan3'
,
id2
,
PLAN_order_no
,
hos_id
,
get_branch_id
(),
dept_id1
,
dept_name1
,
rec_org_id
,
rec_org_name
,
get_branch_id
(),
dept_id1
,
dept_name1
,
rec_org_id
,
rec_org_name
,
area_code
,
area_name
,
source_id
,
rec_user
,
area_code
,
area_name
,
source_id
,
rec_user
,
rec_addr
,
bill_expdt_date
,
buyBillId
,
planBillId
,
planOrderNo
,
buyOrderNo
,
rec_addr
,
bill_expdt_date
,
buyBillId
,
planBillId
,
planOrderNo
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
buyOrderNo
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
else
:
else
:
expected
=
None
expected
=
None
actual_value1
=
get_process_list2
(
actual
)
actual_value1
=
get_process_list2
(
actual
)
expected_value1
=
get_process_list2
(
expected
)
expected_value1
=
get_process_list2
(
expected
)
actual_value2
=
actual_value1
.
replace
(
" "
,
""
)
actual_value2
=
actual_value1
.
replace
(
" "
,
""
)
...
@@ -574,15 +581,16 @@ def check_mcms_mcms_pur_plan(type=16):
...
@@ -574,15 +581,16 @@ def check_mcms_mcms_pur_plan(type=16):
print
(
'error'
)
print
(
'error'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
#检查采购计划子表
def
check_mcms_mcms_pur_plan_detail
(
id
,
type
,
planOrderNo
):
# 检查采购计划子表
def
check_mcms_mcms_pur_plan_detail
(
id
,
type
,
planOrderNo
):
branch_id
=
get_branch_id
()
branch_id
=
get_branch_id
()
# 根据采购计划主表的id获取采购计划单子表主键
# 根据采购计划主表的id获取采购计划单子表主键
sql
=
"select id from mcms_pur_plan_detail where pid='%s' order by create_time desc LIMIT 1;"
%
(
sql
=
"select id from mcms_pur_plan_detail where pid='%s' order by create_time desc LIMIT 1;"
%
(
id
)
id
)
id2
=
process_tuple
(
get_dept_buy_id
(
sql
))
# 采购计划单子表主键
id2
=
process_tuple
(
get_dept_buy_id
(
sql
))
# 采购计划单子表主键
sql
=
"select order_no from mcms_pur_plan where id='%s' order by create_time desc LIMIT 1;"
%
(
sql
=
"select order_no from mcms_pur_plan where id='%s' order by create_time desc LIMIT 1;"
%
(
id2
)
id2
)
PLAN_order_no
=
process_tuple
(
get_dept_buy_id
(
sql
))
# 采购计划单子表order_no
PLAN_order_no
=
process_tuple
(
get_dept_buy_id
(
sql
))
# 采购计划单子表order_no
# 要验证的数据sql
# 要验证的数据sql
sql1
=
"select * from mcms_pur_plan_detail where id='%s' order by create_time desc LIMIT 1;"
%
(
sql1
=
"select * from mcms_pur_plan_detail where id='%s' order by create_time desc LIMIT 1;"
%
(
...
@@ -600,49 +608,53 @@ def check_mcms_mcms_pur_plan_detail(id,type,planOrderNo):
...
@@ -600,49 +608,53 @@ def check_mcms_mcms_pur_plan_detail(id,type,planOrderNo):
create_user
=
rec_user
create_user
=
rec_user
# last_modified = create_time
# last_modified = create_time
last_modified_user
=
create_user
last_modified_user
=
create_user
pid
=
id
pid
=
id
if
type
==
16
:
if
type
==
16
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
mdm_goods_code
=
process_tuple
(
mdm_goods_code
=
process_tuple
(
get_id
(
"select mdm_goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
get_id
(
"select mdm_goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
# print(mdm_goods_code)
# print(mdm_goods_code)
goods_code
=
process_tuple
(
goods_code
=
process_tuple
(
get_id
(
"select goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
get_id
(
"select goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
pkg_def_id
=
process_tuple
(
pkg_def_id
=
process_tuple
(
get_id
(
"select pkg_def_id from mcms_pkg where hos_goods_id='%s' LIMIT 1;"
%
hos_goods_id
))
get_id
(
"select pkg_def_id from mcms_pkg where hos_goods_id='%s' LIMIT 1;"
%
hos_goods_id
))
supply_id
=
process_tuple
(
supply_id
=
process_tuple
(
get_id
(
"select supply_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
get_id
(
"select supply_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
prov_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_corpId"
]
hos_goods_id
,
id2
)))
prov_name
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_username"
]
prov_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_corpId"
]
sub_prov_id
=
prov_id
prov_name
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_username"
]
sub_prov_id
=
prov_id
create_time
=
get_create_time
(
create_time
=
get_create_time
(
"select create_time from mcms_pur_plan_detail where id='%s';"
%
(
"select create_time from mcms_pur_plan_detail where id='%s';"
%
(
id2
))
id2
))
last_modified
=
create_time
last_modified
=
create_time
sub_prov_name
=
prov_name
sub_prov_name
=
prov_name
source_id
=
process_tuple
(
source_id
=
process_tuple
(
get_id
(
"select source_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
get_id
(
"select source_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
hos_goods_id
,
id2
)))
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_pur_plan_detail'
,
id2
,
pid
,
planOrderNo
,
source_id
,
hos_goods_id
,
'mcms_pur_plan_detail'
,
id2
,
pid
,
planOrderNo
,
source_id
,
hos_goods_id
,
mdm_goods_code
,
goods_code
,
pkg_def_id
,
supply_id
,
prov_id
,
prov_name
,
sub_prov_id
,
sub_prov_name
,
mdm_goods_code
,
goods_code
,
pkg_def_id
,
supply_id
,
prov_id
,
prov_name
,
sub_prov_id
,
sub_prov_name
,
create_user
,
create_time
,
last_modified
,
last_modified_user
create_user
,
create_time
,
last_modified
,
last_modified_user
)
)
elif
type
==
20
:
elif
type
==
20
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message1'
)[
"hosGoodsId"
]
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message1'
)[
"hosGoodsId"
]
mdm_goods_code
=
process_tuple
(
mdm_goods_code
=
process_tuple
(
get_id
(
"select mdm_goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
get_id
(
"select mdm_goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
hos_goods_id
,
id2
)))
# print(mdm_goods_code)
# print(mdm_goods_code)
goods_code
=
process_tuple
(
goods_code
=
process_tuple
(
get_id
(
"select goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
get_id
(
"select goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
hos_goods_id
,
id2
)))
pkg_def_id
=
process_tuple
(
pkg_def_id
=
process_tuple
(
get_id
(
"select pkg_def_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
get_id
(
"select pkg_def_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
hos_goods_id
,
id2
)))
supply_id
=
process_tuple
(
supply_id
=
process_tuple
(
get_id
(
"select supply_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
get_id
(
"select supply_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
hos_goods_id
,
id2
)))
prov_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_corpId"
]
prov_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_corpId"
]
prov_name
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_username"
]
prov_name
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_username"
]
sub_prov_id
=
prov_id
sub_prov_id
=
prov_id
...
@@ -655,9 +667,10 @@ def check_mcms_mcms_pur_plan_detail(id,type,planOrderNo):
...
@@ -655,9 +667,10 @@ def check_mcms_mcms_pur_plan_detail(id,type,planOrderNo):
get_id
(
"select source_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
get_id
(
"select source_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
hos_goods_id
,
id2
)))
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_pur_plan_detail2'
,
id2
,
pid
,
planOrderNo
,
source_id
,
hos_goods_id
,
'mcms_pur_plan_detail2'
,
id2
,
pid
,
planOrderNo
,
source_id
,
hos_goods_id
,
mdm_goods_code
,
goods_code
,
supply_id
,
prov_id
,
prov_name
,
mdm_goods_code
,
goods_code
,
supply_id
,
prov_id
,
prov_name
,
sub_prov_id
,
sub_prov_name
,
sub_prov_id
,
sub_prov_name
,
create_user
,
create_time
,
last_modified
,
last_modified_user
create_user
,
create_time
,
last_modified
,
last_modified_user
)
)
...
@@ -689,9 +702,10 @@ def check_mcms_mcms_pur_plan_detail(id,type,planOrderNo):
...
@@ -689,9 +702,10 @@ def check_mcms_mcms_pur_plan_detail(id,type,planOrderNo):
get_id
(
"select source_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
get_id
(
"select source_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
hos_goods_id
,
id2
)))
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_pur_plan_detail3'
,
id2
,
pid
,
planOrderNo
,
source_id
,
hos_goods_id
,
'mcms_pur_plan_detail3'
,
id2
,
pid
,
planOrderNo
,
source_id
,
hos_goods_id
,
mdm_goods_code
,
goods_code
,
pkg_def_id
,
supply_id
,
prov_id
,
prov_name
,
mdm_goods_code
,
goods_code
,
pkg_def_id
,
supply_id
,
prov_id
,
prov_name
,
sub_prov_id
,
sub_prov_name
,
sub_prov_id
,
sub_prov_name
,
create_user
,
create_time
,
last_modified
,
last_modified_user
create_user
,
create_time
,
last_modified
,
last_modified_user
)
)
...
@@ -713,7 +727,8 @@ def check_mcms_mcms_pur_plan_detail(id,type,planOrderNo):
...
@@ -713,7 +727,8 @@ def check_mcms_mcms_pur_plan_detail(id,type,planOrderNo):
print
(
'error'
)
print
(
'error'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
#检查采购订单
# 检查采购订单
def
check_mcms_purchase
(
type
=
16
):
def
check_mcms_purchase
(
type
=
16
):
branch_id
=
get_branch_id
()
branch_id
=
get_branch_id
()
# 获取采购订单主键id
# 获取采购订单主键id
...
@@ -722,9 +737,9 @@ def check_mcms_purchase(type=16):
...
@@ -722,9 +737,9 @@ def check_mcms_purchase(type=16):
print
(
sql
)
print
(
sql
)
id1
=
process_tuple
(
get_dept_buy_id
(
sql
))
id1
=
process_tuple
(
get_dept_buy_id
(
sql
))
sql
=
"select order_no from mcms_purchase where branch_id='%s' and bill_mode='%s'and id='%s' order by create_time desc LIMIT 1;"
%
(
sql
=
"select order_no from mcms_purchase where branch_id='%s' and bill_mode='%s'and id='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
type
,
id1
)
branch_id
,
type
,
id1
)
print
(
sql
)
print
(
sql
)
order_no
=
process_tuple
(
get_dept_buy_id
(
sql
))
order_no
=
process_tuple
(
get_dept_buy_id
(
sql
))
sql
=
"select id from mcms_dept_buy where branch_id='%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
sql
=
"select id from mcms_dept_buy where branch_id='%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
type
)
branch_id
,
type
)
print
(
sql
)
print
(
sql
)
...
@@ -732,7 +747,7 @@ def check_mcms_purchase(type=16):
...
@@ -732,7 +747,7 @@ def check_mcms_purchase(type=16):
# 要验证的数据sql
# 要验证的数据sql
sql1
=
"select * from mcms_purchase where branch_id='%s' and bill_mode='%s' and id='%s' order by create_time desc LIMIT 1;"
%
(
sql1
=
"select * from mcms_purchase where branch_id='%s' and bill_mode='%s' and id='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
type
,
id1
)
branch_id
,
type
,
id1
)
# 获取实际值
# 获取实际值
actual
=
check_mcms_pur_plan_sql
(
sql1
)
actual
=
check_mcms_pur_plan_sql
(
sql1
)
print
(
'actual'
,
actual
)
print
(
'actual'
,
actual
)
...
@@ -748,72 +763,133 @@ def check_mcms_purchase(type=16):
...
@@ -748,72 +763,133 @@ def check_mcms_purchase(type=16):
list_a
=
info
[
'list_a'
]
list_a
=
info
[
'list_a'
]
area_code
=
commonFuc
().
analysis_json
(
'shelfCode'
,
list_a
)
area_code
=
commonFuc
().
analysis_json
(
'shelfCode'
,
list_a
)
area_name
=
'默认库区'
area_name
=
'默认库区'
source_id
=
id1
#
source_id = id1
rec_user
=
get_login_user_uxid
()
rec_user
=
get_login_user_uxid
()
rec_addr
=
'自动化测试'
rec_addr
=
'自动化测试'
sql
=
"select bill_expdt_date from mcms_pur_plan where branch_id='%s' and source_id='%s' order by create_time desc LIMIT 1;"
%
(
sql
=
"select bill_expdt_date from mcms_pur_plan where branch_id='%s' and source_id='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
id1
)
branch_id
,
buyBillId
)
print
(
sql
)
print
(
sql
)
bill_expdt_date
=
get_expdt_date
(
sql
)
bill_expdt_date
=
get_expdt_date
(
sql
)
create_user
=
rec_user
create_user
=
rec_user
create_time
=
get_create_time
(
create_time
=
get_create_time
(
"select create_time from mcms_pur_plan where branch_id='%s' and source_id='%s' order by create_time desc LIMIT 1;"
%
(
"select create_time from mcms_pur_plan where branch_id='%s' and source_id='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
id1
))
branch_id
,
id1
))
last_modified
=
create_time
last_modified
=
get_create_time
(
"select last_modified from mcms_pur_plan where branch_id='%s' and source_id='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
id1
))
last_modified_user
=
create_user
last_modified_user
=
create_user
last_auditor
=
last_modified
last_audit_time
=
get_create_time
(
"select last_audit_time from mcms_pur_plan where branch_id='%s' and source_id='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
id1
))
if
type
==
16
:
if
type
==
16
:
# 验证子表数据
# 验证子表数据
# check_mcms_mcms_pur_plan_detail(id2, type, planOrderNo)
# check_mcms_mcms_pur_plan_detail(id2, type, planOrderNo)
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
planBillId
=
process_tuple
(
planBillId
=
process_tuple
(
get_id
(
"select pid from mcms_pur_plan_detail where hos_goods_id='%s' order by create_time desc LIMIT 1;"
%
(
get_id
(
hos_goods_id
)))
"select pid from mcms_pur_plan_detail where hos_goods_id='%s' order by create_time desc LIMIT 1;"
%
(
planOrderNo
=
process_tuple
(
hos_goods_id
)))
get_id
(
"select order_no from mcms_pur_plan_detail where hos_goods_id='%s' order by create_time desc LIMIT 1;"
%
(
planOrderNo
=
process_tuple
(
hos_goods_id
)))
get_id
(
"select order_no from mcms_pur_plan_detail where hos_goods_id='%s' order by create_time desc LIMIT 1;"
%
(
hos_goods_id
)))
sql
=
"select order_no from mcms_dept_buy where branch_id='%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
type
)
print
(
sql
)
buyOrderNo
=
process_tuple
(
get_dept_buy_id
(
sql
))
purOrderNo
=
order_no
purBillId
=
id1
prov_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_corpId"
]
prov_name
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_username"
]
exe_prov_id
=
prov_id
exe_prov_name
=
prov_name
close_date
=
get_create_time
(
"select create_time from mcms_pur_plan where id='%s';"
%
(
id1
))
source_id
=
planBillId
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_purchase'
,
id1
,
order_no
,
hos_id
,
get_branch_id
(),
dept_id1
,
dept_name1
,
rec_org_id
,
rec_org_name
,
area_code
,
area_name
,
bill_expdt_date
,
source_id
,
rec_user
,
rec_addr
,
prov_id
,
prov_name
,
exe_prov_id
,
exe_prov_name
,
buyBillId
,
planBillId
,
planOrderNo
,
buyOrderNo
,
purOrderNo
,
purBillId
,
close_date
,
create_user
,
create_time
,
last_modified
,
last_auditor
,
last_audit_time
)
elif
type
==
20
:
# check_mcms_mcms_pur_plan_detail(id2, type, planOrderNo)
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
planBillId
=
process_tuple
(
get_id
(
"select pid from mcms_pur_plan_detail where hos_goods_id='%s' order by create_time desc LIMIT 1;"
%
(
hos_goods_id
)))
planOrderNo
=
process_tuple
(
get_id
(
"select order_no from mcms_pur_plan_detail where hos_goods_id='%s' order by create_time desc LIMIT 1;"
%
(
hos_goods_id
)))
sql
=
"select order_no from mcms_dept_buy where branch_id='%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
type
)
print
(
sql
)
buyOrderNo
=
process_tuple
(
get_dept_buy_id
(
sql
))
purOrderNo
=
order_no
purBillId
=
id1
prov_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_corpId"
]
prov_name
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_username"
]
exe_prov_id
=
prov_id
exe_prov_name
=
prov_name
close_date
=
get_create_time
(
"select create_time from mcms_pur_plan where id='%s';"
%
(
id1
))
source_id
=
planBillId
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_purchase'
,
id1
,
order_no
,
hos_id
,
get_branch_id
(),
dept_id1
,
dept_name1
,
rec_org_id
,
rec_org_name
,
area_code
,
area_name
,
bill_expdt_date
,
source_id
,
rec_user
,
rec_addr
,
prov_id
,
prov_name
,
exe_prov_id
,
exe_prov_name
,
buyBillId
,
planBillId
,
planOrderNo
,
buyOrderNo
,
purOrderNo
,
purBillId
,
close_date
,
create_user
,
create_time
,
last_modified
,
last_auditor
,
last_audit_time
)
elif
type
==
66
:
# check_mcms_mcms_pur_plan_detail(id2, type, planOrderNo)
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
planBillId
=
process_tuple
(
get_id
(
"select pid from mcms_pur_plan_detail where hos_goods_id='%s' order by create_time desc LIMIT 1;"
%
(
hos_goods_id
)))
planOrderNo
=
process_tuple
(
get_id
(
"select order_no from mcms_pur_plan_detail where hos_goods_id='%s' order by create_time desc LIMIT 1;"
%
(
hos_goods_id
)))
sql
=
"select order_no from mcms_dept_buy where branch_id='%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
sql
=
"select order_no from mcms_dept_buy where branch_id='%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
type
)
branch_id
,
type
)
print
(
sql
)
print
(
sql
)
buyOrderNo
=
process_tuple
(
get_dept_buy_id
(
sql
))
buyOrderNo
=
process_tuple
(
get_dept_buy_id
(
sql
))
purOrderNo
=
order_no
purOrderNo
=
order_no
purBillId
=
id1
purBillId
=
id1
prov_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_corpId"
]
prov_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_corpId"
]
prov_name
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_username"
]
prov_name
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_username"
]
exe_prov_id
=
prov_id
exe_prov_id
=
prov_id
exe_prov_name
=
prov_name
exe_prov_name
=
prov_name
close_date
=
get_create_time
(
close_date
=
get_create_time
(
"select create_time from mcms_pur_plan where id='%s';"
%
(
"select create_time from mcms_pur_plan where id='%s';"
%
(
id1
))
id1
))
source_id
=
planBillId
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_purchase'
,
id1
,
order_no
,
hos_id
,
'mcms_purchase'
,
id1
,
order_no
,
hos_id
,
get_branch_id
(),
dept_id1
,
dept_name1
,
rec_org_id
,
rec_org_name
,
get_branch_id
(),
dept_id1
,
dept_name1
,
rec_org_id
,
rec_org_name
,
area_code
,
area_name
,
bill_expdt_date
,
source_id
,
rec_user
,
area_code
,
area_name
,
bill_expdt_date
,
source_id
,
rec_user
,
rec_addr
,
prov_id
,
prov_name
,
exe_prov_id
,
exe_prov_name
,
buyBillId
,
planBillId
,
planOrderNo
,
rec_addr
,
prov_id
,
prov_name
,
exe_prov_id
,
exe_prov_name
,
buyBillId
,
buyOrderNo
,
purOrderNo
,
purBillId
,
close_date
,
create_user
,
create_time
,
last_modified
,
last_auditor
,
last_audit_time
planBillId
,
planOrderNo
,
buyOrderNo
,
purOrderNo
,
purBillId
,
close_date
,
create_user
,
create_time
,
last_modified
,
last_auditor
,
last_audit_time
)
)
# elif type == 20:
else
:
# check_mcms_mcms_pur_plan_detail(id2, type, planOrderNo)
expected
=
None
# expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check',
# 'mcms_pur_plan2', id1, PLAN_order_no, hos_id,
# get_branch_id(), dept_id1, dept_name1, rec_org_id, rec_org_name,
# area_code, area_name, source_id, rec_user,
# rec_addr, bill_expdt_date, buyBillId, planBillId, planOrderNo,
# buyOrderNo,
# create_user, create_time, last_modified, last_modified_user)
# elif type == 66:
# check_mcms_mcms_pur_plan_detail(id2, type, planOrderNo)
# expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check',
# 'mcms_pur_plan3', id1, PLAN_order_no, hos_id,
# get_branch_id(), dept_id1, dept_name1, rec_org_id, rec_org_name,
# area_code, area_name, source_id, rec_user,
# rec_addr, bill_expdt_date, buyBillId, planBillId, planOrderNo,
# buyOrderNo,
# create_user, create_time, last_modified, last_modified_user)
# else:
# expected = None
actual_value1
=
get_process_list2
(
actual
)
actual_value1
=
get_process_list2
(
actual
)
expected_value1
=
get_process_list2
(
expected
)
expected_value1
=
get_process_list2
(
expected
)
actual_value2
=
actual_value1
.
replace
(
" "
,
""
)
actual_value2
=
actual_value1
.
replace
(
" "
,
""
)
...
@@ -832,14 +908,15 @@ def check_mcms_purchase(type=16):
...
@@ -832,14 +908,15 @@ def check_mcms_purchase(type=16):
print
(
'error'
)
print
(
'error'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
def
check_mcms_purchase_detail
(
id
,
type
,
planOrderNo
):
def
check_mcms_purchase_detail
(
id
,
type
,
planOrderNo
):
branch_id
=
get_branch_id
()
branch_id
=
get_branch_id
()
# 根据采购计划主表的id获取采购计划单子表主键
# 根据采购计划主表的id获取采购计划单子表主键
sql
=
"select id from mcms_pur_plan_detail where pid='%s' order by create_time desc LIMIT 1;"
%
(
sql
=
"select id from mcms_pur_plan_detail where pid='%s' order by create_time desc LIMIT 1;"
%
(
id
)
id
)
id2
=
process_tuple
(
get_dept_buy_id
(
sql
))
# 采购计划单子表主键
id2
=
process_tuple
(
get_dept_buy_id
(
sql
))
# 采购计划单子表主键
sql
=
"select order_no from mcms_pur_plan where id='%s' order by create_time desc LIMIT 1;"
%
(
sql
=
"select order_no from mcms_pur_plan where id='%s' order by create_time desc LIMIT 1;"
%
(
id2
)
id2
)
PLAN_order_no
=
process_tuple
(
get_dept_buy_id
(
sql
))
# 采购计划单子表order_no
PLAN_order_no
=
process_tuple
(
get_dept_buy_id
(
sql
))
# 采购计划单子表order_no
# 要验证的数据sql
# 要验证的数据sql
sql1
=
"select * from mcms_pur_plan_detail where id='%s' order by create_time desc LIMIT 1;"
%
(
sql1
=
"select * from mcms_pur_plan_detail where id='%s' order by create_time desc LIMIT 1;"
%
(
...
@@ -857,49 +934,53 @@ def check_mcms_purchase_detail(id,type,planOrderNo):
...
@@ -857,49 +934,53 @@ def check_mcms_purchase_detail(id,type,planOrderNo):
create_user
=
rec_user
create_user
=
rec_user
# last_modified = create_time
# last_modified = create_time
last_modified_user
=
create_user
last_modified_user
=
create_user
pid
=
id
pid
=
id
if
type
==
16
:
if
type
==
16
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
mdm_goods_code
=
process_tuple
(
mdm_goods_code
=
process_tuple
(
get_id
(
"select mdm_goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
get_id
(
"select mdm_goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
# print(mdm_goods_code)
# print(mdm_goods_code)
goods_code
=
process_tuple
(
goods_code
=
process_tuple
(
get_id
(
"select goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
get_id
(
"select goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
pkg_def_id
=
process_tuple
(
pkg_def_id
=
process_tuple
(
get_id
(
"select pkg_def_id from mcms_pkg where hos_goods_id='%s' LIMIT 1;"
%
hos_goods_id
))
get_id
(
"select pkg_def_id from mcms_pkg where hos_goods_id='%s' LIMIT 1;"
%
hos_goods_id
))
supply_id
=
process_tuple
(
supply_id
=
process_tuple
(
get_id
(
"select supply_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
get_id
(
"select supply_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
prov_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_corpId"
]
hos_goods_id
,
id2
)))
prov_name
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_username"
]
prov_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_corpId"
]
sub_prov_id
=
prov_id
prov_name
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_username"
]
sub_prov_id
=
prov_id
create_time
=
get_create_time
(
create_time
=
get_create_time
(
"select create_time from mcms_pur_plan_detail where id='%s';"
%
(
"select create_time from mcms_pur_plan_detail where id='%s';"
%
(
id2
))
id2
))
last_modified
=
create_time
last_modified
=
create_time
sub_prov_name
=
prov_name
sub_prov_name
=
prov_name
source_id
=
process_tuple
(
source_id
=
process_tuple
(
get_id
(
"select source_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
get_id
(
"select source_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
hos_goods_id
,
id2
)))
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_pur_plan_detail'
,
id2
,
pid
,
planOrderNo
,
source_id
,
hos_goods_id
,
'mcms_pur_plan_detail'
,
id2
,
pid
,
planOrderNo
,
source_id
,
hos_goods_id
,
mdm_goods_code
,
goods_code
,
pkg_def_id
,
supply_id
,
prov_id
,
prov_name
,
sub_prov_id
,
sub_prov_name
,
mdm_goods_code
,
goods_code
,
pkg_def_id
,
supply_id
,
prov_id
,
prov_name
,
sub_prov_id
,
sub_prov_name
,
create_user
,
create_time
,
last_modified
,
last_modified_user
create_user
,
create_time
,
last_modified
,
last_modified_user
)
)
elif
type
==
20
:
elif
type
==
20
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message1'
)[
"hosGoodsId"
]
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message1'
)[
"hosGoodsId"
]
mdm_goods_code
=
process_tuple
(
mdm_goods_code
=
process_tuple
(
get_id
(
"select mdm_goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
get_id
(
"select mdm_goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
hos_goods_id
,
id2
)))
# print(mdm_goods_code)
# print(mdm_goods_code)
goods_code
=
process_tuple
(
goods_code
=
process_tuple
(
get_id
(
"select goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
get_id
(
"select goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
hos_goods_id
,
id2
)))
pkg_def_id
=
process_tuple
(
pkg_def_id
=
process_tuple
(
get_id
(
"select pkg_def_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
get_id
(
"select pkg_def_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
hos_goods_id
,
id2
)))
supply_id
=
process_tuple
(
supply_id
=
process_tuple
(
get_id
(
"select supply_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
get_id
(
"select supply_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
hos_goods_id
,
id2
)))
prov_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_corpId"
]
prov_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_corpId"
]
prov_name
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_username"
]
prov_name
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_username"
]
sub_prov_id
=
prov_id
sub_prov_id
=
prov_id
...
@@ -912,9 +993,10 @@ def check_mcms_purchase_detail(id,type,planOrderNo):
...
@@ -912,9 +993,10 @@ def check_mcms_purchase_detail(id,type,planOrderNo):
get_id
(
"select source_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
get_id
(
"select source_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
hos_goods_id
,
id2
)))
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_pur_plan_detail2'
,
id2
,
pid
,
planOrderNo
,
source_id
,
hos_goods_id
,
'mcms_pur_plan_detail2'
,
id2
,
pid
,
planOrderNo
,
source_id
,
hos_goods_id
,
mdm_goods_code
,
goods_code
,
supply_id
,
prov_id
,
prov_name
,
mdm_goods_code
,
goods_code
,
supply_id
,
prov_id
,
prov_name
,
sub_prov_id
,
sub_prov_name
,
sub_prov_id
,
sub_prov_name
,
create_user
,
create_time
,
last_modified
,
last_modified_user
create_user
,
create_time
,
last_modified
,
last_modified_user
)
)
...
@@ -946,9 +1028,10 @@ def check_mcms_purchase_detail(id,type,planOrderNo):
...
@@ -946,9 +1028,10 @@ def check_mcms_purchase_detail(id,type,planOrderNo):
get_id
(
"select source_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
get_id
(
"select source_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';"
%
(
hos_goods_id
,
id2
)))
hos_goods_id
,
id2
)))
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_pur_plan_detail3'
,
id2
,
pid
,
planOrderNo
,
source_id
,
hos_goods_id
,
'mcms_pur_plan_detail3'
,
id2
,
pid
,
planOrderNo
,
source_id
,
hos_goods_id
,
mdm_goods_code
,
goods_code
,
pkg_def_id
,
supply_id
,
prov_id
,
prov_name
,
mdm_goods_code
,
goods_code
,
pkg_def_id
,
supply_id
,
prov_id
,
prov_name
,
sub_prov_id
,
sub_prov_name
,
sub_prov_id
,
sub_prov_name
,
create_user
,
create_time
,
last_modified
,
last_modified_user
create_user
,
create_time
,
last_modified
,
last_modified_user
)
)
...
...
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