Commit 4fe76113 authored by wzp's avatar wzp

Merge remote-tracking branch 'origin/master'

parents c330f694 85e8b6a3
......@@ -30,7 +30,6 @@ import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.constraints.NotNull;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
......@@ -145,13 +144,10 @@ public class ExhibitionBoardCatController extends BaseController {
if (copyrightOwnerIdList != null && !copyrightOwnerIdList.isEmpty()) {
final LambdaQueryWrapper<CopyrightOwnerBoardCat> queryWrapper = Wrappers.<CopyrightOwnerBoardCat>lambdaQuery().in(CopyrightOwnerBoardCat::getCopyrightOwnerId, copyrightOwnerIdList);
final List<CopyrightOwnerBoardCat> copyrightOwnerBoardCatList = this.copyrightOwnerBoardCatService.list(queryWrapper);
if (copyrightOwnerBoardCatList.isEmpty()) {
return getResult(Collections.EMPTY_LIST);
if (!copyrightOwnerBoardCatList.isEmpty()) {
final List<String> collect = copyrightOwnerBoardCatList.stream().map(CopyrightOwnerBoardCat::getBoardCatId).distinct().collect(Collectors.toList());
exhibitionBoardCatLambdaQueryWrapper.in(ExhibitionBoardCat::getId, collect);
}
final List<String> collect = copyrightOwnerBoardCatList.stream().map(CopyrightOwnerBoardCat::getBoardCatId).distinct().collect(Collectors.toList());
exhibitionBoardCatLambdaQueryWrapper.in(ExhibitionBoardCat::getId, collect);
List<ExhibitionBoardCat> exhibitionBoardCatList = exhibitionBoardCatService.list(exhibitionBoardCatLambdaQueryWrapper);
return getResult(exhibitionBoardCatList);
}
List<ExhibitionBoardCat> exhibitionBoardCatList = exhibitionBoardCatService.list(exhibitionBoardCatLambdaQueryWrapper);
return getResult(exhibitionBoardCatList);
......
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