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
c2ae76e3
Commit
c2ae76e3
authored
Jul 02, 2024
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wangdingyi' into 'dev'
用户照片添加名称 See merge request
!390
parents
83370fcb
98c8af14
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
1 deletion
+13
-1
UserPhotoStorage.java
...view/src/main/java/com/ruoyi/domain/UserPhotoStorage.java
+4
-0
UserPhotoStorageServiceImpl.java
...a/com/ruoyi/service/impl/UserPhotoStorageServiceImpl.java
+1
-0
UserPhotoStorageCreateRequest.java
.../com/ruoyi/web/request/UserPhotoStorageCreateRequest.java
+3
-0
UserPhotoStorageMapper.xml
...view/src/main/resources/mapper/UserPhotoStorageMapper.xml
+5
-1
No files found.
quality-review/src/main/java/com/ruoyi/domain/UserPhotoStorage.java
View file @
c2ae76e3
...
@@ -40,6 +40,10 @@ public class UserPhotoStorage
...
@@ -40,6 +40,10 @@ public class UserPhotoStorage
@ApiModelProperty
(
"用户账号"
)
@ApiModelProperty
(
"用户账号"
)
private
String
username
;
private
String
username
;
/** 图片名称 */
@ApiModelProperty
(
"图片名称"
)
private
String
name
;
/** 图片路径 */
/** 图片路径 */
@ApiModelProperty
(
"图片路径"
)
@ApiModelProperty
(
"图片路径"
)
private
String
path
;
private
String
path
;
...
...
quality-review/src/main/java/com/ruoyi/service/impl/UserPhotoStorageServiceImpl.java
View file @
c2ae76e3
...
@@ -88,6 +88,7 @@ public class UserPhotoStorageServiceImpl extends ServiceImpl<UserPhotoStorageMap
...
@@ -88,6 +88,7 @@ public class UserPhotoStorageServiceImpl extends ServiceImpl<UserPhotoStorageMap
UserPhotoStorage
userPhotoStorage
=
UserPhotoStorage
.
builder
()
UserPhotoStorage
userPhotoStorage
=
UserPhotoStorage
.
builder
()
.
userId
(
loginUser
.
getUserId
())
.
userId
(
loginUser
.
getUserId
())
.
username
(
loginUser
.
getUsername
())
.
username
(
loginUser
.
getUsername
())
.
name
(
request
.
getName
())
.
path
(
request
.
getPath
())
.
path
(
request
.
getPath
())
.
createTime
(
DateUtils
.
getNowDate
())
.
createTime
(
DateUtils
.
getNowDate
())
.
build
();
.
build
();
...
...
quality-review/src/main/java/com/ruoyi/web/request/UserPhotoStorageCreateRequest.java
View file @
c2ae76e3
...
@@ -21,4 +21,7 @@ public class UserPhotoStorageCreateRequest {
...
@@ -21,4 +21,7 @@ public class UserPhotoStorageCreateRequest {
@NotNull
(
message
=
"图片路径不能为空"
)
@NotNull
(
message
=
"图片路径不能为空"
)
private
String
path
;
private
String
path
;
@ApiModelProperty
(
"图片名称"
)
private
String
name
;
}
}
quality-review/src/main/resources/mapper/UserPhotoStorageMapper.xml
View file @
c2ae76e3
...
@@ -8,13 +8,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -8,13 +8,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"id"
column=
"id"
/>
<result
property=
"id"
column=
"id"
/>
<result
property=
"userId"
column=
"user_id"
/>
<result
property=
"userId"
column=
"user_id"
/>
<result
property=
"username"
column=
"username"
/>
<result
property=
"username"
column=
"username"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"path"
column=
"path"
/>
<result
property=
"path"
column=
"path"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"deleted"
column=
"deleted"
/>
<result
property=
"deleted"
column=
"deleted"
/>
</resultMap>
</resultMap>
<sql
id=
"selectUserPhotoStorageVo"
>
<sql
id=
"selectUserPhotoStorageVo"
>
select id, user_id, username, path, create_time, deleted from t_user_photo_storage
select id, user_id, username,
name,
path, create_time, deleted from t_user_photo_storage
</sql>
</sql>
<select
id=
"selectUserPhotoStorageList"
parameterType=
"com.ruoyi.domain.UserPhotoStorage"
resultMap=
"UserPhotoStorageResult"
>
<select
id=
"selectUserPhotoStorageList"
parameterType=
"com.ruoyi.domain.UserPhotoStorage"
resultMap=
"UserPhotoStorageResult"
>
...
@@ -32,6 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -32,6 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"id != null"
>
id,
</if>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"userId != null"
>
user_id,
</if>
<if
test=
"userId != null"
>
user_id,
</if>
<if
test=
"username != null"
>
username,
</if>
<if
test=
"username != null"
>
username,
</if>
<if
test=
"name != null"
>
name,
</if>
<if
test=
"path != null"
>
path,
</if>
<if
test=
"path != null"
>
path,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"deleted != null"
>
deleted,
</if>
<if
test=
"deleted != null"
>
deleted,
</if>
...
@@ -40,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -40,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"id != null"
>
#{id},
</if>
<if
test=
"id != null"
>
#{id},
</if>
<if
test=
"userId != null"
>
#{userId},
</if>
<if
test=
"userId != null"
>
#{userId},
</if>
<if
test=
"username != null"
>
#{username},
</if>
<if
test=
"username != null"
>
#{username},
</if>
<if
test=
"name != null"
>
#{name},
</if>
<if
test=
"path != null"
>
#{path},
</if>
<if
test=
"path != null"
>
#{path},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"deleted != null"
>
#{deleted},
</if>
<if
test=
"deleted != null"
>
#{deleted},
</if>
...
@@ -51,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -51,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim
prefix=
"SET"
suffixOverrides=
","
>
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"userId != null"
>
user_id = #{userId},
</if>
<if
test=
"userId != null"
>
user_id = #{userId},
</if>
<if
test=
"username != null"
>
username = #{username},
</if>
<if
test=
"username != null"
>
username = #{username},
</if>
<if
test=
"name != null"
>
name = #{name},
</if>
<if
test=
"path != null"
>
path = #{path},
</if>
<if
test=
"path != null"
>
path = #{path},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"deleted != null"
>
deleted = #{deleted},
</if>
<if
test=
"deleted != null"
>
deleted = #{deleted},
</if>
...
...
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