zyh
This commit is contained in:
parent
a487ac06f6
commit
9abbaea73e
|
@ -13,4 +13,6 @@ auth:
|
|||
- /maku/t_user/updateUser
|
||||
- /maku/t_user/register
|
||||
- /maku/t_user/logout
|
||||
- /maku/t_user/info
|
||||
- /maku/t_user/info
|
||||
- /maku/t_book/list/search
|
||||
- /maku/t_book/{id}
|
|
@ -50,9 +50,8 @@ public class TBookController {
|
|||
@GetMapping("/list/search")
|
||||
@Operation(summary = "根据书名查询书籍")
|
||||
@Parameter
|
||||
public Result<TBookEntity> getByName(@RequestParam String name){
|
||||
TBookEntity entity = tBookService.getByName(name);
|
||||
|
||||
public Result<TBookEntity> getByName(@RequestParam String bookName){
|
||||
TBookEntity entity = tBookService.getByName(bookName);
|
||||
return Result.ok(entity);
|
||||
}
|
||||
|
||||
|
|
|
@ -24,5 +24,5 @@ public interface TBookService extends BaseService<TBookEntity> {
|
|||
|
||||
void delete(List<Long> idList);
|
||||
|
||||
TBookEntity getByName(String name);
|
||||
TBookEntity getByName(String bookName);
|
||||
}
|
|
@ -62,9 +62,9 @@ public class TBookServiceImpl extends BaseServiceImpl<TBookDao, TBookEntity> imp
|
|||
}
|
||||
|
||||
@Override
|
||||
public TBookEntity getByName(String name) {
|
||||
public TBookEntity getByName(String bookName) {
|
||||
LambdaQueryWrapper<TBookEntity> wrapper = Wrappers.lambdaQuery();
|
||||
wrapper.eq(TBookEntity::getBookName, name);
|
||||
wrapper.eq(TBookEntity::getBookName, bookName);
|
||||
return baseMapper.selectOne(wrapper);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user