Merge branch 'dev_fast_delivery' into test6.9.12
Showing
1 changed file
with
4 additions
and
4 deletions
@@ -2017,7 +2017,7 @@ public class ProductServiceImpl implements ProductService { | @@ -2017,7 +2017,7 @@ public class ProductServiceImpl implements ProductService { | ||
2017 | Map<String, List<GoodsBO>> tabs = new HashMap<>(); | 2017 | Map<String, List<GoodsBO>> tabs = new HashMap<>(); |
2018 | tabs.put("goods_list", Arrays.asList(goodsBO)); | 2018 | tabs.put("goods_list", Arrays.asList(goodsBO)); |
2019 | tabs.put("pre_sale_goods_list", Arrays.asList(preSaleGoodsBO)); | 2019 | tabs.put("pre_sale_goods_list", Arrays.asList(preSaleGoodsBO)); |
2020 | - tabs.put("seconds_goods_list", Arrays.asList(goodsBO)); | 2020 | + tabs.put("seconds_goods_list", Arrays.asList(secondsGoodsBO)); |
2021 | product_info.setGoodsListTabs(tabs); | 2021 | product_info.setGoodsListTabs(tabs); |
2022 | product_info.setGoodsList(null); | 2022 | product_info.setGoodsList(null); |
2023 | } | 2023 | } |
@@ -2124,9 +2124,9 @@ public class ProductServiceImpl implements ProductService { | @@ -2124,9 +2124,9 @@ public class ProductServiceImpl implements ProductService { | ||
2124 | } | 2124 | } |
2125 | return sp2; | 2125 | return sp2; |
2126 | } | 2126 | } |
2127 | - private boolean notAllNull(Object... obj) { | ||
2128 | - for (Object o : obj) { | ||
2129 | - if (o != null) { | 2127 | + private boolean notAllNull(Integer... numbers) { |
2128 | + for (Integer n : numbers) { | ||
2129 | + if (n != null && n > 0) { | ||
2130 | return true; | 2130 | return true; |
2131 | } | 2131 | } |
2132 | } | 2132 | } |
-
Please register or login to post a comment