Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
段启岩
beyond-clouds
Commits
d381cb4c
Commit
d381cb4c
authored
Feb 07, 2020
by
张晋雄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询项目详情的时候更新项目的浏览量
parent
92c0430f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
src/main/java/cn/meteor/beyondclouds/modules/project/service/impl/ProjectServiceImpl.java
+4
-0
src/main/resources/application.yml
+1
-1
No files found.
src/main/java/cn/meteor/beyondclouds/modules/project/service/impl/ProjectServiceImpl.java
View file @
d381cb4c
...
@@ -129,6 +129,10 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
...
@@ -129,6 +129,10 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
throw
new
ProjectServiceException
(
ProjectErrorCode
.
PROJECT_NOT_FOUND
);
throw
new
ProjectServiceException
(
ProjectErrorCode
.
PROJECT_NOT_FOUND
);
}
}
//获取项目浏览量加一并更新
project
.
setViewNumber
(
project
.
getViewNumber
()+
1
);
updateById
(
project
);
// 2.获取项目详情
// 2.获取项目详情
ProjectExt
projectExt
=
projectExtService
.
getById
(
projectId
);
ProjectExt
projectExt
=
projectExtService
.
getById
(
projectId
);
...
...
src/main/resources/application.yml
View file @
d381cb4c
...
@@ -3,7 +3,7 @@ spring:
...
@@ -3,7 +3,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
:
100Centa30821%mysql
password
:
2018006709
swagger
:
swagger
:
enable
:
true
enable
:
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment