记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
88d1c522
Commit
88d1c522
authored
Aug 25, 2022
by
GaoHu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代理数据导出ex文件名(演出名+日期+代理数据)
parent
59fcb098
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
SmileShowBaseController.java
...eb/controller/zhengzai/smile/SmileShowBaseController.java
+3
-3
saleData.html
...urces/templates/zhengzai/smile/smileTickets/saleData.html
+1
-1
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/smile/SmileShowBaseController.java
View file @
88d1c522
...
@@ -52,11 +52,11 @@ public class SmileShowBaseController extends BaseController {
...
@@ -52,11 +52,11 @@ public class SmileShowBaseController extends BaseController {
@GetMapping
(
"/export"
)
@GetMapping
(
"/export"
)
@ApiOperation
(
"单个演出销售列表导出"
)
@ApiOperation
(
"单个演出销售列表导出"
)
@ResponseBody
@ResponseBody
public
void
export
(
String
perId
,
HttpServletResponse
response
)
{
public
void
export
(
String
perId
,
String
title
,
HttpServletResponse
response
)
{
ServletOutputStream
servletOutputStream
=
null
;
ServletOutputStream
servletOutputStream
=
null
;
try
{
try
{
response
.
setHeader
(
HttpHeaders
.
CONTENT_DISPOSITION
,
"attachment;filename="
.
concat
(
DateUtil
.
Formatter
.
ddHHmmssTrim
.
format
(
LocalDateTime
.
now
()))
response
.
setHeader
(
HttpHeaders
.
CONTENT_DISPOSITION
,
"attachment;filename="
.
concat
(
new
String
((
"单个演出销售列表导出
"
).
getBytes
(
"gb2312"
),
StandardCharsets
.
ISO_8859_1
)).
concat
(
ExcelTypeEnum
.
XLSX
.
getValue
()));
.
concat
(
new
String
((
title
+
DateUtil
.
getNowTime
()
+
"代理数据
"
).
getBytes
(
"gb2312"
),
StandardCharsets
.
ISO_8859_1
)).
concat
(
ExcelTypeEnum
.
XLSX
.
getValue
()));
response
.
setContentType
(
MediaType
.
MULTIPART_FORM_DATA_VALUE
);
response
.
setContentType
(
MediaType
.
MULTIPART_FORM_DATA_VALUE
);
response
.
setCharacterEncoding
(
StandardCharsets
.
UTF_8
.
name
());
response
.
setCharacterEncoding
(
StandardCharsets
.
UTF_8
.
name
());
servletOutputStream
=
response
.
getOutputStream
();
servletOutputStream
=
response
.
getOutputStream
();
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/smile/smileTickets/saleData.html
View file @
88d1c522
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
headers
:
{
"Content-Type"
:
"application/json;charset=UTF-8"
},
headers
:
{
"Content-Type"
:
"application/json;charset=UTF-8"
},
data
:
params
,
data
:
params
,
success
:
function
(
e
)
{
success
:
function
(
e
)
{
window
.
location
.
replace
(
'http://'
+
window
.
location
.
host
+
'/smile/show/base/export?perId='
+
'[[${saleDataVo.performancesId}]]'
.
replaceAll
(
"
\"
"
,
""
))
window
.
location
.
replace
(
'http://'
+
window
.
location
.
host
+
'/smile/show/base/export?perId='
+
'[[${saleDataVo.performancesId}]]'
.
replaceAll
(
"
\"
"
,
""
)
+
'&title='
+
'[[${saleDataVo.title}]]'
)
}
}
});
});
...
...
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