...
|
...
|
@@ -1926,4 +1926,47 @@ public class ProductServiceImpl implements ProductService { |
|
|
|
|
|
return resp;
|
|
|
}
|
|
|
|
|
|
public List<StorageDataResp> queryStorageListInfo(List<Integer> storageIdList) {
|
|
|
List<StorageDataResp> respList = new ArrayList<>();
|
|
|
List<Storage> storageList = storageMapper.selectByIds(storageIdList);
|
|
|
if (CollectionUtils.isEmpty(storageList)) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/*List<Integer> sizeIdList = storageList.stream().map(Storage::getSizeId).collect(Collectors.toList());
|
|
|
List<Size> sizes = sizeMapper.selectByIds(sizeIdList);
|
|
|
|
|
|
List<Integer> goodsIdList = storageList.stream().map(Storage::getGoodsId).collect(Collectors.toList());
|
|
|
List<Goods> goodsList = goodsMapper.selectByIds(goodsIdList);
|
|
|
|
|
|
List<Integer> productIdList = storageList.stream().map(Storage::getProductId).collect(Collectors.toList());
|
|
|
List<Product> products = productMapper.selectByIds(productIdList);
|
|
|
|
|
|
StorageDataResp resp = new StorageDataResp();
|
|
|
storageList.forEach(item -> {
|
|
|
|
|
|
GoodsSize goodsSize = new GoodsSize();
|
|
|
goodsSize.setSizeId(storage.getSizeId());
|
|
|
if (size != null) {
|
|
|
goodsSize.setSizeName(size.getSizeName());
|
|
|
}
|
|
|
resp.setSize(goodsSize);
|
|
|
|
|
|
|
|
|
|
|
|
resp.setColorId(goods.getColorId().toString());
|
|
|
resp.setColorName(StringUtils.isEmpty(goods.getGoodsName()) ? goods.getColorName() : goods.getGoodsName());
|
|
|
resp.setImageUrl(goods.getColorImage());
|
|
|
|
|
|
|
|
|
if (product != null) {
|
|
|
resp.setProductId(product.getId());
|
|
|
resp.setProductName(product.getProductName());
|
|
|
resp.setStatus(product.getShelveStatus());
|
|
|
}
|
|
|
});*/
|
|
|
|
|
|
return respList;
|
|
|
}
|
|
|
} |
...
|
...
|
|