记得上下班打卡 | 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
2e70ded7
Commit
2e70ded7
authored
Mar 04, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~opt:导出调整xls-xlsx;
parent
dd97d844
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
GoblinStoreMgtCouponController.java
...lin/controller/manage/GoblinStoreMgtCouponController.java
+3
-2
GoblinStoreMgtGoodsController.java
...blin/controller/manage/GoblinStoreMgtGoodsController.java
+3
-2
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/manage/GoblinStoreMgtCouponController.java
View file @
2e70ded7
package
com
.
liquidnet
.
service
.
goblin
.
controller
.
manage
;
package
com
.
liquidnet
.
service
.
goblin
.
controller
.
manage
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.support.ExcelTypeEnum
;
import
com.github.xiaoymin.knife4j.annotations.ApiOperationSupport
;
import
com.github.xiaoymin.knife4j.annotations.ApiOperationSupport
;
import
com.github.xiaoymin.knife4j.annotations.ApiSupport
;
import
com.github.xiaoymin.knife4j.annotations.ApiSupport
;
import
com.liquidnet.common.exception.constant.ErrorCode
;
import
com.liquidnet.common.exception.constant.ErrorCode
;
...
@@ -92,8 +93,8 @@ public class GoblinStoreMgtCouponController {
...
@@ -92,8 +93,8 @@ public class GoblinStoreMgtCouponController {
if
(
log
.
isDebugEnabled
())
{
if
(
log
.
isDebugEnabled
())
{
log
.
debug
(
"商铺活动:优惠券导出:[mgtCouponFilterParam={}]"
,
JsonUtils
.
toJson
(
mgtCouponFilterParam
));
log
.
debug
(
"商铺活动:优惠券导出:[mgtCouponFilterParam={}]"
,
JsonUtils
.
toJson
(
mgtCouponFilterParam
));
}
}
response
.
setHeader
(
HttpHeaders
.
CONTENT_DISPOSITION
,
"attachment;filename="
+
DateUtil
.
Formatter
.
ddHHmmssTrim
.
format
(
LocalDateTime
.
now
(
))
response
.
setHeader
(
HttpHeaders
.
CONTENT_DISPOSITION
,
"attachment;filename="
.
concat
(
DateUtil
.
Formatter
.
ddHHmmssTrim
.
format
(
LocalDateTime
.
now
()
))
+
new
String
((
"优惠券数据"
).
getBytes
(
"gb2312"
),
StandardCharsets
.
ISO_8859_1
)
+
".xls"
);
.
concat
(
new
String
((
"优惠券数据"
).
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-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/manage/GoblinStoreMgtGoodsController.java
View file @
2e70ded7
package
com
.
liquidnet
.
service
.
goblin
.
controller
.
manage
;
package
com
.
liquidnet
.
service
.
goblin
.
controller
.
manage
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.support.ExcelTypeEnum
;
import
com.github.xiaoymin.knife4j.annotations.ApiOperationSupport
;
import
com.github.xiaoymin.knife4j.annotations.ApiOperationSupport
;
import
com.github.xiaoymin.knife4j.annotations.ApiSupport
;
import
com.github.xiaoymin.knife4j.annotations.ApiSupport
;
import
com.liquidnet.common.exception.constant.ErrorCode
;
import
com.liquidnet.common.exception.constant.ErrorCode
;
...
@@ -94,8 +95,8 @@ public class GoblinStoreMgtGoodsController {
...
@@ -94,8 +95,8 @@ public class GoblinStoreMgtGoodsController {
if
(
log
.
isDebugEnabled
())
{
if
(
log
.
isDebugEnabled
())
{
log
.
debug
(
"商品管理:SPU导出:[UID={},GoblinStoreMgtGoodsFilterParam={}]"
,
currentUid
,
JsonUtils
.
toJson
(
storeMgtGoodsFilterParam
));
log
.
debug
(
"商品管理:SPU导出:[UID={},GoblinStoreMgtGoodsFilterParam={}]"
,
currentUid
,
JsonUtils
.
toJson
(
storeMgtGoodsFilterParam
));
}
}
response
.
setHeader
(
HttpHeaders
.
CONTENT_DISPOSITION
,
"attachment;filename="
+
DateUtil
.
Formatter
.
ddHHmmssTrim
.
format
(
LocalDateTime
.
now
(
))
response
.
setHeader
(
HttpHeaders
.
CONTENT_DISPOSITION
,
"attachment;filename="
.
concat
(
DateUtil
.
Formatter
.
ddHHmmssTrim
.
format
(
LocalDateTime
.
now
()
))
+
new
String
((
"商品数据"
).
getBytes
(
"gb2312"
),
StandardCharsets
.
ISO_8859_1
)
+
".xls"
);
.
concat
(
new
String
((
"商品数据"
).
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
();
...
...
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