| | |
| | | } |
| | | List<ExchangeRecordVO> exchangeRecord = orderService.exchangeRecord(res,tokenService.getLoginUserStudy().getUserid()); |
| | | for (ExchangeRecordVO record : exchangeRecord) { |
| | | TGoods goods = goodsService.getById(record.getGoodsId()); |
| | | TGoods goods = goodsService.getById1(record.getGoodsId()); |
| | | List<String> typeList; |
| | | if (null != goods) { |
| | | List<TGoodsType> goodsTypes = goodsTypeService.lambdaQuery().in(TGoodsType::getId, Arrays.stream(goods.getTypeIds().split(",")).collect(Collectors.toList())) |
| | |
| | | } |
| | | List<ExchangeRecordVO> exchangeRecord = orderService.exchangeRecord(res,tokenService.getLoginUser1().getUserid()); |
| | | for (ExchangeRecordVO record : exchangeRecord) { |
| | | TGoods goods = goodsService.getById(record.getGoodsId()); |
| | | TGoods goods = goodsService.getById1(record.getGoodsId()); |
| | | List<String> typeList; |
| | | if (null != goods) { |
| | | List<TGoodsType> goodsTypes = goodsTypeService.lambdaQuery().in(TGoodsType::getId, Arrays.stream(goods.getTypeIds().split(",")).collect(Collectors.toList())) |
| | |
| | | @ApiOperationSupport(order = 11) |
| | | public R<TOrderVO> getOrderInfo(@PathVariable("id") String id) { |
| | | TOrder byId = orderService.getById(id); |
| | | TGoods byId2 = goodsService.getById(byId.getGoodsId()); |
| | | TGoods byId2 = goodsService.getById1(byId.getGoodsId()); |
| | | TOrderVO tGoodsVO = new TOrderVO(); |
| | | BeanUtils.copyProperties(byId, tGoodsVO); |
| | | tGoodsVO.setName(byId2.getName()); |
| | |
| | | list1.add(tOrderVO); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | PageInfo<TOrderVO> res = new PageInfo<>(query.getPageNumber(), query.getPageSize()); |
| | | res.setRecords(list1); |