Authored by 周少峰

'storageId'

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