Commit 5dba414f authored by nie'hong's avatar nie'hong

限制下架展板

parent 2dd54372
......@@ -501,6 +501,7 @@ public class ExhibitionBoardController extends BaseController {
List<LearningContentBoard> list = this.learningContentBoardService.list(objectLambdaQueryWrapper);
List<String> collect = list.stream().map(LearningContentBoard::getLearningContentId).collect(Collectors.toList());
// 查询学习内容,判断是否已全部下架
if (CollectionUtil.isNotEmpty(collect)) {
LambdaQueryWrapper<LearningContent> learningContentLambdaQueryWrapper = new LambdaQueryWrapper<>();
learningContentLambdaQueryWrapper.in(LearningContent::getId,collect);
List<LearningContent> list1 = this.learningContentService.list(learningContentLambdaQueryWrapper);
......@@ -511,6 +512,8 @@ public class ExhibitionBoardController extends BaseController {
}
}
}
final ExhibitionBoard exhibitionBoard = this.exhibitionBoardService.getById(id);
final Audit audit = Audit.builder()
.userId(user.getId())
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment