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
84eae508
Commit
84eae508
authored
Sep 19, 2024
by
xiao-hesheng
Browse files
流程五脚本提交
parent
139f511c
Changes
5
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_b0流程七_中心库入库结算_正负结算_数据库验证.air/a_b0流程七_中心库入库结算_正负结算_数据库验证.py
View file @
84eae508
...
...
@@ -518,8 +518,8 @@ def check_mcms_out_balance_detail2(type=1, pid=""):
# 从文件中获取条码信息
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"条码信息"
,
'message18'
)
list_a
=
info
[
'list_a'
]
bar_id
=
commonFuc
().
analysis_json
(
'id'
,
list_a
)
bar_code
=
commonFuc
().
analysis_json
(
'pkgCodeSee'
,
list_a
)
bar_id
=
get_id
(
"select bar_id from mcms_out_balance_detail where id='%s';"
%
(
id
)
)
bar_code
=
get_id
(
"select bar_code from mcms_out_balance_detail where id='%s';"
%
(
id
)
)
from_id
=
get_id
(
"select from_id from mcms_out_balance_detail where id='%s';"
%
(
id
))
if
check_batch_id
(
from_id
)
==
True
:
...
...
@@ -537,6 +537,206 @@ def check_mcms_out_balance_detail2(type=1, pid=""):
last_modified_user
=
create_user
out_dept_id
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid1'
]
out_dept_name
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid1'
]
sub_prov_name
=
prov_name
account_date
=
get_account_date1
(
"select account_date from mcms_out_balance_detail where id='%s';"
%
id
)
un_settle_id
=
get_id
(
"select un_settle_id from mcms_out_balance_detail where id='%s';"
%
id
)
if
check_un_balance_id
(
un_settle_id
):
print
(
'ok'
)
commonFuc
().
check_text_exist_result_text
(
'success'
,
'success'
)
else
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'success'
)
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'check_mcms_out_balance_detail_0918_2'
,
id
,
pid
,
prov_id
,
prov_name
,
sub_prov_id
,
sub_prov_name
,
out_dept_id
,
out_dept_name
,
account_date
,
from_id
,
from_order_no
,
hos_goods_id
,
bar_id
,
bar_code
,
distr_detail_id
,
hos_batch_id
,
un_settle_id
,
create_user
,
create_time
,
last_modified
,
last_modified_user
,
hos_id
)
# 对比预期值和实际值是否一致
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
:
print
(
'error'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
def
check_mcms_out_balance_approve_after
(
type
=
1
,
OBh_ID
=
""
):
print
(
'===检查结算数据======'
)
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"
]
branch_id
=
get_branch_id
()
sql
=
"select * from mcms_out_balance where branch_id='%s' order by CREATE_TIME desc LIMIT 1;"
%
(
branch_id
)
# 获取实际值
actual
=
check_mcms_pur_plan_sql
(
sql
)
print
(
'actual'
,
actual
)
sql
=
"select id from mcms_out_balance where branch_id='%s' order by CREATE_TIME desc LIMIT 1;"
%
(
branch_id
)
id
=
get_id
(
sql
)
if
id
==
OBh_ID
:
print
(
'ok'
)
commonFuc
().
check_text_exist_result_text
(
'success'
,
'success'
)
else
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'success'
)
order_no
=
get_id
(
"select order_no from mcms_out_balance where branch_id='%s' order by CREATE_TIME desc LIMIT 1;"
%
(
branch_id
))
hos_id
=
get_hosid
()
prov_id
=
get_prov_id
()
prov_name
=
get_prov_name
()
sub_prov_id
=
prov_id
settle_dept_id
=
None
distr_detail_id
=
get_id
(
"select distr_detail_id from mcms_out_un_balance where id='%s';"
%
id
)
if
check_distr_detail_id
(
distr_detail_id
)
==
True
:
print
(
'ok'
)
commonFuc
().
check_text_exist_result_text
(
'success'
,
'success'
)
else
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'success'
)
hos_batch_id
=
get_id
(
"select hos_batch_id from mcms_out_un_balance where id='%s';"
%
id
)
if
check_batch_id
(
hos_batch_id
)
==
True
:
print
(
'ok'
)
commonFuc
().
check_text_exist_result_text
(
'success'
,
'success'
)
else
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'success'
)
# 从文件中获取条码信息
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"条码信息"
,
'message18'
)
list_a
=
info
[
'list_a'
]
bar_id
=
commonFuc
().
analysis_json
(
'id'
,
list_a
)
bar_code
=
commonFuc
().
analysis_json
(
'pkgCodeSee'
,
list_a
)
from_id
=
get_id
(
"select id from mcms_psi_batch where hos_goods_id='%s' order by CREATE_TIME desc LIMIT 1;"
%
(
hos_goods_id
))
from_order_no
=
get_id
(
"select order_no from mcms_psi_batch where hos_goods_id='%s' order by CREATE_TIME desc LIMIT 1;"
%
(
hos_goods_id
))
settle_start_time
=
get_account_date1
(
"select settle_start_time from mcms_out_balance where id='%s';"
%
id
)
settle_end_time
=
get_account_date1
(
"select settle_end_time from mcms_out_balance where id='%s';"
%
id
)
account_user_id
=
get_login_user_uxid_bydb
(
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)[
'username1'
])
create_user
=
account_user_id
create_time
=
get_create_time
(
"select create_time from mcms_out_balance where id='%s';"
%
id
)
last_modified
=
get_create_time
(
"select last_modified from mcms_out_balance where id='%s';"
%
id
)
last_modified_user
=
create_user
goods_code
=
get_goods_code1
(
hos_goods_id
)
charge_dept_id
=
settle_dept_id
settle_month
=
get_id
(
"select settle_month from mcms_out_balance where id='%s';"
%
id
)
year
,
month
=
dateUtils
().
get_year_month
(
dateUtils
().
get_current_time
())
if
month
<
10
:
month
=
"0"
+
str
(
month
)
year_month
=
str
(
year
)
+
str
(
month
)
if
year_month
==
settle_month
:
print
(
'ok'
)
commonFuc
().
check_text_exist_result_text
(
'success'
,
'success'
)
else
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'success'
)
check_user
=
create_user
check_time
=
get_create_time
(
"select check_time from mcms_out_balance where id='%s';"
%
id
)
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'check_mcms_out_balance_0919'
,
id
,
order_no
,
branch_id
,
hos_id
,
prov_id
,
prov_name
,
settle_month
,
settle_start_time
,
settle_end_time
,
create_user
,
create_time
,
last_modified
,
last_modified_user
,
check_user
,
check_time
)
# 对比预期值和实际值是否一致
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
:
print
(
'error'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
# 检查结算表子表数据
check_mcms_out_balance_detail_approve_after
(
type
,
id
)
check_mcms_out_balance_detail_approve_after2
(
type
,
id
)
def
check_mcms_out_balance_detail_approve_after
(
type
=
1
,
pid
=
""
):
print
(
'===检查结算数据子表======'
)
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"
]
branch_id
=
get_branch_id
()
sql
=
"select * from mcms_out_balance_detail where pid='%s' order by id LIMIT 1;;"
%
(
pid
)
# 获取实际值
actual
=
check_mcms_pur_plan_sql
(
sql
)
print
(
'actual'
,
actual
)
sql
=
"select id from mcms_out_balance_detail where pid='%s' order by id LIMIT 1;"
%
(
pid
)
id
=
get_id
(
sql
)
sql
=
"select id from mcms_out_balance_detail where pid='%s' order by id LIMIT 1 OFFSET 1;"
%
(
pid
)
id2
=
get_id
(
sql
)
hos_id
=
get_hosid
()
prov_id
=
get_prov_id
()
prov_name
=
get_prov_name
()
sub_prov_id
=
prov_id
settle_dept_id
=
None
distr_detail_id
=
get_id
(
"select distr_detail_id from mcms_out_balance_detail where id='%s';"
%
id
)
if
check_distr_detail_id
(
distr_detail_id
)
==
True
:
print
(
'ok'
)
commonFuc
().
check_text_exist_result_text
(
'success'
,
'success'
)
else
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'success'
)
hos_batch_id
=
get_id
(
"select hos_batch_id from mcms_out_balance_detail where id='%s';"
%
id
)
if
check_batch_id
(
hos_batch_id
)
==
True
:
print
(
'ok'
)
commonFuc
().
check_text_exist_result_text
(
'success'
,
'success'
)
else
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'success'
)
# 从文件中获取条码信息
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"条码信息"
,
'message18'
)
list_a
=
info
[
'list_a'
]
bar_id
=
commonFuc
().
analysis_json
(
'id'
,
list_a
)
bar_code
=
commonFuc
().
analysis_json
(
'pkgCodeSee'
,
list_a
)
from_id
=
get_id
(
"select id from mcms_psi_batch where hos_goods_id='%s' order by CREATE_TIME desc LIMIT 1;"
%
(
hos_goods_id
))
from_order_no
=
get_id
(
"select order_no from mcms_psi_batch where hos_goods_id='%s' order by CREATE_TIME desc LIMIT 1;"
%
(
hos_goods_id
))
account_user_id
=
get_login_user_uxid_bydb
(
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)[
'username1'
])
create_user
=
account_user_id
create_time
=
get_create_time
(
"select create_time from mcms_out_balance_detail where id='%s';"
%
id
)
last_modified
=
get_create_time
(
"select last_modified from mcms_out_balance_detail where id='%s';"
%
id
)
last_modified_user
=
create_user
# goods_code = get_goods_code1(hos_goods_id)
# charge_dept_id = settle_dept_id
# settle_month = get_id("select settle_month from mcms_out_balance where id='%s';" % id)
# year, month = dateUtils().get_year_month(dateUtils().get_current_time())
out_dept_id
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid1'
]
out_dept_name
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid1'
]
sub_prov_name
=
prov_name
...
...
@@ -545,7 +745,104 @@ def check_mcms_out_balance_detail2(type=1, pid=""):
"select id from mcms_out_un_balance where branch_id='%s' and from_kind='CK_TH' and hos_goods_id='%s' order by CREATE_TIME desc LIMIT 1;"
%
(
branch_id
,
hos_goods_id
))
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'check_mcms_out_balance_detail_0918_2'
,
id
,
'check_mcms_out_balance_detail_0919_1'
,
id
,
pid
,
prov_id
,
prov_name
,
sub_prov_id
,
sub_prov_name
,
out_dept_id
,
out_dept_name
,
account_date
,
from_id
,
from_order_no
,
hos_goods_id
,
bar_id
,
bar_code
,
distr_detail_id
,
hos_batch_id
,
un_settle_id
,
create_user
,
create_time
,
last_modified
,
last_modified_user
,
hos_id
)
# 对比预期值和实际值是否一致
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
:
print
(
'error'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
def
check_mcms_out_balance_detail_approve_after2
(
type
=
1
,
pid
=
""
):
print
(
'===检查结算数据子表======'
)
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"
]
branch_id
=
get_branch_id
()
sql
=
"select * from mcms_out_balance_detail where pid='%s' order by id LIMIT 1 OFFSET 1;"
%
(
pid
)
# 获取实际值
actual
=
check_mcms_pur_plan_sql
(
sql
)
print
(
'actual'
,
actual
)
# sql = "select id from mcms_out_balance_detail where pid='%s' order by id LIMIT 1;" % (
# pid)
# id = get_id(sql)
sql
=
"select id from mcms_out_balance_detail where pid='%s' order by id LIMIT 1 OFFSET 1;"
%
(
pid
)
id
=
get_id
(
sql
)
hos_id
=
get_hosid
()
prov_id
=
get_prov_id
()
prov_name
=
get_prov_name
()
sub_prov_id
=
prov_id
settle_dept_id
=
None
distr_detail_id
=
get_id
(
"select distr_detail_id from mcms_out_balance_detail where id='%s';"
%
id
)
if
check_distr_detail_id
(
distr_detail_id
)
==
True
:
print
(
'ok'
)
commonFuc
().
check_text_exist_result_text
(
'success'
,
'success'
)
else
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'success'
)
hos_batch_id
=
get_id
(
"select hos_batch_id from mcms_out_balance_detail where id='%s';"
%
id
)
if
check_batch_id
(
hos_batch_id
)
==
True
:
print
(
'ok'
)
commonFuc
().
check_text_exist_result_text
(
'success'
,
'success'
)
else
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'success'
)
# 从文件中获取条码信息
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"条码信息"
,
'message18'
)
list_a
=
info
[
'list_a'
]
bar_id
=
get_id
(
"select bar_id from mcms_out_balance_detail where id='%s';"
%
(
id
))
bar_code
=
get_id
(
"select bar_code from mcms_out_balance_detail where id='%s';"
%
(
id
))
from_id
=
get_id
(
"select from_id from mcms_out_balance_detail where id='%s';"
%
(
id
))
if
check_batch_id
(
from_id
)
==
True
:
print
(
'ok'
)
commonFuc
().
check_text_exist_result_text
(
'success'
,
'success'
)
else
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'success'
)
from_order_no
=
get_id
(
"select order_no from mcms_psi_batch where id='%s';"
%
(
from_id
))
account_user_id
=
get_login_user_uxid_bydb
(
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)[
'username1'
])
create_user
=
account_user_id
create_time
=
get_create_time
(
"select create_time from mcms_out_balance_detail where id='%s';"
%
id
)
last_modified
=
get_create_time
(
"select last_modified from mcms_out_balance_detail where id='%s';"
%
id
)
last_modified_user
=
create_user
out_dept_id
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid1'
]
out_dept_name
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid1'
]
sub_prov_name
=
prov_name
account_date
=
get_account_date1
(
"select account_date from mcms_out_balance_detail where id='%s';"
%
id
)
un_settle_id
=
get_id
(
"select un_settle_id from mcms_out_balance_detail where id='%s';"
%
id
)
if
check_un_balance_id
(
un_settle_id
):
print
(
'ok'
)
commonFuc
().
check_text_exist_result_text
(
'success'
,
'success'
)
else
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'success'
)
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'check_mcms_out_balance_detail_0919_2'
,
id
,
pid
,
prov_id
,
prov_name
,
sub_prov_id
,
sub_prov_name
,
out_dept_id
,
out_dept_name
,
account_date
,
from_id
,
from_order_no
,
hos_goods_id
,
bar_id
,
bar_code
,
distr_detail_id
,
hos_batch_id
,
un_settle_id
,
create_user
,
...
...
@@ -592,10 +889,14 @@ try:
# check_mcms_out_un_balance()
# time.sleep(6)
# OBh_ID = settle() # 生成结算单
# # print(OBh_ID)
check_mcms_out_balance
(
1
,
'OBh0347202409180007'
)
# 调用审批结算单
approval_center
(
OBh_ID
)
# print(OBh_ID)
# time.sleep(6)
# check_mcms_out_balance(1, OBh_ID)#结算审批前的结算数据
# # 调用审批结算单
# approval_center(OBh_ID)
# time.sleep(6)
check_mcms_out_balance_approve_after
(
1
,
'OBh0347202409190004'
)
# 结算审批后的结算数据
time
.
sleep
(
3
)
invoice
(
3
,
OBh_ID
)
# type=2 传递结算单号,外网查询开票
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
except
Exception
as
e
:
...
...
air_case/public1/public1/public1.py
View file @
84eae508
...
...
@@ -381,13 +381,20 @@ def settle(): # 结算相关
branch_id
=
FileUtils
().
r_info
(
'b2_herp3_bs'
,
'院区新增'
)[
"branch_id"
]
hosId
=
branch_id
[
0
:
5
]
provId
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_corpId"
]
accountDate1
=
timeUtils
().
get_time_hms
(
5
)
# accountDate1 = timeUtils().get_time_hms(5)
accountDate1
=
timeUtils
().
get_time_add
(
-
30
,
2
)
accountDate2
=
timeUtils
().
get_time_hms
(
5
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload7"
,
provId
,
accountDate1
,
accountDate2
,
hosId
,
hosId
)
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload7"
,
hos_goods_id
,
provId
,
accountDate1
,
accountDate2
,
hosId
,
hosId
)
print
(
'生成结算单列表查询request_body'
,
request_body
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
print
(
'
生成结算单列表查询
result'
,
result
)
data
=
commonFuc
().
analysis_json
(
'data'
,
result
)
data1
=
commonFuc
().
analysis_json
(
'data'
,
data
)
total
=
commonFuc
().
analysis_json
(
'total'
,
data
)
if
total
<
2
:
print
(
'待结算数据小于两条,检查待结算数据,暂时返回'
)
return
# 取结算单id
list_a
=
[]
for
i
in
data1
:
...
...
common/db/sql/sql_tools.py
View file @
84eae508
...
...
@@ -452,7 +452,17 @@ def check_barcode_id(barcode_id):
return
True
else
:
return
False
def
check_un_balance_id
(
un_balance_id
):
db
,
cursor
=
get_sql_conn
()
cursor
.
execute
(
"select id from mcms_out_un_balance where id='%s'"
%
(
un_balance_id
))
results1
=
cursor
.
fetchall
()
cursor
.
close
()
db
.
close
()
batch_id
=
process_tuple
(
results1
)
if
batch_id
!=
None
:
return
True
else
:
return
False
def
get_PICK_id
(
branch_id
,
bill_mode
):
sql
=
"select id from mcms_pick where branch_id='%s' and bill_mode='%s' order by CREATE_TIME desc LIMIT 1;"
%
(
...
...
data/b5_spd3_core_business_flow/data
View file @
84eae508
...
...
@@ -96,7 +96,7 @@ json_headers2: {
"payload5": {"batchList":[{"viewId":"%s","shelfCode":"%s"}],"sourceId":"%s","sourceType":"%s","sourceVersion":"%s","targetDeptId":"%s","targetDeptName":"%s","targetAreaCode":"%s","targetAreaName":"%s","pkgTaskId":null}
"payload6": {"pageNum":1,"pageSize":50,"orderBy":"","queryObject":{"branchId":"%s","taskType":0,"stockKind":"","sourceOrgName":"","hosId":"%s"}}
"payload7": {"pageNum":1,"pageSize":50,"queryObject":{"goodsInfo":"","provId":"%s",barCodeInfo":"","fromOrderNo":"","purModeList":["10"],"accountDate1":"%s","accountDate2":"%s","tbStatus":0,"hosId":"%s"},"hosId":"%s"}
"payload7": {"pageNum":1,"pageSize":50,"queryObject":{"goodsInfo":"
%s
","provId":"%s",barCodeInfo":"","fromOrderNo":"","purModeList":["10"],"accountDate1":"%s","accountDate2":"%s","tbStatus":0,"hosId":"%s"},"hosId":"%s"}
"payload8": {"genTypeEnum":"0","queryInfo":{"pageNum":1,"pageSize":50,"queryObject":{"goodsInfo":"","barCodeInfo":"","fromOrderNo":"","purModeList":[],"accountDate1":"","accountDate2":"","tbStatus":0,"hosId":"%s"}},"idList":["%s","%s"],"hosId":"%s"}
"payload9": {"pageNum":1,"pageSize":50,"queryObject":{"invoiceNumber":"","invoiceDate1":"%s","invoiceDate2":"%s","tbStatus":"10","hosId":"%s"},"hosId":"%s"}
...
...
data/b6_spd3_core_business_flow_database_check/data
View file @
84eae508
...
...
@@ -368,4 +368,13 @@
"check_mcms_out_balance_detail_0918_1": '{"id": "%s", "pid": "%s", "prov_id": "%s", "prov_name": "%s", "sub_prov_id": "%s", "sub_prov_name": "%s", "out_dept_id": "%s", "out_dept_name": "%s", "account_date": %s, "pur_mode": 10, "from_table": "mcms_psi_batch", "from_id": "%s", "from_order_no": "%s", "hos_goods_id": "%s", "bar_id": "%s", "bar_code": "%s", "distr_detail_id": "%s", "hos_batch_id": "%s", "tb_status": 10, "price": Decimal("99.999900"), "settle_qty": Decimal("-100.00"), "invoice_qty": Decimal("0.00"), "settle_amount": Decimal("-9999.9900"), "un_settle_id": "%s", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "settle_type": 1, "contract_id": None, "normal_contract_id": None, "temp_purchase": 0, "hos_id": "%s", "fcat_id": None, "invoice_price": Decimal("99.999900"), "online_kind": "10"}'
"check_mcms_out_balance_detail_0918_2": '{"id": "%s", "pid": "%s", "prov_id": "%s", "prov_name": "%s", "sub_prov_id": "%s", "sub_prov_name": "%s", "out_dept_id": "%s", "out_dept_name": "%s", "account_date": %s, "pur_mode": 10, "from_table": "mcms_psi_batch", "from_id": "%s", "from_order_no": "%s", "hos_goods_id": "%s", "bar_id": "%s", "bar_code": "%s", "distr_detail_id": "%s", "hos_batch_id": "%s", "tb_status": 10, "price": Decimal("99.999900"), "settle_qty": Decimal("100.00"), "invoice_qty": Decimal("0.00"), "settle_amount": Decimal("9999.9900"), "un_settle_id": "%s", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "settle_type": 1, "contract_id": None, "normal_contract_id": None, "temp_purchase": 0, "hos_id": "%s", "fcat_id": None, "invoice_price": Decimal("99.999900"), "online_kind": "10"}'
\ No newline at end of file
"check_mcms_out_balance_detail_0918_2": '{"id": "%s", "pid": "%s", "prov_id": "%s", "prov_name": "%s", "sub_prov_id": "%s", "sub_prov_name": "%s", "out_dept_id": "%s", "out_dept_name": "%s", "account_date": %s, "pur_mode": 10, "from_table": "mcms_psi_batch", "from_id": "%s", "from_order_no": "%s", "hos_goods_id": "%s", "bar_id": "%s", "bar_code": "%s", "distr_detail_id": "%s", "hos_batch_id": "%s", "tb_status": 10, "price": Decimal("99.999900"), "settle_qty": Decimal("100.00"), "invoice_qty": Decimal("0.00"), "settle_amount": Decimal("9999.9900"), "un_settle_id": "%s", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "settle_type": 1, "contract_id": None, "normal_contract_id": None, "temp_purchase": 0, "hos_id": "%s", "fcat_id": None, "invoice_price": Decimal("99.999900"), "online_kind": "10"}'
#中心库退货出库_结算数据主表_审批后
"check_mcms_out_balance_0919": '{"id": "%s", "order_no": "%s", "branch_id": "%s", "hos_id": "%s", "prov_id": "%s", "prov_name": "%s", "settle_dept_id": None, "tb_status": 20, "sum_row": 2, "settle_amount": Decimal("0.000000"), "settle_way": 0, "settle_month": "%s", "settle_start_time": %s, "settle_end_time": %s, "remark": None, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "check_msg": "22", "settle_qty": Decimal("0.0000"), "check_user": "%s", "check_time": %s}'
#中心库退货出库_结算数据子表_审批后
"check_mcms_out_balance_detail_0919_1": '{"id": "%s", "pid": "%s", "prov_id": "%s", "prov_name": "%s", "sub_prov_id": "%s", "sub_prov_name": "%s", "out_dept_id": "%s", "out_dept_name": "%s", "account_date": %s, "pur_mode": 10, "from_table": "mcms_psi_batch", "from_id": "%s", "from_order_no": "%s", "hos_goods_id": "%s", "bar_id": "%s", "bar_code": "%s", "distr_detail_id": "%s", "hos_batch_id": "%s", "tb_status": 10, "price": Decimal("99.999900"), "settle_qty": Decimal("-100.00"), "invoice_qty": Decimal("0.00"), "settle_amount": Decimal("-9999.9900"), "un_settle_id": "%s", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "settle_type": 1, "contract_id": None, "normal_contract_id": None, "temp_purchase": 0, "hos_id": "%s", "fcat_id": None, "invoice_price": Decimal("99.999900"), "online_kind": "10"}'
"check_mcms_out_balance_detail_0919_2": '{"id": "%s", "pid": "%s", "prov_id": "%s", "prov_name": "%s", "sub_prov_id": "%s", "sub_prov_name": "%s", "out_dept_id": "%s", "out_dept_name": "%s", "account_date": %s, "pur_mode": 10, "from_table": "mcms_psi_batch", "from_id": "%s", "from_order_no": "%s", "hos_goods_id": "%s", "bar_id": "%s", "bar_code": "%s", "distr_detail_id": "%s", "hos_batch_id": "%s", "tb_status": 10, "price": Decimal("99.999900"), "settle_qty": Decimal("100.00"), "invoice_qty": Decimal("0.00"), "settle_amount": Decimal("9999.9900"), "un_settle_id": "%s", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "settle_type": 1, "contract_id": None, "normal_contract_id": None, "temp_purchase": 0, "hos_id": "%s", "fcat_id": None, "invoice_price": Decimal("99.999900"), "online_kind": "10"}'
\ 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