|
@@ -38,6 +38,7 @@ public class CartoonServiceImpl extends ServiceImpl<ICartoonMapper, Cartoon> imp
|
|
|
@Autowired
|
|
|
private ICartoonUrlService iCartoonUrlService;
|
|
|
|
|
|
+
|
|
|
@Override
|
|
|
public IPage<CartoonRespDTO> getPageList(IPage<Cartoon> page, CartoonQueryDTO queryDTO) {
|
|
|
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);
|
|
|
list.add(respDTO);
|
|
|
}
|
|
|
+ for(CartoonRespDTO bean : list) {
|
|
|
+ bean.setCartoonUrlList(iCartoonUrlService.urlsByCartoonId(bean.getId()));
|
|
|
+ }
|
|
|
pageResult.setRecords(list);
|
|
|
pageResult.setTotal(pageInfo.getTotal());
|
|
|
return pageResult;
|