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
cb270a88
authored
2024-07-16 16:40:08 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'fix/2024-05-pen-test' into feature/uat-tmp
2 parents
3b8a6905
a89c8e28
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
cb270a8
...
...
@@ -1917,12 +1917,12 @@ class GoView(GenericView):
return
response
.
error_msg
(
msg
=
'识别错误'
)
class
InvoiceExcelView
(
GenericView
):
permission_classes
=
[
IsAuthenticated
]
authentication_classes
=
[
OAuth2AuthenticationWithUser
]
#
permission_classes = [IsAuthenticated]
#
authentication_classes = [OAuth2AuthenticationWithUser]
# 下载发票excel
@use_args
(
invoice_download_args
,
location
=
'
data
'
)
def
pos
t
(
self
,
request
,
args
):
@use_args
(
invoice_download_args
,
location
=
'
querystring
'
)
def
ge
t
(
self
,
request
,
args
):
application_ids
=
args
.
get
(
'application_ids'
)
application_entity
=
args
.
get
(
'application_entity'
)
self
.
running_log
.
info
(
'[InvoiceExcelView] [user_role={0}] '
.
format
(
'111222333'
))
...
...
@@ -1963,11 +1963,11 @@ class InvoiceExcelView(GenericView):
url
,
json
.
dumps
(
body
),
traceback
.
format_exc
()))
class
InvoiceQueryInfoView
(
GenericView
):
permission_classes
=
[
IsAuthenticated
]
authentication_classes
=
[
OAuth2AuthenticationWithUser
]
#
permission_classes = [IsAuthenticated]
#
authentication_classes = [OAuth2AuthenticationWithUser]
@use_args
(
invoice_download_args
,
location
=
'
data
'
)
def
pos
t
(
self
,
request
,
args
):
@use_args
(
invoice_download_args
,
location
=
'
querystring
'
)
def
ge
t
(
self
,
request
,
args
):
application_ids
=
args
.
get
(
'application_ids'
)
application_entity
=
args
.
get
(
'application_entity'
)
self
.
running_log
.
info
(
'[InvoiceExcelView] [user_role={0}] '
.
format
(
'111222333'
))
...
...
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