| | |
| | | package com.ruoyi.other.service.impl; |
| | | |
| | | import com.ruoyi.common.core.web.page.PageInfo; |
| | | import com.ruoyi.order.api.feignClient.OrderClient; |
| | | import com.ruoyi.other.api.domain.TGoods; |
| | | import com.ruoyi.other.api.dto.GoodsDTO; |
| | | import com.ruoyi.other.mapper.TGoodsMapper; |
| | |
| | | public class TGoodsServiceImpl extends ServiceImpl<TGoodsMapper, TGoods> implements TGoodsService { |
| | | |
| | | @Autowired |
| | | private OrderClient goodsClient; |
| | | private OrderClient orderClient; |
| | | @Override |
| | | public PageInfo<TGoods> pageList(GoodsDTO dto) { |
| | | PageInfo<TGoods> pageInfo = new PageInfo<>(dto.getPageCurr(),dto.getPageSize()); |
| | |
| | | stringBuilder.deleteCharAt(stringBuilder.length()-1); |
| | | } |
| | | String string = stringBuilder.toString(); |
| | | List<Integer> data = orderClient.getSalesCountByGoodsId(string).getData(); |
| | | |
| | | // goodsClient |
| | | // 远程调用cha'xun |
| | | pageInfo.setRecords(list); |