|
@@ -8,7 +8,6 @@ import com.flyer.exception.BusinessException;
|
|
|
import com.flyer.foster.dto.*;
|
|
|
import com.flyer.foster.entity.Cartoon;
|
|
|
import com.flyer.foster.entity.CartoonUrl;
|
|
|
-import com.flyer.foster.entity.PosterLib;
|
|
|
import com.flyer.foster.mapper.ICartoonMapper;
|
|
|
import com.flyer.foster.service.ICartoonService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -17,9 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
-import java.time.LocalDateTime;
|
|
|
import java.util.ArrayList;
|
|
|
-import java.util.Arrays;
|
|
|
import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
@@ -55,7 +52,7 @@ public class CartoonServiceImpl extends ServiceImpl<ICartoonMapper, Cartoon> imp
|
|
|
list.add(respDTO);
|
|
|
}
|
|
|
for(CartoonRespDTO bean : list) {
|
|
|
- bean.setCartoonUrlList(iCartoonUrlService.urlsByCartoonId(bean.getId()));
|
|
|
+ bean.setCartoonUrlList(iCartoonUrlService.getUrlList(bean.getId()));
|
|
|
}
|
|
|
pageResult.setRecords(list);
|
|
|
pageResult.setTotal(pageInfo.getTotal());
|