Authored by wangnan

fix

... ... @@ -46,6 +46,13 @@ public class StorageUpdateTimeLogicService {
}
List<ProductTiming> productTimings = productTimingService.selectBySkns(productSkns);
Map<Integer, Integer> outSaleTimeMap = new HashMap<>();
for(ProductTiming productTiming:productTimings){
if(outSaleTimeMap.containsKey(productTiming.getProductSkn())){
continue;
}
outSaleTimeMap.put(productTiming.getProductSkn(),productTiming.getOutSaleTime());
}
if (!CollectionUtils.isEmpty(productTimings)) {
outSaleTimeMap = productTimings.stream().parallel().collect(Collectors.toMap(ProductTiming::getProductSkn, ProductTiming::getOutSaleTime));
}
... ...