Commit f6017fdb by 段启岩

修改我的项目按发布时间倒序排列

parent e295cb13
...@@ -229,6 +229,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl ...@@ -229,6 +229,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
IPage<Project> page = new Page<>(pageNumber, pageSize); IPage<Project> page = new Page<>(pageNumber, pageSize);
QueryWrapper<Project> projectQueryWrapper = new QueryWrapper<>(); QueryWrapper<Project> projectQueryWrapper = new QueryWrapper<>();
projectQueryWrapper.eq("user_id", userId); projectQueryWrapper.eq("user_id", userId);
projectQueryWrapper.orderByDesc("create_time");
return page(page, projectQueryWrapper); return page(page, projectQueryWrapper);
} }
......
...@@ -5,7 +5,7 @@ spring: ...@@ -5,7 +5,7 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/beyond_clouds?useUnicode=true&characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true url: jdbc:mysql://127.0.0.1:3306/beyond_clouds?useUnicode=true&characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true
username: root username: root
password: 2018006709 password: 100Centa30821%mysql
# 邮箱 # 邮箱
mail: mail:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment