修复文章列表问题
This commit is contained in:
parent
fca4c24a8e
commit
2039a317a9
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
|
|
@ -88,6 +88,8 @@ public class ArticleServiceImpl implements IArticleService {
|
||||||
|
|
||||||
QueryWrapper<Article> queryWrapper = new QueryWrapper<>();
|
QueryWrapper<Article> queryWrapper = new QueryWrapper<>();
|
||||||
queryWrapper.select("id,title,image,intro,visit,create_time");
|
queryWrapper.select("id,title,image,intro,visit,create_time");
|
||||||
|
queryWrapper.eq("is_delete", 0);
|
||||||
|
queryWrapper.eq("is_show", 1);
|
||||||
if (cid > 0) {
|
if (cid > 0) {
|
||||||
queryWrapper.eq("cid", cid);
|
queryWrapper.eq("cid", cid);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,15 @@ like:
|
||||||
# 服务配置
|
# 服务配置
|
||||||
server:
|
server:
|
||||||
port: 8084
|
port: 8084
|
||||||
|
servlet:
|
||||||
|
context-path: /
|
||||||
|
|
||||||
# 框架配置
|
# 框架配置
|
||||||
spring:
|
spring:
|
||||||
profiles:
|
profiles:
|
||||||
active: pro
|
active: pro
|
||||||
|
mvc:
|
||||||
|
static-path-pattern: /api/static/**
|
||||||
# 数据源配置
|
# 数据源配置
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:mysql://localhost:3306/local_frame?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
|
url: jdbc:mysql://localhost:3306/local_frame?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
Loading…
Reference in New Issue