| | |
| | | * @param out |
| | | */ |
| | | @RequestMapping("getFlashSale") |
| | | public void getFlashSale(AcceptData acceptData, String callback, Integer page, Long auctionId, PrintWriter out) { |
| | | public void getFlashSale(AcceptData acceptData, String callback, Integer page, String auctionId, PrintWriter out) { |
| | | |
| | | if (page == null) |
| | | page = 1; |
| | |
| | | } |
| | | |
| | | @RequestMapping("getFlashSaleNew") |
| | | public void getFlashSaleNew(AcceptData acceptData, String callback, Integer page, Long auctionId, String time, PrintWriter out) { |
| | | public void getFlashSaleNew(AcceptData acceptData, String callback, Integer page, String auctionId, String time, PrintWriter out) { |
| | | List<DaTaoKeDetailV2> detailList0 = daTaoKeGoodsDetailV2Service.getDingDongQiangData(time); |
| | | if (detailList0 == null) |
| | | detailList0 = new ArrayList<>(); |
| | |
| | | if (page == 1) { |
| | | if (auctionId != null && detailList != null) |
| | | for (int i = 0; i < detailList.size(); i++) { |
| | | if (detailList.get(i).getGoodsId().longValue() == auctionId) { |
| | | if ( TaoBaoUtil.isEqual(detailList.get(i).getGoodsId(), auctionId)) { |
| | | DaTaoKeDetailV2 goods = detailList.get(i); |
| | | detailList.remove(i); |
| | | detailList.add(0, goods); |
| | |
| | | return; |
| | | } |
| | | |
| | | List<Long> listGid = new ArrayList<Long>(); |
| | | List<String> listGid = new ArrayList<>(); |
| | | for (QualityFactory qualityFactory : listQuery) { |
| | | TaoBaoGoodsBrief taoBaoGoodsBrief = qualityFactory.getTaoBaoGoodsBrief(); |
| | | |
| | |
| | | |
| | | if (listTaoKeGoods != null && listTaoKeGoods.size() > 0) { |
| | | boolean stateSale = false; // 默认停售 |
| | | Long goodsId = taoBaoGoodsBrief.getAuctionId(); |
| | | String goodsId = taoBaoGoodsBrief.getAuctionId(); |
| | | for (TaoBaoGoodsBrief taoKeGoods : listTaoKeGoods) { |
| | | Long auctionId = taoKeGoods.getAuctionId(); |
| | | String auctionId = taoKeGoods.getAuctionId(); |
| | | if (goodsId == auctionId || goodsId.equals(auctionId)) { |
| | | stateSale = true; // 在售 |
| | | break; |
| | |
| | | } |
| | | } |
| | | |
| | | BigDecimal couplePrice = TaoBaoUtil.getAfterUseCouplePrice(taoBaoGoodsBrief); |
| | | BigDecimal couplePrice = TaoBaoUtil.getCouponPrice(taoBaoGoodsBrief); |
| | | if (couplePrice.compareTo(new BigDecimal("9.9")) == 1) { |
| | | continue; // 券后价大于10 |
| | | } |