...
|
...
|
@@ -1976,9 +1976,14 @@ public class ProductServiceImpl implements ProductService { |
|
|
@Override
|
|
|
public SizeImageResp getSizeImage(Integer productId, Integer brandId) {
|
|
|
SizeImageResp resp = new SizeImageResp();
|
|
|
List<SizePoolDetail> list = sizePoolDetailMapper.queryByProductId(productId);
|
|
|
List<SizePoolDetail> list = sizePoolDetailMapper.queryByBrandId(brandId);
|
|
|
if(CollectionUtils.isEmpty(list)) {
|
|
|
list = sizePoolDetailMapper.queryByBrandId(brandId);
|
|
|
list = sizePoolDetailMapper.queryByProductId(productId, 1, null);//包括
|
|
|
}else {
|
|
|
List<SizePoolDetail> notIncludeList = sizePoolDetailMapper.queryByProductId(productId, 0, list.get(0).getSizePoolId());//不包括
|
|
|
if(!CollectionUtils.isEmpty(notIncludeList)) {
|
|
|
return resp;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if(CollectionUtils.isEmpty(list)) {
|
...
|
...
|
|