Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
Details
Activity
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
fulixin
dsk-operate-sys-cscec
Commits
06d3b882
Commit
06d3b882
authored
Oct 30, 2023
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
10e0a6b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
BusinessOpenTenderController.java
.../com/dsk/biz/controller/BusinessOpenTenderController.java
+1
-1
No files found.
dsk-module/dsk-biz-api/src/main/java/com/dsk/biz/controller/BusinessOpenTenderController.java
View file @
06d3b882
...
@@ -76,7 +76,7 @@ public class BusinessOpenTenderController extends BaseController {
...
@@ -76,7 +76,7 @@ public class BusinessOpenTenderController extends BaseController {
@Log
(
title
=
"开标记录批量导入"
,
businessType
=
BusinessType
.
IMPORT
)
@Log
(
title
=
"开标记录批量导入"
,
businessType
=
BusinessType
.
IMPORT
)
@PostMapping
(
"/importData/{businessId}"
)
@PostMapping
(
"/importData/{businessId}"
)
public
R
<
Map
<
String
,
Object
>>
importData
(
@RequestPart
(
"file"
)
MultipartFile
file
,
@PathVariable
Integer
businessId
)
throws
Exception
{
public
R
<
Map
<
String
,
Object
>>
importData
(
@RequestPart
(
"file"
)
MultipartFile
file
,
@PathVariable
Integer
businessId
)
throws
Exception
{
List
<
BusinessOpenTender
>
list
=
new
ExcelUtils
<>(
BusinessOpenTender
.
class
).
importExcel
(
file
.
getInputStream
(),
1
);
List
<
BusinessOpenTender
>
list
=
new
ExcelUtils
<>(
BusinessOpenTender
.
class
).
importExcel
(
file
.
getInputStream
(),
2
);
if
(
list
.
isEmpty
())
throw
new
BusinessException
(
"请填写导入数据!"
);
if
(
list
.
isEmpty
())
throw
new
BusinessException
(
"请填写导入数据!"
);
int
sucessCount
=
0
;
int
sucessCount
=
0
;
List
<
String
>
errorList
=
new
ArrayList
<>();
List
<
String
>
errorList
=
new
ArrayList
<>();
...
...
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