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
5dba414f
Commit
5dba414f
authored
Jun 04, 2021
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限制下架展板
parent
2dd54372
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
ExhibitionBoardController.java
...useum/party/web/controller/ExhibitionBoardController.java
+9
-6
TBoardStatisticMapper.xml
src/main/resources/mapper/TBoardStatisticMapper.xml
+1
-1
No files found.
src/main/java/cn/chnmuseum/party/web/controller/ExhibitionBoardController.java
View file @
5dba414f
...
...
@@ -501,14 +501,17 @@ public class ExhibitionBoardController extends BaseController {
List
<
LearningContentBoard
>
list
=
this
.
learningContentBoardService
.
list
(
objectLambdaQueryWrapper
);
List
<
String
>
collect
=
list
.
stream
().
map
(
LearningContentBoard:
:
getLearningContentId
).
collect
(
Collectors
.
toList
());
// 查询学习内容,判断是否已全部下架
LambdaQueryWrapper
<
LearningContent
>
learningContentLambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
learningContentLambdaQueryWrapper
.
in
(
LearningContent:
:
getId
,
collect
);
List
<
LearningContent
>
list1
=
this
.
learningContentService
.
list
(
learningContentLambdaQueryWrapper
);
for
(
LearningContent
learningContent
:
list1
)
{
if
(
learningContent
.
getPublished
())
{
return
getFailResult
(
"该展板所在学习内容未下架,展板不能被下架!"
);
if
(
CollectionUtil
.
isNotEmpty
(
collect
))
{
LambdaQueryWrapper
<
LearningContent
>
learningContentLambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
learningContentLambdaQueryWrapper
.
in
(
LearningContent:
:
getId
,
collect
);
List
<
LearningContent
>
list1
=
this
.
learningContentService
.
list
(
learningContentLambdaQueryWrapper
);
for
(
LearningContent
learningContent
:
list1
)
{
if
(
learningContent
.
getPublished
())
{
return
getFailResult
(
"该展板所在学习内容未下架,展板不能被下架!"
);
}
}
}
}
final
ExhibitionBoard
exhibitionBoard
=
this
.
exhibitionBoardService
.
getById
(
id
);
...
...
src/main/resources/mapper/TBoardStatisticMapper.xml
View file @
5dba414f
...
...
@@ -46,7 +46,7 @@
left join t_organ o on o.id = s.organ_id
LEFT JOIN exhibition_board b ON b.id=s.board_id
<where>
b.is_deleted=0
1=1
<if
test=
"rank.playDate != null"
>
and s.play_date like concat( #{rank.playDate}, '%')
</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