新版
This commit is contained in:
@@ -692,7 +692,10 @@ public class BookController {
|
||||
|
||||
LambdaQueryWrapper<BookEntity> wrapper1 = new LambdaQueryWrapper<>();
|
||||
wrapper1.eq(BookEntity::getDelFlag,0);
|
||||
wrapper1.notIn(BookEntity::getId,bookIds);
|
||||
wrapper1.eq(BookEntity::getState,1);
|
||||
if(bookIds.size()>0){
|
||||
wrapper1.notIn(BookEntity::getId,bookIds);
|
||||
}
|
||||
Page<BookEntity> bookEntityPage = bookService.getBaseMapper().selectPage(new Page<>(page, limit), wrapper1);
|
||||
for (BookEntity b : bookEntityPage.getRecords()){
|
||||
b.setProductId(shopProudictBookService.getProductByBookId(b.getId()));
|
||||
|
||||
Reference in New Issue
Block a user