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
a65bd1f4
Commit
a65bd1f4
authored
Jul 25, 2024
by
xiao-hesheng
Browse files
数据库验证流程十二脚本编写
parent
9da7bedf
Changes
4
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_b4流程十一请领业务流_二级库向直送_数据库验证.air/a_b4流程十一请领业务流_二级库向直送_数据库验证.py
View file @
a65bd1f4
...
@@ -10,7 +10,8 @@ from common.db.sql.sql_tools import get_create_time, check_mcms_dept_buy_car_sql
...
@@ -10,7 +10,8 @@ from common.db.sql.sql_tools import get_create_time, check_mcms_dept_buy_car_sql
get_expdt_date1
,
process_date
,
get_mdm_goods_code1
,
get_goods_code1
,
get_goods_name
,
get_goods_gg
,
\
get_expdt_date1
,
process_date
,
get_mdm_goods_code1
,
get_goods_code1
,
get_goods_name
,
get_goods_gg
,
\
get_goods_mfrs_id
,
get_supply_id
,
check_mcms_pur_sql
,
check_source_id
,
get_pkg_def_id
,
get_buyBillId
,
\
get_goods_mfrs_id
,
get_supply_id
,
check_mcms_pur_sql
,
check_source_id
,
get_pkg_def_id
,
get_buyBillId
,
\
get_planBillId
,
get_planOrderNo
,
get_buyOrderNo
,
get_purOrderNo
,
get_purBillId
,
get_distrBillId
,
\
get_planBillId
,
get_planOrderNo
,
get_buyOrderNo
,
get_purOrderNo
,
get_purBillId
,
get_distrBillId
,
\
get_distrOrderNo
,
get_distr_detail_id
,
get_ext_info
,
get_login_user_uxid_bydb
,
get_purBillDate
,
get_purBillDate2
get_distrOrderNo
,
get_distr_detail_id
,
get_ext_info
,
get_login_user_uxid_bydb
,
get_purBillDate
,
get_purBillDate2
,
\
get_mcms_chek_purBillDate
from
common.db.sql.sql_tools_out
import
check_out_check_mcms_purchase
from
common.db.sql.sql_tools_out
import
check_out_check_mcms_purchase
from
common.fileUtls
import
FileUtils
from
common.fileUtls
import
FileUtils
...
@@ -1465,7 +1466,7 @@ def check_mcms_check(type=1):
...
@@ -1465,7 +1466,7 @@ def check_mcms_check(type=1):
planOrderNo
=
get_planOrderNo
(
hos_goods_id
)
planOrderNo
=
get_planOrderNo
(
hos_goods_id
)
purOrderNo
=
get_purOrderNo
(
branch_id
,
bill_mode
)
purOrderNo
=
get_purOrderNo
(
branch_id
,
bill_mode
)
purBillId
=
get_purBillId
(
branch_id
,
bill_mode
)
purBillId
=
get_purBillId
(
branch_id
,
bill_mode
)
bill_relation_json
=
get_purBillDate
(
branch_id
,
bill_mode
)
bill_relation_json
=
get_
mcms_chek_
purBillDate
(
branch_id
,
bill_mode
)
purBillDate
=
reGetString
(
bill_relation_json
,
r
'purBillDate":"'
,
r
'""distrBillId'
)
purBillDate
=
reGetString
(
bill_relation_json
,
r
'purBillDate":"'
,
r
'""distrBillId'
)
distrBillId
=
get_distrBillId
(
branch_id
,
bill_mode
)
distrBillId
=
get_distrBillId
(
branch_id
,
bill_mode
)
distrOrderNo
=
get_distrOrderNo
(
branch_id
,
bill_mode
)
distrOrderNo
=
get_distrOrderNo
(
branch_id
,
bill_mode
)
...
@@ -1672,14 +1673,135 @@ def check_mcms_psi(type=1):
...
@@ -1672,14 +1673,135 @@ def check_mcms_psi(type=1):
,
create_time
,
last_modified
,
last_modified_user
)
,
create_time
,
last_modified
,
last_modified_user
)
elif
type
==
2
:
elif
type
==
2
:
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_check_batch1'
,
id
,
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'check_mcms_psi2'
,
id
,
order_no
,
target_corp_id
,
target_branch_id
,
target_dept_id
,
target_dept_name
,
target_stock_id
,
target_area_code
,
source_id
,
source_no
,
source_repl_id
,
source_corp_id
,
source_dept_id
,
source_dept_name
,
source_stock_id
,
accounter
,
account_date
,
buyBillId
,
planBillId
,
planOrderNo
,
buyOrderNo
,
purOrderNo
,
purBillId
,
purBillDate
,
distrBillId
,
distrOrderNo
,
checkBillId
,
checkOrderNo
,
psiInBillId
,
psiInOrderNo
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
else
:
)
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'check_mcms_psi3'
,
id
,
order_no
,
target_corp_id
,
target_branch_id
,
target_dept_id
,
target_dept_name
,
target_stock_id
,
target_area_code
,
source_id
,
source_no
,
source_repl_id
,
source_corp_id
,
source_dept_id
,
source_dept_name
,
source_stock_id
,
accounter
,
account_date
,
buyBillId
,
planBillId
,
planOrderNo
,
buyOrderNo
,
purOrderNo
,
purBillId
,
purBillDate
,
distrBillId
,
distrOrderNo
,
checkBillId
,
checkOrderNo
,
psiInBillId
,
psiInOrderNo
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
# 对比预期值和实际值是否一致
actual_value1
=
get_process_list2
(
actual
)
expected_value1
=
get_process_list2
(
expected
)
actual_value2
=
actual_value1
.
replace
(
" "
,
""
)
expected_value2
=
expected_value1
.
replace
(
" "
,
""
)
# print('actual_value2',actual_value2)
print
(
'expected_value2'
)
print
(
expected_value2
)
print
(
'actual_value2'
)
print
(
actual_value2
)
result
=
(
compare_text_index
(
actual_value2
,
expected_value2
))
print
(
'result'
,
result
)
if
actual_value2
==
expected_value2
:
print
(
'ok'
)
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
else
:
else
:
print
(
'error'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
#检查中心库出库单====================================================================
sql
=
"select * from mcms_psi where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_QL' order by CREATE_TIME desc LIMIT 1;"
%
(
branch_id
,
bill_mode
)
# 获取实际值
actual
=
check_mcms_pur_plan_sql
(
sql
)
print
(
'actual'
,
actual
)
sql
=
"select id from mcms_psi where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_QL' order by CREATE_TIME desc LIMIT 1;"
%
(
branch_id
,
bill_mode
)
id
=
get_id
(
sql
)
sql
=
"select order_no from mcms_psi where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_QL' order by CREATE_TIME desc LIMIT 1;"
%
(
branch_id
,
bill_mode
)
order_no
=
get_id
(
sql
)
target_corp_id
=
get_hosid
()
target_branch_id
=
get_branch_id
()
target_dept_id
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid2'
]
target_dept_name
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid2'
]
stock_name
=
get_branch_name
()
+
"库房"
target_stock_id
=
get_stockId_fromdb
(
stock_name
)
target_area_code
=
get_stockAreaId_new_fromDb
(
target_dept_name
,
2
)
source_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'验收单号'
,
'message15'
)[
'CHECK_NO1'
]
source_no
=
get_distrBillId
(
branch_id
,
bill_mode
)
source_repl_id
=
source_no
source_corp_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_corpId"
]
source_dept_id
=
source_corp_id
source_dept_name
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_username"
]
source_stock_id
=
source_corp_id
accounter
=
get_login_user_uxid_bydb
(
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)[
'username1'
])
account_date
=
get_create_time
(
"select account_date from mcms_psi where id='%s';"
%
id
)
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_check_batch2'
,
id
,
buyBillId
=
get_buyBillId
(
branch_id
,
bill_mode
)
if
type
==
1
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
elif
type
==
2
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message1'
)[
"hosGoodsId"
]
else
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message3'
)[
"hosGoodsId"
]
planBillId
=
get_planBillId
(
hos_goods_id
)
planOrderNo
=
get_planOrderNo
(
hos_goods_id
)
buyOrderNo
=
get_buyOrderNo
(
branch_id
,
bill_mode
)
purOrderNo
=
get_purOrderNo
(
branch_id
,
bill_mode
)
purBillId
=
get_purBillId
(
branch_id
,
bill_mode
)
bill_relation_json
=
get_purBillDate2
(
branch_id
,
bill_mode
)
purBillDate
=
reGetString
(
bill_relation_json
,
r
'purBillDate":"'
,
r
'""distrBillId'
)
distrBillId
=
get_distrBillId
(
branch_id
,
bill_mode
)
distrOrderNo
=
get_distrOrderNo
(
branch_id
,
bill_mode
)
checkBillId
=
source_id
sql
=
"select order_no from mcms_check where id='%s';"
%
checkBillId
checkOrderNo
=
get_id
(
sql
)
psiInBillId
=
id
psiInOrderNo
=
order_no
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 where id='%s';"
%
id
)
last_modified
=
get_create_time
(
"select last_modified from mcms_psi where id='%s';"
%
id
)
last_modified_user
=
create_user
if
type
==
1
:
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'check_mcms_psi_out1'
,
id
,
order_no
,
target_corp_id
,
target_branch_id
,
target_dept_id
,
target_dept_name
,
target_stock_id
,
target_area_code
,
source_id
,
source_no
,
source_repl_id
,
source_corp_id
,
source_dept_id
,
source_dept_name
,
source_stock_id
,
accounter
,
account_date
,
buyBillId
,
planBillId
,
planOrderNo
,
buyOrderNo
,
purOrderNo
,
purBillId
,
purBillDate
,
distrBillId
,
distrOrderNo
,
checkBillId
,
checkOrderNo
,
psiInBillId
,
psiInOrderNo
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
elif
type
==
2
:
)
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'check_mcms_psi2'
,
id
,
order_no
,
target_corp_id
,
target_branch_id
,
target_dept_id
,
target_dept_name
,
target_stock_id
,
target_area_code
,
source_id
,
source_no
,
source_repl_id
,
source_corp_id
,
source_dept_id
,
source_dept_name
,
source_stock_id
,
accounter
,
account_date
,
buyBillId
,
planBillId
,
planOrderNo
,
buyOrderNo
,
purOrderNo
,
purBillId
,
purBillDate
,
distrBillId
,
distrOrderNo
,
checkBillId
,
checkOrderNo
,
psiInBillId
,
psiInOrderNo
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
else
:
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'check_mcms_psi3'
,
id
,
order_no
,
target_corp_id
,
target_branch_id
,
target_dept_id
,
target_dept_name
,
target_stock_id
,
target_area_code
,
source_id
,
source_no
,
source_repl_id
,
source_corp_id
,
source_dept_id
,
source_dept_name
,
source_stock_id
,
accounter
,
account_date
,
buyBillId
,
planBillId
,
planOrderNo
,
buyOrderNo
,
purOrderNo
,
purBillId
,
purBillDate
,
distrBillId
,
distrOrderNo
,
checkBillId
,
checkOrderNo
,
psiInBillId
,
psiInOrderNo
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
# 对比预期值和实际值是否一致
# 对比预期值和实际值是否一致
actual_value1
=
get_process_list2
(
actual
)
actual_value1
=
get_process_list2
(
actual
)
expected_value1
=
get_process_list2
(
expected
)
expected_value1
=
get_process_list2
(
expected
)
...
@@ -1699,7 +1821,6 @@ def check_mcms_psi(type=1):
...
@@ -1699,7 +1821,6 @@ def check_mcms_psi(type=1):
print
(
'error'
)
print
(
'error'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
try
:
try
:
pro_path
=
commonFuc
().
get_pro_path2
()
pro_path
=
commonFuc
().
get_pro_path2
()
print
(
'pro_path'
,
pro_path
)
print
(
'pro_path'
,
pro_path
)
...
@@ -1715,73 +1836,74 @@ try:
...
@@ -1715,73 +1836,74 @@ try:
from
a_b4流程十一请领业务流_二级库向直送
import
check_accept_order
from
a_b4流程十一请领业务流_二级库向直送
import
check_accept_order
for
i
in
range
(
1
):
for
i
in
range
(
1
):
updateUserLoginDefaultRange
(
get_listUserMgrRangePage
(
2
))
# 设置登录账号默认权限是二级库
# updateUserLoginDefaultRange(get_listUserMgrRangePage(2)) # 设置登录账号默认权限是二级库
goods_move2
()
# 设置产品出库渠道为直送
# goods_move2() # 设置产品出库渠道为直送
# # 低值
# # # 低值
second_dept_Request
(
FileUtils
().
r_info8
(
"b5_spd3_core_business_flow"
,
"产品审核信息"
,
'message2'
)[
'hosGoodsId'
],
1
)
# second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message2')['hosGoodsId'], 1)
check_mcms_dept_buy_car
(
1
)
# check_mcms_dept_buy_car(1)
# # 高值
# # # 高值
second_dept_Request
(
FileUtils
().
r_info8
(
"b5_spd3_core_business_flow"
,
"产品审核信息"
,
'message1'
)[
'hosGoodsId'
],
2
)
# second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId'], 2)
check_mcms_dept_buy_car
(
2
)
# check_mcms_dept_buy_car(2)
# # 试剂
# # # 试剂
second_dept_Request
(
FileUtils
().
r_info8
(
"b5_spd3_core_business_flow"
,
"产品审核信息"
,
'message3'
)[
'hosGoodsId'
],
3
)
# second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message3')['hosGoodsId'], 3)
check_mcms_dept_buy_car
(
3
)
# check_mcms_dept_buy_car(3)
BuyCarSubmit
()
# 请领车提交
# BuyCarSubmit() # 请领车提交
#
list_data
=
[
'16'
,
'20'
,
'66'
]
# list_data = ['16', '20', '66']
for
i
in
list_data
:
# for i in list_data:
check_mcms_dept_buy
(
int
(
i
))
# check_mcms_dept_buy(int(i))
mcms_dept_buy_detail
(
int
(
i
))
# mcms_dept_buy_detail(int(i))
for
i
in
range
(
6
):
# 三个单据共审批6次
# for i in range(6): # 三个单据共审批6次
approval_center
()
# approval_center()
list_data
=
[
'16'
,
'20'
,
'66'
]
# list_data = ['16', '20', '66']
for
i
in
list_data
:
# for i in list_data:
check_mcms_dept_buy_approval_after
(
int
(
i
))
# check_mcms_dept_buy_approval_after(int(i))
mcms_dept_buy_detail_approval_after
(
int
(
i
))
# mcms_dept_buy_detail_approval_after(int(i))
#
time
.
sleep
(
20
)
# time.sleep(20)
# 检查自动生成的采购计划数据
# # 检查自动生成的采购计划数据
list_data
=
[
'16'
,
'20'
,
'66'
]
# list_data = ['16', '20', '66']
for
i
in
list_data
:
# for i in list_data:
check_mcms_mcms_pur_plan
(
int
(
i
))
# check_mcms_mcms_pur_plan(int(i))
# 采购模块处理
# # 采购模块处理
purchase_module_process
()
# purchase_module_process()
#
# 三个单据共审批三次
# # 三个单据共审批三次
approval_center
(
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'采购计划单号试剂'
,
'message12'
))
# approval_center(FileUtils().r_info8('b5_spd3_core_business_flow', '采购计划单号试剂', 'message12'))
approval_center
(
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'采购计划单号'
,
'message7'
))
# approval_center(FileUtils().r_info8('b5_spd3_core_business_flow', '采购计划单号', 'message7'))
approval_center
(
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'采购计划单号高值'
,
'message11'
))
# approval_center(FileUtils().r_info8('b5_spd3_core_business_flow', '采购计划单号高值', 'message11'))
time
.
sleep
(
20
)
# time.sleep(20)
list_data
=
[
'16'
,
'20'
,
'66'
]
# list_data = ['16', '20', '66']
for
i
in
list_data
:
# for i in list_data:
check_mcms_purchase
(
int
(
i
))
# check_mcms_purchase(int(i))
#
# 检查同步到外网的采购订单数据跟内网的是否一致
# # 检查同步到外网的采购订单数据跟内网的是否一致
check_mcms_purchase_out_and_in
(
1
)
# check_mcms_purchase_out_and_in(1)
print
(
'检查同步到外网的采购订单数据跟内网的是否一致'
)
# print('检查同步到外网的采购订单数据跟内网的是否一致')
check_mcms_purchase_out_and_in
(
2
)
# check_mcms_purchase_out_and_in(2)
order_dp
(
1
)
# 1低值
# order_dp(1) # 1低值
time
.
sleep
(
6
)
# time.sleep(6)
order_dp
(
2
)
# 2高值
# order_dp(2) # 2高值
time
.
sleep
(
6
)
# time.sleep(6)
order_dp
(
3
)
# 3试剂
# order_dp(3) # 3试剂
time
.
sleep
(
6
)
# time.sleep(6)
time
.
sleep
(
20
)
# time.sleep(20)
#
list_data
=
[
'16'
,
'20'
,
'66'
]
# list_data = ['16', '20', '66']
for
i
in
list_data
:
# for i in list_data:
time
.
sleep
(
6
)
# time.sleep(6)
check_hdi_distr
(
int
(
i
))
# check_hdi_distr(int(i))
#
time
.
sleep
(
20
)
# time.sleep(20)
check_accept_order
(
1
)
# 低值
# check_accept_order(1) # 低值
time
.
sleep
(
6
)
# time.sleep(6)
check_mcms_check
(
1
)
# 调用函数检查验收单数据库写值
# # 上面暂时注释========================================
# # 上面暂时注释========================================
check_mcms_check
(
1
)
# 调用函数检查验收单数据库写值
check_mcms_psi
(
1
)
# 调用函数检查中心库入库单数据库写值
check_mcms_psi
(
1
)
# 调用函数检查中心库入库单数据库写值
#
check_accept_order(2) # 高值
check_accept_order
(
2
)
# 高值
time
.
sleep
(
6
)
time
.
sleep
(
6
)
# 这里验收后会自动生成出入库单,批次信息,需要同步验证入库单和批次信息
check_mcms_check
(
2
)
# 调用函数检查验收单数据库写值
check_mcms_check
(
2
)
# 调用函数检查验收单数据库写值
check_mcms_psi
(
2
)
# 调用函数检查中心库入库单数据库写值
check_mcms_psi
(
2
)
# 调用函数检查中心库入库单数据库写值
check_accept_order
(
3
)
# 试剂
check_accept_order
(
3
)
# 试剂
...
@@ -1789,12 +1911,8 @@ try:
...
@@ -1789,12 +1911,8 @@ try:
check_mcms_check
(
3
)
# 调用函数检查验收单数据库写值
check_mcms_check
(
3
)
# 调用函数检查验收单数据库写值
check_mcms_psi
(
3
)
# 调用函数检查中心库入库单数据库写值
check_mcms_psi
(
3
)
# 调用函数检查中心库入库单数据库写值
# 这里验收后会自动生成出入库单,批次信息,需要同步验证入库单和批次信息
# 根据验收单号到mcms_psi表查询入库单
list_data
=
[
'16'
,
'20'
,
'66'
]
for
i
in
list_data
:
# time.sleep(6)
check_mcms_psi
(
int
(
i
))
# second_dept_one_key_in()
# second_dept_one_key_in()
# second_dept_one_key_in()
# second_dept_one_key_in()
...
...
common/db/sql/sql_tools.py
View file @
a65bd1f4
...
@@ -384,6 +384,15 @@ def get_purBillDate2(branch_id,bill_mode):
...
@@ -384,6 +384,15 @@ def get_purBillDate2(branch_id,bill_mode):
main_key
,
bill_mode
))
main_key
,
bill_mode
))
# print(bill_relation_json)
# print(bill_relation_json)
return
bill_relation_json
return
bill_relation_json
def
get_mcms_chek_purBillDate
(
branch_id
,
bill_mode
):
main_key
=
get_id
(
"select id from mcms_check a where branch_id = '%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
bill_mode
))
bill_relation_json
=
get_id
(
"select bill_relation_json from mcms_check a where id = '%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
main_key
,
bill_mode
))
# print(bill_relation_json)
return
bill_relation_json
def
get_distrBillId
(
branch_id
,
bill_mode
):
def
get_distrBillId
(
branch_id
,
bill_mode
):
distr_main_key
=
get_id
(
distr_main_key
=
get_id
(
"select id from hdi_distr a where branch_id = '%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
"select id from hdi_distr a where branch_id = '%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
...
...
data/b5_spd3_core_business_flow/message15
View file @
a65bd1f4
验收单号
:
验收单号
:
CHECK_NO1
:
CHECKh034720240725000
18
CHECK_NO1
:
CHECKh034720240725000
26
CHECK_NO2
:
CHECKh034720240725000
18
CHECK_NO2
:
CHECKh034720240725000
26
data/b6_spd3_core_business_flow_database_check/data
View file @
a65bd1f4
...
@@ -107,4 +107,9 @@
...
@@ -107,4 +107,9 @@
#中心库入库单
#中心库入库单
"check_mcms_psi1": '{"id": "%s", "order_no": "%s", "bill_mode": "16", "rec_type": "YND", "psi_flag": 1, "psi_kind": "101", "stock_kind": "RK_YS", "target_corp_id": "%s", "target_branch_id": "%s", "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": "%s", "target_area_name": "默认库区", "source_id": "%s", "source_no": "%s", "source_repl_id": "%s", "source_corp_id": "%s", "source_branch_id": None, "source_dept_id": "%s", "source_dept_name": "%s", "source_stock_id": "%s", "source_area_code": None, "source_area_name": None, "remark": None, "tb_status": 30, "accounter": "%s", "account_date": %s, "bill_relation_json": "{"buyBillId":"%s","planBillId":"%s","planOrderNo":"%s","buyOrderNo":"%s","purOrderNo":"%s","purBillId":"%s","purBillDate":"%s","distrBillId":"%s","distrOrderNo":"%s","checkBillId":"%s","checkOrderNo":"%s","psiInBillId":"%s","psiInOrderNo":"%s"}", "reject_time": None, "reject_remark": None, "create_user": "%s","create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "reject_user": None, "initial_order": None, "source_type": "BD", "reject_reason": None, "receipt_status": 0}'
"check_mcms_psi1": '{"id": "%s", "order_no": "%s", "bill_mode": "16", "rec_type": "YND", "psi_flag": 1, "psi_kind": "101", "stock_kind": "RK_YS", "target_corp_id": "%s", "target_branch_id": "%s", "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": "%s", "target_area_name": "默认库区", "source_id": "%s", "source_no": "%s", "source_repl_id": "%s", "source_corp_id": "%s", "source_branch_id": None, "source_dept_id": "%s", "source_dept_name": "%s", "source_stock_id": "%s", "source_area_code": None, "source_area_name": None, "remark": None, "tb_status": 30, "accounter": "%s", "account_date": %s, "bill_relation_json": "{"buyBillId":"%s","planBillId":"%s","planOrderNo":"%s","buyOrderNo":"%s","purOrderNo":"%s","purBillId":"%s","purBillDate":"%s","distrBillId":"%s","distrOrderNo":"%s","checkBillId":"%s","checkOrderNo":"%s","psiInBillId":"%s","psiInOrderNo":"%s"}", "reject_time": None, "reject_remark": None, "create_user": "%s","create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "reject_user": None, "initial_order": None, "source_type": "BD", "reject_reason": None, "receipt_status": 0}'
"check_mcms_psi2": '{"id": "%s", "order_no": "%s", "bill_mode": "20", "rec_type": "YND", "psi_flag": 1, "psi_kind": "101", "stock_kind": "RK_YS", "target_corp_id": "%s", "target_branch_id": "%s", "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": "%s", "target_area_name": "默认库区", "source_id": "%s", "source_no": "%s", "source_repl_id": "%s", "source_corp_id": "%s", "source_branch_id": None, "source_dept_id": "%s", "source_dept_name": "%s", "source_stock_id": "%s", "source_area_code": None, "source_area_name": None, "remark": None, "tb_status": 30, "accounter": "%s", "account_date": %s, "bill_relation_json": "{"buyBillId":"%s","planBillId":"%s","planOrderNo":"%s","buyOrderNo":"%s","purOrderNo":"%s","purBillId":"%s","purBillDate":"%s","distrBillId":"%s","distrOrderNo":"%s","checkBillId":"%s","checkOrderNo":"%s","psiInBillId":"%s","psiInOrderNo":"%s"}", "reject_time": None, "reject_remark": None, "create_user": "%s","create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "reject_user": None, "initial_order": None, "source_type": "BD", "reject_reason": None, "receipt_status": 0}'
"check_mcms_psi2": '{"id": "%s", "order_no": "%s", "bill_mode": "20", "rec_type": "YND", "psi_flag": 1, "psi_kind": "101", "stock_kind": "RK_YS", "target_corp_id": "%s", "target_branch_id": "%s", "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": "%s", "target_area_name": "默认库区", "source_id": "%s", "source_no": "%s", "source_repl_id": "%s", "source_corp_id": "%s", "source_branch_id": None, "source_dept_id": "%s", "source_dept_name": "%s", "source_stock_id": "%s", "source_area_code": None, "source_area_name": None, "remark": None, "tb_status": 30, "accounter": "%s", "account_date": %s, "bill_relation_json": "{"buyBillId":"%s","planBillId":"%s","planOrderNo":"%s","buyOrderNo":"%s","purOrderNo":"%s","purBillId":"%s","purBillDate":"%s","distrBillId":"%s","distrOrderNo":"%s","checkBillId":"%s","checkOrderNo":"%s","psiInBillId":"%s","psiInOrderNo":"%s"}", "reject_time": None, "reject_remark": None, "create_user": "%s","create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "reject_user": None, "initial_order": None, "source_type": "BD", "reject_reason": None, "receipt_status": 0}'
"check_mcms_psi3": '{"id": "%s", "order_no": "%s", "bill_mode": "66", "rec_type": "YND", "psi_flag": 1, "psi_kind": "101", "stock_kind": "RK_YS", "target_corp_id": "%s", "target_branch_id": "%s", "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": "%s", "target_area_name": "默认库区", "source_id": "%s", "source_no": "%s", "source_repl_id": "%s", "source_corp_id": "%s", "source_branch_id": None, "source_dept_id": "%s", "source_dept_name": "%s", "source_stock_id": "%s", "source_area_code": None, "source_area_name": None, "remark": None, "tb_status": 30, "accounter": "%s", "account_date": %s, "bill_relation_json": "{"buyBillId":"%s","planBillId":"%s","planOrderNo":"%s","buyOrderNo":"%s","purOrderNo":"%s","purBillId":"%s","purBillDate":"%s","distrBillId":"%s","distrOrderNo":"%s","checkBillId":"%s","checkOrderNo":"%s","psiInBillId":"%s","psiInOrderNo":"%s"}", "reject_time": None, "reject_remark": None, "create_user": "%s","create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "reject_user": None, "initial_order": None, "source_type": "BD", "reject_reason": None, "receipt_status": 0}'
"check_mcms_psi3": '{"id": "%s", "order_no": "%s", "bill_mode": "66", "rec_type": "YND", "psi_flag": 1, "psi_kind": "101", "stock_kind": "RK_YS", "target_corp_id": "%s", "target_branch_id": "%s", "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_area_code": "%s", "target_area_name": "默认库区", "source_id": "%s", "source_no": "%s", "source_repl_id": "%s", "source_corp_id": "%s", "source_branch_id": None, "source_dept_id": "%s", "source_dept_name": "%s", "source_stock_id": "%s", "source_area_code": None, "source_area_name": None, "remark": None, "tb_status": 30, "accounter": "%s", "account_date": %s, "bill_relation_json": "{"buyBillId":"%s","planBillId":"%s","planOrderNo":"%s","buyOrderNo":"%s","purOrderNo":"%s","purBillId":"%s","purBillDate":"%s","distrBillId":"%s","distrOrderNo":"%s","checkBillId":"%s","checkOrderNo":"%s","psiInBillId":"%s","psiInOrderNo":"%s"}", "reject_time": None, "reject_remark": None, "create_user": "%s","create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "last_auditor": None, "last_audit_time": None, "reject_user": None, "initial_order": None, "source_type": "BD", "reject_reason": None, "receipt_status": 0}'
\ No newline at end of file
#中心库出库单
"check_mcms_psi_out1": '{'id': '%s', 'order_no': '%s', 'bill_mode': '16', 'rec_type': 'YND', 'psi_flag': -1, 'psi_kind': '202', 'stock_kind': 'CK_QL', 'target_corp_id': '%s', 'target_branch_id': '%s', 'target_dept_id': '%s', 'target_dept_name': '%s', 'target_stock_id': '%s', 'target_area_code': '%s', 'target_area_name': '默认库区', 'source_id': '%s', 'source_no': '%s', 'source_repl_id': '%s', 'source_corp_id': '%s', 'source_branch_id': '%s', 'source_dept_id': '%s', 'source_dept_name': '%s', 'source_stock_id': '%s', 'source_area_code': '%s', 'source_area_name': '默认库区', 'remark': None, 'tb_status': 20, 'accounter': None, 'account_date': None, 'bill_relation_json': '{"buyBillId":"%s","planBillId":"%s","planOrderNo":"%s","buyOrderNo":"%s","purOrderNo":"%s","purBillId":"%s","purBillDate":"%s","distrBillId":"%s","distrOrderNo":"%s","checkBillId":"%s","checkOrderNo":"%s","psiInBillId":"%s","psiInOrderNo":"%s","psiOutBillId":"%s","psiOutOrderNo":"%s"}', 'reject_time': None, 'reject_remark': None, 'create_user': '%s', 'create_time': %s, 'last_modified': %s, 'last_modified_user': '%s', 'version': 0, 'last_auditor': None, 'last_audit_time': None, 'reject_user': None, 'initial_order': None, 'source_type': 'BD', 'reject_reason': None, 'receipt_status': 0}'
"check_mcms_psi_out2": '{'id': '%s', 'order_no': '%s', 'bill_mode': '20', 'rec_type': 'YND', 'psi_flag': -1, 'psi_kind': '202', 'stock_kind': 'CK_QL', 'target_corp_id': '%s', 'target_branch_id': '%s', 'target_dept_id': '%s', 'target_dept_name': '%s', 'target_stock_id': '%s', 'target_area_code': '%s', 'target_area_name': '默认库区', 'source_id': '%s', 'source_no': '%s', 'source_repl_id': '%s', 'source_corp_id': '%s', 'source_branch_id': '%s', 'source_dept_id': '%s', 'source_dept_name': '%s', 'source_stock_id': '%s', 'source_area_code': '%s', 'source_area_name': '默认库区', 'remark': None, 'tb_status': 20, 'accounter': None, 'account_date': None, 'bill_relation_json': '{"buyBillId":"%s","planBillId":"%s","planOrderNo":"%s","buyOrderNo":"%s","purOrderNo":"%s","purBillId":"%s","purBillDate":"%s","distrBillId":"%s","distrOrderNo":"%s","checkBillId":"%s","checkOrderNo":"%s","psiInBillId":"%s","psiInOrderNo":"%s","psiOutBillId":"%s","psiOutOrderNo":"%s"}', 'reject_time': None, 'reject_remark': None, 'create_user': '%s', 'create_time': %s, 'last_modified': %s, 'last_modified_user': '%s', 'version': 0, 'last_auditor': None, 'last_audit_time': None, 'reject_user': None, 'initial_order': None, 'source_type': 'BD', 'reject_reason': None, 'receipt_status': 0}'
"check_mcms_psi_out3": '{'id': '%s', 'order_no': '%s', 'bill_mode': '66', 'rec_type': 'YND', 'psi_flag': -1, 'psi_kind': '202', 'stock_kind': 'CK_QL', 'target_corp_id': '%s', 'target_branch_id': '%s', 'target_dept_id': '%s', 'target_dept_name': '%s', 'target_stock_id': '%s', 'target_area_code': '%s', 'target_area_name': '默认库区', 'source_id': '%s', 'source_no': '%s', 'source_repl_id': '%s', 'source_corp_id': '%s', 'source_branch_id': '%s', 'source_dept_id': '%s', 'source_dept_name': '%s', 'source_stock_id': '%s', 'source_area_code': '%s', 'source_area_name': '默认库区', 'remark': None, 'tb_status': 20, 'accounter': None, 'account_date': None, 'bill_relation_json': '{"buyBillId":"%s","planBillId":"%s","planOrderNo":"%s","buyOrderNo":"%s","purOrderNo":"%s","purBillId":"%s","purBillDate":"%s","distrBillId":"%s","distrOrderNo":"%s","checkBillId":"%s","checkOrderNo":"%s","psiInBillId":"%s","psiInOrderNo":"%s","psiOutBillId":"%s","psiOutOrderNo":"%s"}', 'reject_time': None, 'reject_remark': None, 'create_user': '%s', 'create_time': %s, 'last_modified': %s, 'last_modified_user': '%s', 'version': 0, 'last_auditor': None, 'last_audit_time': None, 'reject_user': None, 'initial_order': None, 'source_type': 'BD', 'reject_reason': None, 'receipt_status': 0}'
\ No newline at end of file
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