BUGFIX:颜色没返回;

This commit is contained in:
shahaibo
2024-07-09 14:55:21 +08:00
parent 11eb6595dd
commit 8fd6a3462e

View File

@@ -801,12 +801,13 @@ public class CollectionElementServiceImpl extends ServiceImpl<CollectionElementM
@Override
public List<CollectionElement> getByCollectionId(Long collectionId) {
List<Long> elementIds = tCollectionElementRelationService.getByCollectionId(collectionId);
if (CollectionUtils.isEmpty(elementIds)) {
return null;
}
// List<Long> elementIds = tCollectionElementRelationService.getByCollectionId(collectionId);
// if (CollectionUtils.isEmpty(elementIds)) {
// return null;
// }
QueryWrapper<CollectionElement> queryWrapper = new QueryWrapper<>();
queryWrapper.in("id", elementIds);
// queryWrapper.in("id", elementIds);
queryWrapper.lambda().eq(CollectionElement::getCollectionId, collectionId);
return collectionElementMapper.selectList(queryWrapper);
}