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 1618c424
authored
Feb 06, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
导出字段名称
1 parent
1ba9cdfc
Show 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 @
1618c42
...
@@ -13,6 +13,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
...
@@ -13,6 +13,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
import
jakarta.persistence.criteria.JoinType
;
import
jakarta.persistence.criteria.JoinType
;
import
jakarta.servlet.http.HttpServletResponse
;
import
jakarta.servlet.http.HttpServletResponse
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
...
@@ -29,6 +30,7 @@ import java.util.List;
...
@@ -29,6 +30,7 @@ import java.util.List;
* 用户偏好配置接口(REST版本)
* 用户偏好配置接口(REST版本)
* 贴合项目分页/导出规范,移除无需传入的登录用户参数
* 贴合项目分页/导出规范,移除无需传入的登录用户参数
*/
*/
@Slf4j
@Tag
(
name
=
"用户偏好配置接口"
,
description
=
"用户车辆偏好的查询、修改等操作"
)
@Tag
(
name
=
"用户偏好配置接口"
,
description
=
"用户车辆偏好的查询、修改等操作"
)
@RestController
@RestController
@RequestMapping
(
"/rest/account/preference"
)
@RequestMapping
(
"/rest/account/preference"
)
...
@@ -59,7 +61,8 @@ public class AccountPreferenceController {
...
@@ -59,7 +61,8 @@ public class AccountPreferenceController {
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd_hh-mm"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd_hh-mm"
);
String
format
=
sdf
.
format
(
new
Date
());
String
format
=
sdf
.
format
(
new
Date
());
String
name
=
String
.
format
(
"收车偏好列表_%s"
,
format
);
String
name
=
String
.
format
(
"收车偏好列表_%s"
,
format
);
ExcelExporter
.
exportExcel
(
response
,
name
,
"用户偏好列表"
,
AccountPreferenceExportBean
.
class
,
exportBeans
);
log
.
info
(
"收车偏好导出{}"
,
name
);
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