Showing
1 changed file
with
1 additions
and
1 deletions
@@ -63,7 +63,7 @@ public class ProductGoodsLogicService { | @@ -63,7 +63,7 @@ public class ProductGoodsLogicService { | ||
63 | 63 | ||
64 | //获取goods对应的库存 | 64 | //获取goods对应的库存 |
65 | Map<Integer, Integer> storagesMap = new HashMap<>(); | 65 | Map<Integer, Integer> storagesMap = new HashMap<>(); |
66 | - if (CollectionUtils.isEmpty(storages)) { | 66 | + if (!CollectionUtils.isEmpty(storages)) { |
67 | for (Storage storage : storages) { | 67 | for (Storage storage : storages) { |
68 | if (storagesMap.containsKey(storage.getGoodsId())) { | 68 | if (storagesMap.containsKey(storage.getGoodsId())) { |
69 | storagesMap.put(storage.getGoodsId(), storage.getStorageNum() + storagesMap.get(storage.getGoodsId())); | 69 | storagesMap.put(storage.getGoodsId(), storage.getStorageNum() + storagesMap.get(storage.getGoodsId())); |
-
Please register or login to post a comment