day_01
csy 2024-02-27 09:32:45 +08:00
parent 20b5c5fd6e
commit 4b5ceee780
4 changed files with 17 additions and 4 deletions

View File

@ -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:

View File

@ -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();
}
}

View File

@ -14,5 +14,4 @@ import java.util.List;
*/
public interface BookInfoService extends IService<BookInfo> {
List<BookInfo> pageQuery(BookInfo bookInfo);
}

View File

@ -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);
}
}