TASK:模块化;
This commit is contained in:
@@ -96,6 +96,9 @@ public class LibraryServiceImpl extends ServiceImpl<LibraryMapper, Library> impl
|
||||
@Resource
|
||||
private PythonTAllInfoService pythonTAllInfoService;
|
||||
|
||||
@Resource
|
||||
private BrandRelLibraryMapper brandRelLibraryMapper;
|
||||
|
||||
private static List<String> top = Arrays.asList(CollectionLevel2TypeEnum.DRESS.getRealName(),
|
||||
CollectionLevel2TypeEnum.OUTWEAR.getRealName(), CollectionLevel2TypeEnum.BLOUSE.getRealName());
|
||||
private static List<String> bottom = Arrays.asList(CollectionLevel2TypeEnum.SKIRT.getRealName(),
|
||||
@@ -155,6 +158,14 @@ public class LibraryServiceImpl extends ServiceImpl<LibraryMapper, Library> impl
|
||||
if (!StringUtils.isEmpty(query.getPictureName())) {
|
||||
queryWrapper.like("name", query.getPictureName());
|
||||
}
|
||||
|
||||
if (query.getBrandId() != null) {
|
||||
QueryWrapper<BrandRelLibrary> qw = new QueryWrapper<>();
|
||||
qw.lambda().eq(BrandRelLibrary::getBrandId, query.getBrandId());
|
||||
Set<Long> collect = brandRelLibraryMapper.selectList(qw).stream().map(BrandRelLibrary::getLibraryId).collect(Collectors.toSet());
|
||||
queryWrapper.in("id", collect);
|
||||
}
|
||||
|
||||
// 新增分类过滤
|
||||
if (CollectionUtil.isNotEmpty(query.getClassificationIdList())) {
|
||||
List<Long> libraryIdList = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user