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
5a72796d
Commit
5a72796d
authored
Dec 15, 2022
by
xixinzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下载名乱码
parent
c320ecaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
OrganizationController.java
...oot/module/jcs/biz/controller/OrganizationController.java
+10
-7
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/OrganizationController.java
View file @
5a72796d
...
...
@@ -35,6 +35,8 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.net.URLEncoder
;
import
java.nio.charset.StandardCharsets
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -98,9 +100,10 @@ public class OrganizationController extends BaseController {
public
void
export
(
HttpServletResponse
response
)
{
String
file_name
=
null
;
try
{
file_name
=
new
String
(
"组织机构信息"
.
getBytes
(),
"ISO-8859-1"
);
response
.
setContentType
(
"application/vnd.ms-excel"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
file_name
+
".xlsx"
);
response
.
setCharacterEncoding
(
"UTF-8"
);
response
.
setHeader
(
"content-Type"
,
"application/vnd.ms-excel"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
"组织机构信息.xlsx"
,
"UTF-8"
)
);
response
.
setHeader
(
"Access-Control-Expose-Headers"
,
"Content-Disposition"
);
List
<
OrganizationExportDto
>
firstSheetVOS
=
new
ArrayList
<>();
List
<
OrganizationUserExportDto
>
secondSheetVOS
=
new
ArrayList
<>();
...
...
@@ -136,11 +139,11 @@ public class OrganizationController extends BaseController {
return
;
}
}
String
file_name
=
null
;
try
{
file_name
=
new
String
(
"组织机构信息"
.
getBytes
(),
"ISO-8859-1"
);
response
.
setContentType
(
"application/vnd.ms-excel"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
file_name
+
".xlsx"
);
response
.
setCharacterEncoding
(
"UTF-8"
);
response
.
setHeader
(
"content-Type"
,
"application/vnd.ms-excel"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
"组织机构信息.xlsx"
,
"UTF-8"
)
);
response
.
setHeader
(
"Access-Control-Expose-Headers"
,
"Content-Disposition"
);
// 应急小组信息
List
<
OrganizationExportDto
>
organizationList
=
organizationService
.
selectOrganization
(
bizOrgCode
);
// 应急小组人员信息
...
...
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