day01
parent
20b5c5fd6e
commit
4b5ceee780
|
@ -1,6 +1,6 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 8080
|
||||
port: 18080
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
|
@ -28,7 +28,7 @@ spring:
|
|||
eager: true
|
||||
transport:
|
||||
# 控制台地址
|
||||
dashboard: 118.89.120.67:8718
|
||||
dashboard: 127.0.0.1:8080
|
||||
# nacos配置持久化
|
||||
datasource:
|
||||
ds1:
|
||||
|
|
|
@ -52,7 +52,7 @@ public class BookInfoController extends BaseController {
|
|||
}
|
||||
|
||||
/**
|
||||
* 根据参数编号获取详细信息
|
||||
* 根据书籍id获取详细信息
|
||||
*/
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo (@PathVariable Long id) {
|
||||
|
@ -82,4 +82,5 @@ public class BookInfoController extends BaseController {
|
|||
bookInfoService.removeBatchByIds(Arrays.asList(ids));
|
||||
return success();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -14,5 +14,4 @@ import java.util.List;
|
|||
*/
|
||||
public interface BookInfoService extends IService<BookInfo> {
|
||||
List<BookInfo> pageQuery(BookInfo bookInfo);
|
||||
|
||||
}
|
||||
|
|
|
@ -2,18 +2,24 @@ package com.muyu.system.service.impl;
|
|||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.common.core.constant.CacheConstants;
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.muyu.common.redis.service.RedisService;
|
||||
import com.muyu.system.domain.BookInfo;
|
||||
import com.muyu.system.domain.SysConfig;
|
||||
import com.muyu.system.mapper.BookInfoMapper;
|
||||
import com.muyu.system.mapper.SysConfigMapper;
|
||||
import com.muyu.system.service.BookInfoService;
|
||||
import com.muyu.system.service.SysConfigService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
import static com.muyu.common.security.utils.DictUtils.getCacheKey;
|
||||
|
||||
/**
|
||||
* @ClassName BookInfoServiceImpl
|
||||
* @Description 描述
|
||||
|
@ -23,6 +29,10 @@ import java.util.Objects;
|
|||
@Service
|
||||
public class BookInfoServiceImpl extends ServiceImpl<BookInfoMapper, BookInfo>
|
||||
implements BookInfoService {
|
||||
|
||||
@Autowired
|
||||
private RedisService redisService;
|
||||
|
||||
@Override
|
||||
public List<BookInfo> pageQuery(BookInfo bookInfo) {
|
||||
LambdaQueryWrapper<BookInfo> queryWrapper = new LambdaQueryWrapper<>();
|
||||
|
@ -44,4 +54,7 @@ public class BookInfoServiceImpl extends ServiceImpl<BookInfoMapper, BookInfo>
|
|||
|
||||
return this.list(queryWrapper);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue