Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
存储配置服务
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 9c731460
authored
Dec 17, 2021
by
xmh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
2b825b0d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
src/main/java/com/viontech/storage/controller/CaptionController.java
src/main/java/com/viontech/storage/controller/PicConfigController.java
src/main/java/com/viontech/storage/controller/StorageConfigController.java
src/main/java/com/viontech/storage/entity/Context.java
src/main/java/com/viontech/storage/controller/CaptionController.java
View file @
9c73146
...
...
@@ -57,7 +57,7 @@ public class CaptionController {
@PutMapping
(
"/{id}"
)
public
Message
<
Caption
>
updateById
(
@PathVariable
Long
id
,
@RequestBody
CaptionVo
item
)
{
List
<
Context
>
texts
=
item
.
getContexts
();
if
(
CollectionUtil
.
isNotEmpty
(
texts
)
)
{
if
(
texts
!=
null
)
{
item
.
setContext
(
JSONUtil
.
toJsonStr
(
texts
));
}
item
.
setId
(
id
);
...
...
src/main/java/com/viontech/storage/controller/PicConfigController.java
View file @
9c73146
...
...
@@ -67,7 +67,7 @@ public class PicConfigController {
@PutMapping
(
"/{id}"
)
public
Message
<
PicConfig
>
updateById
(
@PathVariable
Long
id
,
@RequestBody
PicConfigVo
item
)
{
List
<
Context
>
contexts
=
item
.
getContexts
();
if
(
CollectionUtil
.
isNotEmpty
(
contexts
)
)
{
if
(
contexts
!=
null
)
{
item
.
setContext
(
JSONUtil
.
toJsonStr
(
contexts
));
}
item
.
setId
(
id
);
...
...
src/main/java/com/viontech/storage/controller/StorageConfigController.java
View file @
9c73146
...
...
@@ -77,7 +77,7 @@ public class StorageConfigController {
@PutMapping
(
"/{id}"
)
public
Message
<
StorageConfig
>
updateById
(
@PathVariable
Long
id
,
@RequestBody
StorageConfigVo
storageConfigVo
)
{
List
<
Context
>
contexts
=
storageConfigVo
.
getContexts
();
if
(
CollectionUtil
.
isNotEmpty
(
contexts
)
)
{
if
(
contexts
!=
null
)
{
storageConfigVo
.
setContext
(
JSONUtil
.
toJsonStr
(
contexts
));
}
storageConfigVo
.
setId
(
id
);
...
...
src/main/java/com/viontech/storage/entity/Context.java
View file @
9c73146
...
...
@@ -20,6 +20,7 @@ public class Context {
private
Integer
type
;
/** used by CaptionVo */
private
String
content
;
private
Boolean
wrap
;
/** used by CaptionVo , PicConfigVo and StorageConfigVo */
private
Integer
order
;
...
...
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