修复文章列表问题

This commit is contained in:
TinyAnts 2022-09-08 17:10:46 +08:00
parent fca4c24a8e
commit 2039a317a9
6 changed files with 6 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -88,6 +88,8 @@ public class ArticleServiceImpl implements IArticleService {
QueryWrapper<Article> queryWrapper = new QueryWrapper<>();
queryWrapper.select("id,title,image,intro,visit,create_time");
queryWrapper.eq("is_delete", 0);
queryWrapper.eq("is_show", 1);
if (cid > 0) {
queryWrapper.eq("cid", cid);
}

View File

@ -5,11 +5,15 @@ like:
# 服务配置
server:
port: 8084
servlet:
context-path: /
# 框架配置
spring:
profiles:
active: pro
mvc:
static-path-pattern: /api/static/**
# 数据源配置
datasource:
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