Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9e8550c9
authored
Feb 06, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.1.0' of
https://gitee.com/foutouren/aus
into v1.1.0
2 parents
a3272823
1b1c0211
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
aus-admin/src/main/java/com/glsx/usedcar/web/rest/account/AccountPreferenceController.java
aus-admin/src/main/java/com/glsx/usedcar/web/rest/account/AccountPreferenceController.java
View file @
9e8550c
package
com
.
glsx
.
usedcar
.
web
.
rest
.
account
;
package
com
.
glsx
.
usedcar
.
web
.
rest
.
account
;
import
cn.hutool.core.date.DateUtil
;
import
com.glsx.usedcar.export.AccountPreferenceExportBean
;
import
com.glsx.usedcar.export.AccountPreferenceExportBean
;
import
com.glsx.usedcar.export.ExcelExporter
;
import
com.glsx.usedcar.export.ExcelExporter
;
import
com.glsx.usedcar.module.account.dto.*
;
import
com.glsx.usedcar.module.account.dto.*
;
...
@@ -21,6 +22,7 @@ import org.springframework.web.bind.annotation.*;
...
@@ -21,6 +22,7 @@ import org.springframework.web.bind.annotation.*;
import
org.summerframework.orm.paging.Pagination
;
import
org.summerframework.orm.paging.Pagination
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -54,7 +56,8 @@ public class AccountPreferenceController {
...
@@ -54,7 +56,8 @@ public class AccountPreferenceController {
// 实体转导出Bean(需自定义AccountPreferenceExportBean)
// 实体转导出Bean(需自定义AccountPreferenceExportBean)
List
<
AccountPreferenceExportBean
>
exportBeans
=
preferences
.
stream
().
map
(
AccountPreferenceExportBean:
:
new
).
toList
();
List
<
AccountPreferenceExportBean
>
exportBeans
=
preferences
.
stream
().
map
(
AccountPreferenceExportBean:
:
new
).
toList
();
// Excel导出(复用项目的ExcelExporter工具类)
// Excel导出(复用项目的ExcelExporter工具类)
ExcelExporter
.
exportExcel
(
response
,
"用户偏好列表"
,
"用户偏好列表"
,
AccountPreferenceExportBean
.
class
,
exportBeans
);
String
name
=
String
.
format
(
"收车偏好列表_%s"
,
DateUtil
.
format
(
new
Date
(),
"YYYY-MM-DD_HH_mm"
));
ExcelExporter
.
exportExcel
(
response
,
name
,
"用户偏好列表"
,
AccountPreferenceExportBean
.
class
,
exportBeans
);
}
}
@Operation
(
summary
=
"根据用户偏好id修改用户偏好"
,
description
=
"根据主键ID修改用户车辆偏好配置"
)
@Operation
(
summary
=
"根据用户偏好id修改用户偏好"
,
description
=
"根据主键ID修改用户车辆偏好配置"
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment