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
2546aaf6
Commit
2546aaf6
authored
Jul 22, 2024
by
xiao-hesheng
Browse files
数据库验证流程十二脚本编写
parent
fd8a31e4
Changes
3
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_b5流程十二请领业务流_二级库向二级库_数据库验证.air/a_b5流程十二请领业务流_二级库向二级库_数据库验证.py
View file @
2546aaf6
...
...
@@ -5,7 +5,7 @@ import traceback
from
air_case.b1_herp3_login.登录内网系统.登录内网系统
import
login_system
from
air_case.public1.public1.public1
import
*
from
common.db.sql.sql_del_branch_info
import
delData
from
common.db.sql.sql_tools
import
get_create_time
,
check_mcms_dept_buy_car_sql
from
common.db.sql.sql_tools
import
*
from
common.fileUtls
import
FileUtils
from
common.run_cmd_script
import
execute_command
...
...
@@ -48,18 +48,15 @@ def check_mcms_dept_buy_car(type=1):
# 要验证的sql,取自数据库的表中
actual_value1
=
check_mcms_dept_buy_car_sql
(
sql
)
print
(
actual_value1
)
deptid2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid
2
'
]
deptname2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid
2
'
]
deptid2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid
5
'
]
deptname2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid
5
'
]
areaCode
=
get_stockAreaId_new_fromDb
(
deptname2
,
2
)
areaName
=
'默认库区'
# 读取文件中的信息
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"二级库请领产品信息"
,
'message21'
)
list_a
=
info
[
'list_a'
]
mdm_goods_code
=
commonFuc
().
analysis_json
(
'mdmGoodsCode'
,
list_a
)
pur_mode
=
commonFuc
().
analysis_json
(
'purMode'
,
list_a
)
goodsCode
=
commonFuc
().
analysis_json
(
'goodsCode'
,
list_a
)
pkgDefId
=
commonFuc
().
analysis_json
(
'pkgDefId'
,
list_a
)
pkgDefName
=
commonFuc
().
analysis_json
(
'pkgDefName'
,
list_a
)
mdm_goods_code
=
get_mdm_goods_code1
(
hos_goods_id
)
goodsCode
=
get_goods_code1
(
hos_goods_id
)
pkgDefId
=
get_pkg_def_id
(
hos_goods_id
)
pkgDefName
=
get_pkg_def_Name
(
hos_goods_id
)
last_modified_user
=
create_user
last_modified
=
create_time
# print('actual_value1',actual_value1)
...
...
@@ -68,21 +65,28 @@ def check_mcms_dept_buy_car(type=1):
# print( actual_value2)
# prov_hos_goods_id = '8d6273b7bca84dd8aace12b9422d7fd6'
expected_value2
=
'expected_value2'
if
type
==
1
or
type
==
3
:
if
type
==
1
:
expected_value2
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'check_mcms_dept_buy_car
_low_value
'
,
id
,
get_hosid
(),
branch_id
,
'check_mcms_dept_buy_car'
,
id
,
get_hosid
(),
branch_id
,
deptid2
,
deptname2
,
areaCode
,
areaName
,
hos_goods_id
,
mdm_goods_code
,
goodsCode
,
pur_mode
,
pkgDefId
,
pkgDefName
goodsCode
,
pkgDefId
,
pkgDefName
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
elif
type
==
2
:
expected_value2
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'check_mcms_dept_buy_car
_high_value
'
,
id
,
get_hosid
(),
'check_mcms_dept_buy_car
2
'
,
id
,
get_hosid
(),
branch_id
,
deptid2
,
deptname2
,
areaCode
,
areaName
,
hos_goods_id
,
mdm_goods_code
,
goodsCode
,
pur_mode
,
goodsCode
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
else
:
expected_value2
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'check_mcms_dept_buy_car3'
,
id
,
get_hosid
(),
branch_id
,
deptid2
,
deptname2
,
areaCode
,
areaName
,
hos_goods_id
,
mdm_goods_code
,
goodsCode
,
pkgDefId
,
pkgDefName
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
# print('expected_value2', expected_value2)
# expected_value2=get_process_list2(expected_value2)
actual_value2
=
actual_value2
.
replace
(
" "
,
""
)
...
...
@@ -101,6 +105,192 @@ def check_mcms_dept_buy_car(type=1):
print
(
'error'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
# 检查二级库请领单审批前的子表数据
def
mcms_dept_buy_detail
(
type
=
16
):
branch_id
=
get_branch_id
()
# 获取主表主键
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
)
id1
=
process_tuple
(
get_dept_buy_id
(
sql
))
# 获取order_no
sql1
=
"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
)
order_no1
=
get_dept_buy_id
(
sql1
)
order_no1
=
process_tuple
(
order_no1
)
# 子表sql
sql1
=
"select * from mcms_dept_buy_detail where pid='%s';"
%
id1
# 从数据库中获取实际值
actual
=
check_mcms_dept_buy_sql
(
sql1
)
print
(
'actual'
,
actual
)
if
type
==
16
:
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
elif
type
==
20
:
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"
]
# print(hos_goods_id,process_tuple(hos_goods_id))
# 获取子表id
detail_id
=
get_id
(
"select id from mcms_dept_buy_detail where pid='%s';"
%
id1
)
print
(
'detail_id'
,
detail_id
)
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"二级库请领产品信息"
,
'message21'
)
list_a
=
info
[
'list_a'
]
mdm_goods_code
=
process_tuple
(
get_mdm_goods_code
(
"select mdm_goods_code from mcms_goods_info where id='%s';"
%
hos_goods_id
))
goods_code
=
process_tuple
(
get_mdm_goods_code
(
"select hos_goods_code from mcms_goods_info where id='%s';"
%
hos_goods_id
))
pkg_def_id
=
process_tuple
(
get_id
(
"select pkg_def_id from mcms_pkg where hos_goods_id='%s' LIMIT 1;"
%
hos_goods_id
))
if
pkg_def_id
==
'None'
:
print
(
pkg_def_id
)
pkg_def_id
=
pkg_def_id
.
replace
(
"'"
,
""
)
print
(
pkg_def_id
)
pkg_def_name
=
process_tuple
(
get_id
(
"select pkg_def_name from mcms_pkg where hos_goods_id='%s' LIMIT 1;"
%
hos_goods_id
))
create_user
=
get_login_user_uxid
()
create_time
=
get_create_time
(
"select create_time from mcms_dept_buy_detail where pid='%s';"
%
id1
)
last_modified
=
create_time
last_modified_user
=
create_user
if
type
==
16
:
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_dept_buy_detail'
,
detail_id
,
id1
,
order_no1
,
hos_goods_id
,
mdm_goods_code
,
goods_code
,
pkg_def_id
,
pkg_def_name
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
elif
type
==
20
:
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_dept_buy_detail1'
,
detail_id
,
id1
,
order_no1
,
hos_goods_id
,
mdm_goods_code
,
goods_code
,
pkg_def_id
,
pkg_def_name
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
else
:
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_dept_buy_detail2'
,
detail_id
,
id1
,
order_no1
,
hos_goods_id
,
mdm_goods_code
,
goods_code
,
pkg_def_id
,
pkg_def_name
,
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
:
print
(
'error'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
# 检查二级库请领单审批前的主表数据
def
check_mcms_dept_buy
(
type
=
16
):
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;
"""
%
(
branch_id
,
type
)
actual
=
check_mcms_dept_buy_sql
(
sql
)
print
(
actual
)
# 获取主键id
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
)
id1
=
get_dept_buy_id
(
sql
)
# 获取order_no
sql1
=
"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
)
order_no1
=
get_dept_buy_id
(
sql1
)
print
(
process_tuple
(
id1
),
process_tuple
(
order_no1
))
id1
=
process_tuple
(
id1
)
order_no1
=
process_tuple
(
order_no1
)
deptid2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid5'
]
deptname2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid5'
]
target_stock_name
=
get_branch_name
()
+
"中心库房"
# target_dept_id=FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid1']
# area_code = get_stockAreaId_new(deptid2, deptname2, 2)
# info = FileUtils().r_info8("b5_spd3_core_business_flow", "库区信息", 'message22')
# list_a = info['list_a']
area_code
=
get_stockAreaId_new_fromDb
(
deptname2
,
2
)
area_name
=
'默认库区'
# 读取文件中的信息
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"二级库向二级库请领产品信息"
,
'message23'
)
list_a
=
info
[
'list_a'
]
target_dept_id
=
commonFuc
().
analysis_json
(
'targetDeptId'
,
list_a
)
target_dept_name
=
commonFuc
().
analysis_json
(
'targetDeptName'
,
list_a
)
pur_mode
=
commonFuc
().
analysis_json
(
'purMode'
,
list_a
)
goodsCode
=
commonFuc
().
analysis_json
(
'goodsCode'
,
list_a
)
pkgDefId
=
commonFuc
().
analysis_json
(
'pkgDefId'
,
list_a
)
pkgDefName
=
commonFuc
().
analysis_json
(
'pkgDefName'
,
list_a
)
bill_expdt_date
=
get_expdt_date
(
"select bill_expdt_date from mcms_dept_buy where branch_id='%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
type
))
rec_user
=
get_login_user_uxid
()
# rec_addr='二级检验科002'
create_user
=
rec_user
create_time
=
get_create_time
(
"select create_time from mcms_dept_buy where branch_id='%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
type
))
last_modified
=
get_create_time
(
"select last_modified from mcms_dept_buy where branch_id='%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
type
))
last_modified_user
=
rec_user
last_auditor
=
rec_user
last_audit_time
=
get_create_time
(
"select last_audit_time from mcms_dept_buy where branch_id='%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
type
))
rec_addr
=
deptname2
dept_id1
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid2'
]
dept_name1
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid2'
]
stock_name
=
dept_name1
+
"库房"
target_stock_id
=
get_stockId_fromdb
(
stock_name
)
if
type
==
16
:
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_dept_buy5'
,
id1
,
order_no1
,
get_hosid
(),
branch_id
,
deptid2
,
deptname2
,
area_code
,
area_name
,
target_dept_id
,
target_dept_name
,
target_stock_id
,
target_stock_name
,
bill_expdt_date
,
rec_user
,
rec_addr
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
elif
type
==
20
:
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_dept_buy_direct_sending2'
,
id1
,
order_no1
,
get_hosid
(),
branch_id
,
deptid2
,
deptname2
,
area_code
,
area_name
,
target_dept_id
,
target_dept_name
,
target_stock_id
,
target_stock_name
,
bill_expdt_date
,
rec_user
,
rec_addr
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
else
:
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_dept_buy_direct_sending3'
,
id1
,
order_no1
,
get_hosid
(),
branch_id
,
deptid2
,
deptname2
,
area_code
,
area_name
,
target_dept_id
,
target_dept_name
,
target_stock_id
,
target_stock_name
,
bill_expdt_date
,
rec_user
,
rec_addr
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
print
(
'expected'
,
expected
)
print
(
'aaaaaaaaaaaaaaaaa'
)
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
)
print
(
compare_text_index
(
actual_value2
,
expected_value2
))
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'
)
try
:
pro_path
=
commonFuc
().
get_pro_path2
()
print
(
'pro_path'
,
pro_path
)
...
...
@@ -111,43 +301,49 @@ try:
from
a_b5流程十二请领业务流_二级库向二级库
import
add_new_deptinfo
,
edit_goods_target
,
second_dept_Request
from
a_b5流程十二请领业务流_二级库向二级库
import
BuyCarSubmit
,
pick_execute
from
a_b5流程十二请领业务流_二级库向二级库
import
purchase_module_process
from
a_b5流程十二请领业务流_二级库向二级库
import
order_dp
from
a_b5流程十二请领业务流_二级库向二级库
import
check_accept_order
add_dept2
()
# 新增一个二级科室
add_new_deptinfo
()
# 写入科室信息到文件中
grants_user_new
()
# 新增授权
# 同步库房信息
execute_command
(
"python runner_test.py tag id2263-221 debug sit"
)
# 设置部门用户
set_dept_user
(
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid5'
],
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid5'
],
2
)
# 设置部门负责人
set_dept_lead_new
(
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid5"
])
# 设置二级科室负责人
get_stockAreaId_new
(
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid5'
],
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid5'
],
2
)
# 设置库区联系人
deptName5
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid5'
]
set_stockShelf_Linkman
(
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid5"
],
get_stockAreaId2_new_fromDb
(
deptName5
,
2
))
#新建科室产品分配
dept_goods_distribute
(
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid5'
])
#编辑产品请领目标为二级检验科002
currentDeptId
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid5'
]
targetDeptId
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid2'
]
edit_goods_target
(
currentDeptId
,
targetDeptId
)
updateUserLoginDefaultRange
(
get_listUserMgrRangePage1
(
5
))
# 设置登录账号默认权限是新二级库
#========下面暂时注释
# add_dept2() # 新增一个二级科室
# add_new_deptinfo() # 写入科室信息到文件中
# grants_user_new() # 新增授权
# # 同步库房信息
# execute_command("python runner_test.py tag id2263-221 debug sit")
# # 设置部门用户
# set_dept_user(FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid5'],
# FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid5'], 2)
# # 设置部门负责人
# set_dept_lead_new(FileUtils().r_info8('b2_herp3_bs', '所有科室id', 'message6')["deptid5"]) # 设置二级科室负责人
# get_stockAreaId_new(FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid5'],
# FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid5'], 2)
#
# # 设置库区联系人
# deptName5 = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid5']
#
# set_stockShelf_Linkman(FileUtils().r_info8('b2_herp3_bs', '所有科室id', 'message6')["deptid5"],
# get_stockAreaId2_new_fromDb(deptName5, 2))
# #新建科室产品分配
# dept_goods_distribute(FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid5'])
# #编辑产品请领目标为二级检验科002
# currentDeptId = FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid5']
# targetDeptId = FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid2']
# edit_goods_target(currentDeptId, targetDeptId)
#
# updateUserLoginDefaultRange(get_listUserMgrRangePage1(5)) # 设置登录账号默认权限是新二级库
# # # 低值
second_dept_Request
(
FileUtils
().
r_info8
(
"b5_spd3_core_business_flow"
,
"产品审核信息"
,
'message2'
)[
'hosGoodsId'
],
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"
,
"产品审核信息"
,
'message3'
)[
'hosGoodsId'
],
3
)
BuyCarSubmit
()
# 请领车提交
# second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message2')['hosGoodsId'], 1)
# check_mcms_dept_buy_car(1)
# # # # 高值
# second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId'], 2)
# check_mcms_dept_buy_car(2)
# # # # 试剂
# second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message3')['hosGoodsId'], 3)
# check_mcms_dept_buy_car(3)
# 上面暂时注释========================
# BuyCarSubmit() # 请领车提交
list_data
=
[
'16'
,
'20'
,
'66'
]
for
i
in
list_data
:
check_mcms_dept_buy
(
int
(
i
))
mcms_dept_buy_detail
(
int
(
i
))
for
i
in
range
(
6
):
# 三个单据共审批6次
approval_center
()
updateUserLoginDefaultRange
(
get_listUserMgrRangePage1
(
2
))
# 设置登录账号默认权限是二级库
...
...
common/db/sql/sql_tools.py
View file @
2546aaf6
...
...
@@ -218,6 +218,12 @@ def get_pkg_def_id(hos_goods_id):
results
=
cursor
.
fetchone
()
cursor
.
close
()
return
process_tuple
(
results
)
def
get_pkg_def_Name
(
hos_goods_id
):
db
,
cursor
=
get_sql_conn
()
cursor
.
execute
(
"select pkg_def_name from mcms_pkg where hos_goods_id='%s'"
%
hos_goods_id
)
results
=
cursor
.
fetchone
()
cursor
.
close
()
return
process_tuple
(
results
)
def
get_goods_name1
(
hos_goods_id
):
db
,
cursor
=
get_sql_conn
()
cursor
.
execute
(
"select goods_name from mcms_goods_info where id='%s'"
%
hos_goods_id
)
...
...
data/b6_spd3_core_business_flow_database_check/data
View file @
2546aaf6
...
...
@@ -60,4 +60,16 @@
"mcms_check_batch": '{"id": "%s", "pid": "%s", "order_no": "%s", "source_detail_id": "%s", "distr_detail_id": "%s", "pur_mode": 10, "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "barcode_id": "%s", "sub_barcode_id": None, "qty": Decimal("100.00"), "reject_qty": Decimal("0.00"), "reject_reason": None, "settlement": 1, "tb_status": 1, "pur_task_id": None, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0}'
"mcms_check_batch1": '{"id": "%s", "pid": "%s", "order_no": "%s", "source_detail_id": "%s", "distr_detail_id": "%s", "pur_mode": 20, "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "barcode_id": "%s", "sub_barcode_id": None, "qty": Decimal("1.00"), "reject_qty": Decimal("0.00"), "reject_reason": None, "settlement": 1, "tb_status": 1, "pur_task_id": None, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0}'
"mcms_check_batch2": '{"id": "%s", "pid": "%s", "order_no": "%s", "source_detail_id": "%s", "distr_detail_id": "%s", "pur_mode": 60, "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "barcode_id": "%s", "sub_barcode_id": None, "qty": Decimal("100.00"), "reject_qty": Decimal("0.00"), "reject_reason": None, "settlement": 1, "tb_status": 1, "pur_task_id": None, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0}'
\ No newline at end of file
"mcms_check_batch2": '{"id": "%s", "pid": "%s", "order_no": "%s", "source_detail_id": "%s", "distr_detail_id": "%s", "pur_mode": 60, "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "barcode_id": "%s", "sub_barcode_id": None, "qty": Decimal("100.00"), "reject_qty": Decimal("0.00"), "reject_reason": None, "settlement": 1, "tb_status": 1, "pur_task_id": None, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0}'
"check_mcms_dept_buy_car": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "area_code": "%s", "area_name": "%s", "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "pur_mode": 10, "pkg_def_id": "%s", "pkg_def_name": "%s", "pkg_def_qty": Decimal("100.00"), "buy_pkg_qty": Decimal("1.00"), "buy_qty": Decimal("100.00"), "tb_status": 0, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "coding_type": 0}'
"check_mcms_dept_buy_car2": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "area_code": "%s", "area_name": "%s", "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "pur_mode": 20, "pkg_def_id": null, "pkg_def_name": null, "pkg_def_qty": Decimal("1.00"), "buy_pkg_qty": Decimal("1.00"), "buy_qty": Decimal("1.00"), "tb_status": 0, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "coding_type": 0}'
"check_mcms_dept_buy_car3": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "area_code": "%s", "area_name": "%s", "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "pur_mode": 60, "pkg_def_id": "%s", "pkg_def_name": "%s", "pkg_def_qty": Decimal("100.00"), "buy_pkg_qty": Decimal("1.00"), "buy_qty": Decimal("100.00"), "tb_status": 0, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "coding_type": 0}'
"mcms_dept_buy5": '{"id": "%s", "order_no": "%s", "bill_mode": "16", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "area_code": "%s", "area_name": "%s", "source_id": None, "buy_way": null, "create_type": "SG", "buy_kind": "LY", "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_stock_name": "%s", "bill_expdt_date": %s, "bill_expect_date": None, "priority": 0, "buy_priority": 0, "barcode_flag": 1, "pkg_flag": 1, "remark": "", "dept_audit_remark": None, "audit_remark": None, "close_remark": None, "srv_id": None, "srv_name": None, "gen_status": 0, "close_status": 0, "tb_status": 10, "rec_user": "%s", "rec_phone": "xhs0301", "rec_addr": "%s", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "del_flag": 0, "last_auditor": None, "last_audit_time": None, "close_time": None, "old_order_no": None}'
"mcms_dept_buy5_2": '{"id": "%s", "order_no": "%s", "bill_mode": "20", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "area_code": "%s", "area_name": "%s", "source_id": None, "buy_way": null, "create_type": "SG", "buy_kind": "LY", "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_stock_name": "%s", "bill_expdt_date": %s, "bill_expect_date": None, "priority": 0, "buy_priority": 0, "barcode_flag": 1, "pkg_flag": 0, "remark": "", "dept_audit_remark": None, "audit_remark": None, "close_remark": None, "srv_id": None, "srv_name": None, "gen_status": 0, "close_status": 0, "tb_status": 10, "rec_user": "%s", "rec_phone": "xhs0301", "rec_addr": "%s", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "del_flag": 0, "last_auditor": None, "last_audit_time": None, "close_time": None, "old_order_no": None}'
"mcms_dept_buy5_3": '{"id": "%s", "order_no": "%s", "bill_mode": "66", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "area_code": "%s", "area_name": "%s", "source_id": None, "buy_way": null, "create_type": "SG", "buy_kind": "LY", "target_dept_id": "%s", "target_dept_name": "%s", "target_stock_id": "%s", "target_stock_name": "%s", "bill_expdt_date": %s, "bill_expect_date": None, "priority": 0, "buy_priority": 0, "barcode_flag": 1, "pkg_flag": 1, "remark": "", "dept_audit_remark": None, "audit_remark": None, "close_remark": None, "srv_id": None, "srv_name": None, "gen_status": 0, "close_status": 0, "tb_status": 10, "rec_user": "%s", "rec_phone": "xhs0301", "rec_addr": "%s", "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "del_flag": 0, "last_auditor": None, "last_audit_time": None, "close_time": None, "old_order_no": None}'
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