Showing
1 changed file
with
4 additions
and
2 deletions
@@ -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()))) { | 2190 | + storages.stream().forEach(storage -> { |
2191 | + if (null != sizeIdNameMap.get(storage.getSizeId()) && sizeIdNameMap.get(storage.getSizeId()).equals(item.getSizeName())){ | ||
2191 | setStorageCheckRespStatusInfo(item, StorageCheckEnum.PRODUCT_SIZE_MATCH.getType()); | 2192 | setStorageCheckRespStatusInfo(item, StorageCheckEnum.PRODUCT_SIZE_MATCH.getType()); |
2192 | - return item; | 2193 | + item.setStorageId((storage.getId())); |
2193 | } | 2194 | } |
2195 | + }); | ||
2194 | return item; | 2196 | return item; |
2195 | 2197 | ||
2196 | }).collect(Collectors.toList()); | 2198 | }).collect(Collectors.toList()); |
-
Please register or login to post a comment