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
dd32683c
Commit
dd32683c
authored
Jun 16, 2021
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改—删除展板时提示哪些学习内容在使用展板,修改内容时不显示已下架展板
parent
079c85f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ExhibitionBoardController.java
...useum/party/web/controller/ExhibitionBoardController.java
+5
-2
No files found.
src/main/java/cn/chnmuseum/party/web/controller/ExhibitionBoardController.java
View file @
dd32683c
...
...
@@ -256,6 +256,7 @@ public class ExhibitionBoardController extends BaseController {
// 查询在指定展板分类下的展板信息
LambdaQueryWrapper
<
ExhibitionBoard
>
lambdaQuery
=
Wrappers
.<
ExhibitionBoard
>
lambdaQuery
();
lambdaQuery
.
eq
(
ExhibitionBoard:
:
getPublished
,
true
);
lambdaQuery
.
in
(
ExhibitionBoard:
:
getExhibitionBoardCatId
,
boardCatIds
);
lambdaQuery
.
in
(
ExhibitionBoard:
:
getId
,
boardId
);
List
<
ExhibitionBoard
>
exhibitionBoardList
=
exhibitionBoardService
.
list
(
lambdaQuery
);
...
...
@@ -615,9 +616,11 @@ public class ExhibitionBoardController extends BaseController {
// 查询展板对应的学习内容id
queryWrapper
.
eq
(
LearningContentBoard:
:
getExhibitionBoardId
,
id
);
queryWrapper
.
select
(
LearningContentBoard:
:
getLearningContentId
);
List
<
String
>
list
=
this
.
learningContentBoardService
.
listObjs
(
queryWrapper
,
Object:
:
toString
);
List
<
String
>
list
=
this
.
learningContentBoardService
.
listObjs
(
queryWrapper
,
Object:
:
toString
);
List
<
LearningContent
>
learningContents
=
this
.
learningContentService
.
listByIds
(
list
);
String
collect
=
learningContents
.
stream
().
map
(
LearningContent:
:
getName
).
collect
(
Collectors
.
joining
(
","
));
if
(
CollectionUtil
.
isNotEmpty
(
list
))
{
return
getFailResult
(
"该展板被学习内容使用,不能被删除!"
);
return
getFailResult
(
"该展板被学习内容
:"
+
collect
+
"
使用,不能被删除!"
);
}
TUser
user
=
getcurUser
();
...
...
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