Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
e255578f
Commit
e255578f
authored
Nov 20, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
fddfcb62
c1fd3d55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+2
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/JpStationController.java
View file @
e255578f
...
@@ -665,7 +665,7 @@ public class JpStationController extends BaseController {
...
@@ -665,7 +665,7 @@ public class JpStationController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/jpstationReportExport"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/jpstationReportExport"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"电站
日报表导出"
,
notes
=
"电站日
报表导出"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"电站
报表导出"
,
notes
=
"电站
报表导出"
)
public
void
jpstationReportExport
(
@RequestParam
(
required
=
false
)
String
time
,
@RequestParam
(
required
=
false
)
List
<
String
>
snCodes
,
HttpServletResponse
response
,
String
type
)
{
public
void
jpstationReportExport
(
@RequestParam
(
required
=
false
)
String
time
,
@RequestParam
(
required
=
false
)
List
<
String
>
snCodes
,
HttpServletResponse
response
,
String
type
)
{
List
<
JpStation
>
jpStation
=
jpStationServiceImpl
.
getJpStation
(
new
JpStationDto
());
List
<
JpStation
>
jpStation
=
jpStationServiceImpl
.
getJpStation
(
new
JpStationDto
());
List
<
String
>
stationIds
=
jpStation
.
stream
().
map
(
jpStation1
->
jpStation1
.
getThirdStationId
()).
collect
(
Collectors
.
toList
());
List
<
String
>
stationIds
=
jpStation
.
stream
().
map
(
jpStation1
->
jpStation1
.
getThirdStationId
()).
collect
(
Collectors
.
toList
());
...
@@ -675,7 +675,7 @@ public class JpStationController extends BaseController {
...
@@ -675,7 +675,7 @@ public class JpStationController extends BaseController {
List
<
JpStationDto
>
jpStationDtos
=
jpStationServiceImpl
.
selectReportDate
(
time
,
snCodes
,
type
);
List
<
JpStationDto
>
jpStationDtos
=
jpStationServiceImpl
.
selectReportDate
(
time
,
snCodes
,
type
);
try
{
try
{
setResponseHeadForDowload
(
response
,
"电站报表.xls"
);
setResponseHeadForDowload
(
response
,
"电站报表.xls"
);
EasyExcel
.
write
(
response
.
getOutputStream
()).
head
(
JpStationDto
.
class
).
excelType
(
ExcelTypeEnum
.
XLS
).
sheet
(
"
逆变器日
报表"
).
doWrite
(
jpStationDtos
);
EasyExcel
.
write
(
response
.
getOutputStream
()).
head
(
JpStationDto
.
class
).
excelType
(
ExcelTypeEnum
.
XLS
).
sheet
(
"
电站
报表"
).
doWrite
(
jpStationDtos
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
...
...
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