Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vehicle-quality-review
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
王飞
vehicle-quality-review
Commits
27b7070f
Commit
27b7070f
authored
Jul 02, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询用户照片存储列表
parent
6044bc64
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
UserPhotoStorageService.java
.../main/java/com/ruoyi/service/UserPhotoStorageService.java
+1
-1
UserPhotoStorageServiceImpl.java
...a/com/ruoyi/service/impl/UserPhotoStorageServiceImpl.java
+5
-2
UserPhotoStorageController.java
...c/main/java/com/ruoyi/web/UserPhotoStorageController.java
+1
-1
No files found.
quality-review/src/main/java/com/ruoyi/service/UserPhotoStorageService.java
View file @
27b7070f
...
...
@@ -22,7 +22,7 @@ public interface UserPhotoStorageService extends IService<UserPhotoStorage>
* @param request 用户照片存储
* @return 用户照片存储集合
*/
public
List
<
PhotoStorageVO
>
selectUserPhotoStorageList
(
UserPhotoStorageListRequest
request
);
public
List
<
PhotoStorageVO
>
selectUserPhotoStorageList
();
/**
* 新增用户照片存储
...
...
quality-review/src/main/java/com/ruoyi/service/impl/UserPhotoStorageServiceImpl.java
View file @
27b7070f
...
...
@@ -34,12 +34,15 @@ public class UserPhotoStorageServiceImpl extends ServiceImpl<UserPhotoStorageMap
/**
* 查询用户照片存储列表
*
* @param request 用户照片存储
* @return 用户照片存储
*/
@Override
public
List
<
PhotoStorageVO
>
selectUserPhotoStorageList
(
UserPhotoStorageListRequest
request
)
public
List
<
PhotoStorageVO
>
selectUserPhotoStorageList
()
{
// 构建登录用户
LoginUser
loginUser
=
SecurityUtils
.
getLoginUser
();
UserPhotoStorageListRequest
request
=
new
UserPhotoStorageListRequest
();
request
.
setUserId
(
loginUser
.
getUserId
());
List
<
UserPhotoStorage
>
userPhotoStorages
=
userPhotoStorageMapper
.
selectUserPhotoStorageList
(
request
);
// 创建一个VOList,用于返回数据
List
<
PhotoStorageVO
>
photoStorageVOList
=
new
ArrayList
<>();
...
...
quality-review/src/main/java/com/ruoyi/web/UserPhotoStorageController.java
View file @
27b7070f
...
...
@@ -48,7 +48,7 @@ public class UserPhotoStorageController extends BaseController
public
TableDataInfo
<
PhotoStorageVO
>
list
(
@Validated
@RequestBody
UserPhotoStorageListRequest
request
)
{
// startPage();
List
<
PhotoStorageVO
>
list
=
userPhotoStorageService
.
selectUserPhotoStorageList
(
request
);
List
<
PhotoStorageVO
>
list
=
userPhotoStorageService
.
selectUserPhotoStorageList
();
return
getDataTable
(
list
);
}
...
...
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