Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sentinel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
sentinel
Commits
7d6830e1
Commit
7d6830e1
authored
Jan 22, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
9759e6cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
LogServiceImpl.java
.../java/com/egolm/film/api/service/impl/LogServiceImpl.java
+9
-0
Fc_logs_error.java
src/main/java/com/egolm/film/bean/Fc_logs_error.java
+11
-0
Fc_member_film.java
src/main/java/com/egolm/film/bean/Fc_member_film.java
+1
-1
No files found.
src/main/java/com/egolm/film/api/service/impl/LogServiceImpl.java
View file @
7d6830e1
...
...
@@ -4,6 +4,8 @@ import java.util.Date;
import
java.util.List
;
import
java.util.Map
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -12,6 +14,7 @@ import com.egolm.common.jdbc.JdbcTemplate;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.film.api.service.LogService
;
import
com.egolm.film.bean.Fc_logs_error
;
import
com.egolm.film.config.WebMvcConfig
;
import
com.egolm.film.util.SqlWhere
;
@Service
...
...
@@ -30,8 +33,14 @@ public class LogServiceImpl implements LogService {
@Override
public
void
saveErrorLog
(
Throwable
ex
)
{
String
requestUri
=
null
;
HttpServletRequest
request
=
WebMvcConfig
.
getRequest
();
if
(
request
!=
null
)
{
requestUri
=
request
.
getRequestURI
().
substring
(
request
.
getContextPath
().
length
());
}
Fc_logs_error
error
=
new
Fc_logs_error
();
error
.
setTitle
(
ex
.
getMessage
());
error
.
setPath
(
requestUri
);
error
.
setError
(
this
.
toStackString
(
ex
).
toString
());
error
.
setCreate_time
(
new
Date
());
jdbcTemplate
.
save
(
error
);
...
...
src/main/java/com/egolm/film/bean/Fc_logs_error.java
View file @
7d6830e1
...
...
@@ -17,6 +17,9 @@ public class Fc_logs_error implements java.io.Serializable {
@Column
(
columnDefinition
=
"int(11)"
)
private
Integer
id
;
@Column
(
columnDefinition
=
"varchar(255)"
)
private
String
path
;
@Column
(
columnDefinition
=
"text"
)
private
String
title
;
...
...
@@ -35,6 +38,14 @@ public class Fc_logs_error implements java.io.Serializable {
return
id
;
}
public
void
setPath
(
String
path
)
{
this
.
path
=
path
;
}
public
String
getPath
()
{
return
path
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
...
...
src/main/java/com/egolm/film/bean/Fc_member_film.java
View file @
7d6830e1
...
...
@@ -32,7 +32,7 @@ public class Fc_member_film implements java.io.Serializable {
@Column
(
columnDefinition
=
"tinyint(10) COMMENT '类型 1 电影 2电视'"
)
private
Integer
type
;
@Column
(
columnDefinition
=
"bigint(20)
unsigned zerofill
COMMENT '影片内容分组id'"
)
@Column
(
columnDefinition
=
"bigint(20) COMMENT '影片内容分组id'"
)
private
Long
film_group_id
;
@Column
(
columnDefinition
=
"int(10) COMMENT '影片类型'"
)
...
...
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