| | |
| | | @PostMapping("/base/pointMerchars/getCommoditys") |
| | | public PointMerchandiseVo getVicinityGoods(@RequestBody CommodityRequest request) { |
| | | |
| | | |
| | | System.err.println("积分商城请求参数"+request); |
| | | PointMerchandiseVo pointMerchandiseVo = new PointMerchandiseVo(); |
| | | List<PointsMerchandise> list = new ArrayList<>(); |
| | | String provinceCode = ""; |
| | |
| | | pointMerchandiseVo.setMerchandises(list); |
| | | return pointMerchandiseVo; |
| | | }else{ |
| | | List<PointsMerchandise> pointsMerchandiseList = pmdsService.lambdaQuery().in(PointsMerchandise::getId, pointsMerchandiseIds).list(); |
| | | list.addAll(pointsMerchandiseList); |
| | | List<PointsMerchandise> listAll = list.stream().distinct().collect(Collectors.toList()); |
| | | list = listAll; |
| | | } |
| | | } |
| | | List<PointsMerchandise> pointsMerchandiseList = pmdsService.lambdaQuery() |
| | | .eq(PointsMerchandise::getState, 1) |
| | | .eq(PointsMerchandise::getShelves,1) |
| | | .in(PointsMerchandise::getId, pointsMerchandiseIds).list(); |
| | | |
| | | list = pointsMerchandiseList; |
| | | } |
| | | } |
| | | list = list.stream().distinct().collect(Collectors.toList()); |
| | | if (list.size() > 0) { |
| | | Iterator<PointsMerchandise> iterator = list.iterator(); |
| | | while (iterator.hasNext()) { |