|
|
@@ -661,7 +661,7 @@ public class LotServiceImpl extends ServiceImpl<LotMapper,Lot> implements ILotSe
|
|
|
// 传了二级分类 → 直接用
|
|
|
categoryIds.add(request.getChildCategoryId());
|
|
|
} else if (Objects.nonNull(request.getMainCategoryId())) {
|
|
|
- // 只传一级 → 查询该一级下所有二级ID(单表查询)
|
|
|
+ // 只传一级 → 查询该一级下所有二级ID
|
|
|
categoryIds = spuCategoryMapper.listChildByParentId(request.getMainCategoryId());
|
|
|
}
|
|
|
|
|
|
@@ -670,7 +670,7 @@ public class LotServiceImpl extends ServiceImpl<LotMapper,Lot> implements ILotSe
|
|
|
return Lists.newArrayList();
|
|
|
}
|
|
|
|
|
|
- // 3. 查询拍品ID(单表)
|
|
|
+ // 3. 查询拍品ID
|
|
|
List<Long> lotIds = spuCategoryMapper.listLotIdsByCategoryIds(categoryIds);
|
|
|
|
|
|
if (CollectionUtils.isEmpty(lotIds)) {
|