Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
6f237ee3
authored
2022-01-24 11:29:00 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add autosettlement link
1 parent
0ed2410b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
6f237ee
...
...
@@ -1352,10 +1352,16 @@ class AutoSettlementView(GenericView):
auto_queryset
=
auto_class
.
objects
.
filter
(
query
)
.
values
(
*
val_tuple
)
.
order_by
(
'-ocr_latest_comparison_time'
)[
start_index
:
end_index
]
auto_link_base
=
'{0}/showList/showList?entity={1}&scheme={2}&case_id={3}&auto=1'
for
auto_dict
in
auto_queryset
:
auto_dict
[
'ocr_auto_result_pass'
]
=
consts
.
RE_RESULT_MAP
.
get
(
auto_dict
.
get
(
'ocr_auto_result_pass'
))
auto_dict
[
'ocr_whole_result_pass'
]
=
consts
.
RE_RESULT_MAP
.
get
(
auto_dict
.
get
(
'ocr_whole_result_pass'
))
auto_dict
[
'rpa_result'
]
=
consts
.
RE_RPA_RESULT_MAP
.
get
(
auto_dict
.
get
(
'rpa_result'
))
auto_dict
[
'target_url'
]
=
auto_link_base
.
format
(
conf
.
BASE_URL
,
business_type
,
consts
.
COMPARE_DOC_SCHEME_LIST
[
1
],
auto_dict
[
'application_id'
])
# total = len(doc_list)
pagination
=
{
'current'
:
page
,
'total'
:
total
,
'page_size'
:
page_size
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment