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
5b84472b
Commit
5b84472b
authored
Jul 02, 2024
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
dev - master 34 See merge request
!391
parents
46e23921
c2ae76e3
Changes
4
Show 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 @
5b84472b
...
...
@@ -40,6 +40,10 @@ public class UserPhotoStorage
@ApiModelProperty
(
"用户账号"
)
private
String
username
;
/** 图片名称 */
@ApiModelProperty
(
"图片名称"
)
private
String
name
;
/** 图片路径 */
@ApiModelProperty
(
"图片路径"
)
private
String
path
;
...
...
quality-review/src/main/java/com/ruoyi/service/impl/UserPhotoStorageServiceImpl.java
View file @
5b84472b
...
...
@@ -88,6 +88,7 @@ public class UserPhotoStorageServiceImpl extends ServiceImpl<UserPhotoStorageMap
UserPhotoStorage
userPhotoStorage
=
UserPhotoStorage
.
builder
()
.
userId
(
loginUser
.
getUserId
())
.
username
(
loginUser
.
getUsername
())
.
name
(
request
.
getName
())
.
path
(
request
.
getPath
())
.
createTime
(
DateUtils
.
getNowDate
())
.
build
();
...
...
quality-review/src/main/java/com/ruoyi/web/request/UserPhotoStorageCreateRequest.java
View file @
5b84472b
...
...
@@ -21,4 +21,7 @@ public class UserPhotoStorageCreateRequest {
@NotNull
(
message
=
"图片路径不能为空"
)
private
String
path
;
@ApiModelProperty
(
"图片名称"
)
private
String
name
;
}
quality-review/src/main/resources/mapper/UserPhotoStorageMapper.xml
View file @
5b84472b
...
...
@@ -8,13 +8,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"id"
column=
"id"
/>
<result
property=
"userId"
column=
"user_id"
/>
<result
property=
"username"
column=
"username"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"path"
column=
"path"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"deleted"
column=
"deleted"
/>
</resultMap>
<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>
<select
id=
"selectUserPhotoStorageList"
parameterType=
"com.ruoyi.domain.UserPhotoStorage"
resultMap=
"UserPhotoStorageResult"
>
...
...
@@ -32,6 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"id != null"
>
id,
</if>
<if
test=
"userId != null"
>
user_id,
</if>
<if
test=
"username != null"
>
username,
</if>
<if
test=
"name != null"
>
name,
</if>
<if
test=
"path != null"
>
path,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"deleted != null"
>
deleted,
</if>
...
...
@@ -40,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"id != null"
>
#{id},
</if>
<if
test=
"userId != null"
>
#{userId},
</if>
<if
test=
"username != null"
>
#{username},
</if>
<if
test=
"name != null"
>
#{name},
</if>
<if
test=
"path != null"
>
#{path},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"deleted != null"
>
#{deleted},
</if>
...
...
@@ -51,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"userId != null"
>
user_id = #{userId},
</if>
<if
test=
"username != null"
>
username = #{username},
</if>
<if
test=
"name != null"
>
name = #{name},
</if>
<if
test=
"path != null"
>
path = #{path},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</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