Commit d381cb4c by 张晋雄

查询项目详情的时候更新项目的浏览量

parent 92c0430f
......@@ -129,6 +129,10 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
throw new ProjectServiceException(ProjectErrorCode.PROJECT_NOT_FOUND);
}
//获取项目浏览量加一并更新
project.setViewNumber(project.getViewNumber()+1);
updateById(project);
// 2.获取项目详情
ProjectExt projectExt = projectExtService.getById(projectId);
......
......@@ -3,7 +3,7 @@ spring:
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
username: root
password: 100Centa30821%mysql
password: 2018006709
swagger:
enable: true
......
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