| | |
| | | list = new ArrayList<>(uniqueGoodsMap.values()); |
| | | for (GoodsVO goods : list) { |
| | | |
| | | //计算所需价格和积分 |
| | | Price price = getPrice( goods.getGoodsId()); |
| | | if(null != price){ |
| | | //秒杀活动 |
| | | goods.setSellingPrice(price.getCash()); |
| | | goods.setIntegral(price.getPoint()); |
| | | goods.setStartTime(price.getStartTime()); |
| | | goods.setEndTime(price.getEndTime()); |
| | | goods.setPurchaseLimit(price.getPurchaseLimit()); |
| | | } |
| | | Integer point = getPoint(goods.getSellingPrice()); |
| | | goods.setIntegral(point); |
| | | // //计算所需价格和积分 |
| | | // Price price = getPrice( goods.getGoodsId()); |
| | | // if(null != price){ |
| | | // //秒杀活动 |
| | | // goods.setSellingPrice(price.getCash()); |
| | | // goods.setIntegral(price.getPoint()); |
| | | // goods.setStartTime(price.getStartTime()); |
| | | // goods.setEndTime(price.getEndTime()); |
| | | // goods.setPurchaseLimit(price.getPurchaseLimit()); |
| | | // } |
| | | } |
| | | //手动排序 |
| | | if(StringUtils.isNotEmpty(search.getOrderByColumn())){ |
| | |
| | | goodsVO.setGoodsName(goods.getName()); |
| | | |
| | | //计算所需价格和积分 |
| | | Price price = getPrice( goods.getId()); |
| | | if(null != price){ |
| | | //秒杀活动 |
| | | goodsVO.setSellingPrice(price.getCash()); |
| | | goodsVO.setIntegral(price.getPoint()); |
| | | goodsVO.setStartTime(price.getStartTime()); |
| | | goodsVO.setEndTime(price.getEndTime()); |
| | | goodsVO.setPurchaseLimit(price.getPurchaseLimit()); |
| | | } |
| | | // Price price = getPrice( goods.getId()); |
| | | // if(null != price){ |
| | | // //秒杀活动 |
| | | // goodsVO.setSellingPrice(price.getCash()); |
| | | // goodsVO.setIntegral(price.getPoint()); |
| | | // goodsVO.setStartTime(price.getStartTime()); |
| | | // goodsVO.setEndTime(price.getEndTime()); |
| | | // goodsVO.setPurchaseLimit(price.getPurchaseLimit()); |
| | | // } |
| | | Integer point = getPoint(goodsVO.getSellingPrice()); |
| | | goodsVO.setIntegral(point); |
| | | //已售数量 |
| | | Integer data = orderClient.getGoodsSaleNum(goods.getId(), 1).getData(); |
| | | goodsVO.setSaleNum(data); |