rename the file
This commit is contained in:
@@ -7,13 +7,11 @@ import java.util.stream.Collectors;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.github.yulichang.wrapper.MPJLambdaWrapper;
|
||||
import com.peanut.common.utils.ReadProvinceUtil;
|
||||
import com.peanut.modules.book.dao.BookDao;
|
||||
import com.peanut.modules.book.entity.*;
|
||||
import com.peanut.modules.book.service.*;
|
||||
import com.peanut.modules.book.vo.BookIndexVo;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.redis.core.StringRedisTemplate;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -58,7 +56,7 @@ public class BookController {
|
||||
@Autowired
|
||||
private ShopProductService shopProductService;
|
||||
@Autowired
|
||||
private ShopProudictBookService shopProudictBookService;
|
||||
private ShopProductBookService shopProductBookService;
|
||||
@Autowired
|
||||
private ShopProductToLabelService shopProductToLabelService;
|
||||
final ExecutorService fixedThreadPool = Executors.newFixedThreadPool(10);
|
||||
@@ -123,7 +121,7 @@ public class BookController {
|
||||
BookEntity book_info = bookService.getById(bookId);
|
||||
book_info.setAuthor(authorService.getById(book_info.getAuthorId()));
|
||||
book_info.setPublisher(publisherService.getById(book_info.getPublisherId()));
|
||||
book_info.setProductId(shopProudictBookService.getProductByBookId(bookId));
|
||||
book_info.setProductId(shopProductBookService.getProductByBookId(bookId));
|
||||
|
||||
LambdaQueryWrapper<UserEbookBuyEntity> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.eq(UserEbookBuyEntity::getUserId,userId);
|
||||
@@ -715,7 +713,7 @@ public class BookController {
|
||||
}
|
||||
Page<BookEntity> bookEntityPage = bookService.getBaseMapper().selectPage(new Page<>(page, limit), wrapper1);
|
||||
for (BookEntity b : bookEntityPage.getRecords()){
|
||||
b.setProductId(shopProudictBookService.getProductByBookId(b.getId()));
|
||||
b.setProductId(shopProductBookService.getProductByBookId(b.getId()));
|
||||
}
|
||||
|
||||
return R.ok().put("page",bookEntityPage);
|
||||
|
||||
Reference in New Issue
Block a user