Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
6763f670
Commit
6763f670
authored
9 months ago
by
xiao-hesheng
Browse files
Options
Download
Email Patches
Plain Diff
数据库验证流程十二脚本编写
parent
6b85db6e
master
core_flow
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
air_case/b6_spd3_core_business_flow_database_check/a_b4流程十一请领业务流_二级库向直送_数据库验证.air/a_b4流程十一请领业务流_二级库向直送_数据库验证.py
+4
-2
...4流程十一请领业务流_二级库向直送_数据库验证.air/a_b4流程十一请领业务流_二级库向直送_数据库验证.py
with
4 additions
and
2 deletions
+4
-2
air_case/b6_spd3_core_business_flow_database_check/a_b4流程十一请领业务流_二级库向直送_数据库验证.air/a_b4流程十一请领业务流_二级库向直送_数据库验证.py
+
4
-
2
View file @
6763f670
...
...
@@ -1043,10 +1043,12 @@ def check_mcms_purchase_detail(id, type, OrderNo):
def
check_mcms_purchase_out_and_in
(
type
=
1
):
branch_id
=
get_branch_id
()
create_user
=
get_login_user_uxid2
()
if
type
==
1
:
sql
=
"select * from mcms_purchase order by create_time desc LIMIT 3;"
sql
=
"select * from mcms_purchase
branch_id='%s' and create_user='%s'
order by create_time desc LIMIT 3;"
%
(
branch_id
,
create_user
)
else
:
sql
=
"select * from mcms_purchase_detail order by create_time desc LIMIT 3;"
sql
=
"select * from mcms_purchase_detail
create_user='%s'
order by create_time desc LIMIT 3;"
%
create_user
result_in
=
check_in_check_mcms_purchase
(
sql
)
result_out
=
check_out_check_mcms_purchase
(
sql
)
result
=
(
compare_text_index
(
result_in
,
result_out
))
...
...
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
Menu
Explore
Projects
Groups
Snippets