...
|
...
|
@@ -2187,10 +2187,12 @@ public class ProductServiceImpl implements ProductService { |
|
|
}
|
|
|
|
|
|
// sizeName 匹配
|
|
|
if(storages.stream().anyMatch(storage -> null != sizeIdNameMap.get(storage.getSizeId()) && sizeIdNameMap.get(storage.getSizeId()).equals(item.getSizeName()))) {
|
|
|
setStorageCheckRespStatusInfo(item, StorageCheckEnum.PRODUCT_SIZE_MATCH.getType());
|
|
|
return item;
|
|
|
}
|
|
|
storages.stream().forEach(storage -> {
|
|
|
if (null != sizeIdNameMap.get(storage.getSizeId()) && sizeIdNameMap.get(storage.getSizeId()).equals(item.getSizeName())){
|
|
|
setStorageCheckRespStatusInfo(item, StorageCheckEnum.PRODUCT_SIZE_MATCH.getType());
|
|
|
item.setStorageId((storage.getId()));
|
|
|
}
|
|
|
});
|
|
|
return item;
|
|
|
|
|
|
}).collect(Collectors.toList());
|
...
|
...
|
|