Merge branch 'test6.9.8' of http://git.yoho.cn/ufo/yohoufo-fore into test6.9.8
Showing
4 changed files
with
14 additions
and
1 deletions
@@ -207,7 +207,7 @@ public class BuyerOrderChangeBusinessPostProcessor { | @@ -207,7 +207,7 @@ public class BuyerOrderChangeBusinessPostProcessor { | ||
207 | logger.info("[{}] notify resource to clear user cache", uid); | 207 | logger.info("[{}] notify resource to clear user cache", uid); |
208 | try { | 208 | try { |
209 | 209 | ||
210 | - String url = baseServiceCaller.getYohoGatewayUrl() + "?method=app.resources.clearUserCache&&client_type=h5&uid=" + uid; | 210 | + String url = baseServiceCaller.getYohoGatewayUrl() + "?method=app.resources.clearUserCache&client_type=h5&uid=" + uid; |
211 | baseServiceCaller.proxyPost("app.resources.clearUserCache", url, null); | 211 | baseServiceCaller.proxyPost("app.resources.clearUserCache", url, null); |
212 | } catch (Exception ex) { | 212 | } catch (Exception ex) { |
213 | logger.error("clear user cache for resource,uid:{}", uid, ex); | 213 | logger.error("clear user cache for resource,uid:{}", uid, ex); |
@@ -226,6 +226,12 @@ public class ProductServiceImpl implements ProductService { | @@ -226,6 +226,12 @@ public class ProductServiceImpl implements ProductService { | ||
226 | productInfo.setHkLeastPrice(hkLeastPrice); | 226 | productInfo.setHkLeastPrice(hkLeastPrice); |
227 | } | 227 | } |
228 | 228 | ||
229 | + List<BigDecimal> flashLeastPriceList = goodsSizes.stream().map(GoodsSize::getFlashLeastPrice).filter(Objects::nonNull).collect(Collectors.toList()); | ||
230 | + if(!CollectionUtils.isEmpty(flashLeastPriceList)) { | ||
231 | + BigDecimal flashLeastPrice = flashLeastPriceList.stream().min((p1, p2) -> (p1.compareTo(p2))).get(); | ||
232 | + productInfo.setFlashLeastPrice(flashLeastPrice); | ||
233 | + } | ||
234 | + | ||
229 | goodsSizes.sort(Comparator.comparing(GoodsSize::getOrderBy)); | 235 | goodsSizes.sort(Comparator.comparing(GoodsSize::getOrderBy)); |
230 | List<JSONObject> otherAddSizeList = getOtherSizeList(product.getMaxSortId(), product.getMidSortId(), goodsSizes); | 236 | List<JSONObject> otherAddSizeList = getOtherSizeList(product.getMaxSortId(), product.getMidSortId(), goodsSizes); |
231 | if(!CollectionUtils.isEmpty(otherAddSizeList)) { | 237 | if(!CollectionUtils.isEmpty(otherAddSizeList)) { |
@@ -978,6 +984,8 @@ public class ProductServiceImpl implements ProductService { | @@ -978,6 +984,8 @@ public class ProductServiceImpl implements ProductService { | ||
978 | storagePriceSecond = storagePriceSecondOld; | 984 | storagePriceSecond = storagePriceSecondOld; |
979 | } | 985 | } |
980 | 986 | ||
987 | + StoragePrice storagePriceFlash = storagePriceMap.get(storage.getId() + "_3_0");//大陆闪购 | ||
988 | + | ||
981 | GoodsSize goodsSize = new GoodsSize(); | 989 | GoodsSize goodsSize = new GoodsSize(); |
982 | goodsSize.setId(storage.getId()); | 990 | goodsSize.setId(storage.getId()); |
983 | goodsSize.setSizeId(storage.getSizeId()); | 991 | goodsSize.setSizeId(storage.getSizeId()); |
@@ -1017,6 +1025,11 @@ public class ProductServiceImpl implements ProductService { | @@ -1017,6 +1025,11 @@ public class ProductServiceImpl implements ProductService { | ||
1017 | goodsSize.setHkStatus(storagePriceHk == null ? null : storagePriceHk.getStatus()); | 1025 | goodsSize.setHkStatus(storagePriceHk == null ? null : storagePriceHk.getStatus()); |
1018 | goodsSize.setHkSkup(storagePriceHk == null ? null : storagePriceHk.getSkup()); | 1026 | goodsSize.setHkSkup(storagePriceHk == null ? null : storagePriceHk.getSkup()); |
1019 | goodsSize.setHkStorageNum(goodsSize.getHkSkup() == null || goodsSize.getHkSkup() == 0 ? 0: 1); | 1027 | goodsSize.setHkStorageNum(goodsSize.getHkSkup() == null || goodsSize.getHkSkup() == 0 ? 0: 1); |
1028 | + | ||
1029 | + goodsSize.setFlashLeastPrice(storagePriceFlash == null ? null : storagePriceFlash.getPrice()); | ||
1030 | + goodsSize.setFlashStatus(storagePriceFlash == null ? null : storagePriceFlash.getStatus()); | ||
1031 | + goodsSize.setFlashSkup(storagePriceFlash == null ? null : storagePriceFlash.getSkup()); | ||
1032 | + goodsSize.setFlashStorageNum(goodsSize.getFlashSkup() == null || goodsSize.getFlashSkup() == 0 ? 0: 1); | ||
1020 | } | 1033 | } |
1021 | } | 1034 | } |
1022 | } | 1035 | } |
No preview for this file type
No preview for this file type
-
Please register or login to post a comment