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
749417ae
Commit
749417ae
authored
Jul 29, 2024
by
肖 和生
Browse files
Merge remote-tracking branch 'remotes/origin/master' into core_flow
parents
ad4f637f
a495c4b4
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_b4流程十一请领业务流_二级库向直送_数据库验证.air/a_b4流程十一请领业务流_二级库向直送_数据库验证.py
View file @
749417ae
This diff is collapsed.
Click to expand it.
air_case/b6_spd3_core_business_flow_database_check/a_b6流程十三请领业务流_三级库向二级库_数据库验证.air/a_b6流程十三请领业务流_三级库向二级库_数据库验证.py
View file @
749417ae
This diff is collapsed.
Click to expand it.
air_case/public1/public1/public1.py
View file @
749417ae
...
@@ -1890,6 +1890,7 @@ def get_stockAreaId_new_fromDb(deptName, type=1):
...
@@ -1890,6 +1890,7 @@ def get_stockAreaId_new_fromDb(deptName, type=1):
# 中心库房名称
# 中心库房名称
branch_name
=
FileUtils
().
r_info
(
module
,
'院区新增'
)[
"branch_name"
]
branch_name
=
FileUtils
().
r_info
(
module
,
'院区新增'
)[
"branch_name"
]
stockId
=
get_stockId_fromdb
(
branch_name
+
'中心库房'
)
stockId
=
get_stockId_fromdb
(
branch_name
+
'中心库房'
)
deptName
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid1'
]
# 二级库房名称
# 二级库房名称
elif
type
==
2
:
elif
type
==
2
:
stockId
=
get_stockId_fromdb
(
deptName
+
'库房'
)
stockId
=
get_stockId_fromdb
(
deptName
+
'库房'
)
...
@@ -1901,6 +1902,7 @@ def get_stockAreaId_new_fromDb(deptName, type=1):
...
@@ -1901,6 +1902,7 @@ def get_stockAreaId_new_fromDb(deptName, type=1):
# 获取库房id==========结束============
# 获取库房id==========结束============
# ====获取库区id===== 开始==========
# ====获取库区id===== 开始==========
sql
=
"select shelf_code from mcms_stock_shelf where stock_Id='%s'and address='%s';"
%
(
stockId
,
deptName
)
sql
=
"select shelf_code from mcms_stock_shelf where stock_Id='%s'and address='%s';"
%
(
stockId
,
deptName
)
print
(
sql
)
print
(
sql
)
shelfCode
=
get_id
(
sql
)
shelfCode
=
get_id
(
sql
)
...
...
common/db/sql/sql_tools.py
View file @
749417ae
...
@@ -411,6 +411,26 @@ def get_distrOrderNo(branch_id,bill_mode):
...
@@ -411,6 +411,26 @@ def get_distrOrderNo(branch_id,bill_mode):
"select order_no from hdi_distr a where id = '%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
"select order_no from hdi_distr a where id = '%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
get_distrBillId
(
branch_id
,
bill_mode
),
bill_mode
))
get_distrBillId
(
branch_id
,
bill_mode
),
bill_mode
))
return
distr_order_no
return
distr_order_no
def
get_checkBillId
(
branch_id
,
bill_mode
):
checkBillId
=
get_id
(
"select id from mcms_check where branch_id='%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
branch_id
,
bill_mode
))
return
checkBillId
def
get_checkOrderNo
(
branch_id
,
bill_mode
):
checkOrderNo
=
get_id
(
"select order_no from mcms_check a where id = '%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
get_checkBillId
(
branch_id
,
bill_mode
),
bill_mode
))
return
checkOrderNo
def
get_psiInBillId
(
branch_id
,
bill_mode
):
psiInBillId
=
get_id
(
"select id from mcms_psi where target_branch_id='%s' and bill_mode='%s' and stock_kind='RK_YS' order by create_time desc LIMIT 1;"
%
(
branch_id
,
bill_mode
))
return
psiInBillId
def
get_psiInOrderNo
(
branch_id
,
bill_mode
):
psiInOrderNo
=
get_id
(
"select order_no from mcms_psi a where id = '%s' and bill_mode='%s' order by create_time desc LIMIT 1;"
%
(
get_psiInBillId
(
branch_id
,
bill_mode
),
bill_mode
))
return
psiInOrderNo
def
check_in_check_mcms_purchase
(
sql
):
def
check_in_check_mcms_purchase
(
sql
):
db
,
cursor
=
get_sql_conn
()
db
,
cursor
=
get_sql_conn
()
cursor
.
execute
(
sql
)
cursor
.
execute
(
sql
)
...
...
data/b5_spd3_core_business_flow/message15
View file @
749417ae
验收单号
:
验收单号
:
CHECK_NO1
:
CHECKh03472024072
6
000
68
CHECK_NO1
:
CHECKh03472024072
90
000
2
CHECK_NO2
:
CHECKh03472024072
6
000
68
CHECK_NO2
:
CHECKh03472024072
90
000
2
data/b6_spd3_core_business_flow_database_check/data
View file @
749417ae
This diff is collapsed.
Click to expand it.
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