Merge branch 'ww' into test
This commit is contained in:
commit
1ed5338032
|
|
@ -662,12 +662,6 @@ public class TbProductServiceImpl implements TbProductService {
|
|||
public void deleteAll(Integer[] ids) {
|
||||
List<Integer> list = Arrays.asList(ids);
|
||||
tbProductRepository.updateByStatus(list);
|
||||
list.forEach(productId -> {
|
||||
List<TbProductSku> tbProductSkus = tbProductSkuRepository.searchSku(productId.toString());
|
||||
Map<Integer, Double> idStockMap = tbProductSkus.stream()
|
||||
.collect(Collectors.toMap(TbProductSku::getId, TbProductSku::getStockNumber));
|
||||
redisUtils.redisUp(2, tbProductSkus.get(0).getShopId(), idStockMap);
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue