Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amazon_reports
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
common
amazon_reports
Commits
96102c18
Commit
96102c18
authored
Aug 02, 2025
by
邱阿朋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(vc): 优化报关单导入异常处理
- 增加对文件格式错误的异常捕获和日志记录 - 返回 None 以避免报关单导入后数据为空的情况
parent
3e0dafdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
spa.py
app/vc/spa.py
+3
-1
No files found.
app/vc/spa.py
View file @
96102c18
...
...
@@ -103,7 +103,9 @@ class Spa(AutoInterface):
excel
.
save_xls
(
data
,
file_name
,
sheet_name
)
return
pd
.
read_excel
(
file_name
,
sheet_name
=
None
)
except
ValueError
as
e
:
pass
self
.
logger
.
warning
(
f
"{invoice_id} 文件格式错误: {e}"
)
return
None
def
__process_large_items
(
self
,
item_list
,
relation_data
,
coop
,
va_tax
):
"""处理大数据列表 (item_list 长度 >= 10)"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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