|
@@ -38,6 +38,7 @@ public class CartoonServiceImpl extends ServiceImpl<ICartoonMapper, Cartoon> imp
|
|
@Autowired
|
|
@Autowired
|
|
private ICartoonUrlService iCartoonUrlService;
|
|
private ICartoonUrlService iCartoonUrlService;
|
|
|
|
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public IPage<CartoonRespDTO> getPageList(IPage<Cartoon> page, CartoonQueryDTO queryDTO) {
|
|
public IPage<CartoonRespDTO> getPageList(IPage<Cartoon> page, CartoonQueryDTO queryDTO) {
|
|
IPage<CartoonRespDTO> pageResult = new Page<>(page.getCurrent(), page.getSize());
|
|
IPage<CartoonRespDTO> pageResult = new Page<>(page.getCurrent(), page.getSize());
|
|
@@ -53,6 +54,9 @@ public class CartoonServiceImpl extends ServiceImpl<ICartoonMapper, Cartoon> imp
|
|
BeanUtil.copyProperties(cartoon, respDTO);
|
|
BeanUtil.copyProperties(cartoon, respDTO);
|
|
list.add(respDTO);
|
|
list.add(respDTO);
|
|
}
|
|
}
|
|
|
|
+ for(CartoonRespDTO bean : list) {
|
|
|
|
+ bean.setCartoonUrlList(iCartoonUrlService.urlsByCartoonId(bean.getId()));
|
|
|
|
+ }
|
|
pageResult.setRecords(list);
|
|
pageResult.setRecords(list);
|
|
pageResult.setTotal(pageInfo.getTotal());
|
|
pageResult.setTotal(pageInfo.getTotal());
|
|
return pageResult;
|
|
return pageResult;
|