Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
Project
Project
Details
Activity
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
liqin
chnmuseum-party
Commits
df6056a5
Commit
df6056a5
authored
May 17, 2021
by
jiawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG修改===》》》修改学习内容展板列表排序问题
parent
991c5a7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
LearningContentBoardController.java
.../party/web/controller/LearningContentBoardController.java
+4
-4
No files found.
src/main/java/cn/chnmuseum/party/web/controller/LearningContentBoardController.java
View file @
df6056a5
...
...
@@ -183,15 +183,15 @@ public class LearningContentBoardController extends BaseController {
return
getFailResult
(
"排序展板不存在"
);
}
//排序字段互换
LearningContentBoard
lcbS
=
theSource
.
get
(
0
);
LearningContentBoard
lcbT
=
theTarget
.
get
(
0
);
Integer
sortorderSource
=
theSource
.
get
(
0
).
getSortorder
(
);
Integer
sortorderTarget
=
theTarget
.
get
(
0
).
getSortorder
(
);
theSource
.
stream
().
forEach
(
s
->
{
s
.
setSortorder
(
lcbT
.
getSortorder
()
);
s
.
setSortorder
(
sortorderTarget
);
});
theTarget
.
stream
().
forEach
(
t
->
{
t
.
setSortorder
(
lcbS
.
getSortorder
()
);
t
.
setSortorder
(
sortorderSource
);
});
boolean
batch
=
learningContentBoardService
.
updateBatchById
(
theSource
);
...
...
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