Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
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
曲欣亮
member-api
Commits
6d170d1f
Commit
6d170d1f
authored
Nov 01, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
f3d0d8cf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
UserReviewServiceImpl.java
...olm/film/api/user/service/impl/UserReviewServiceImpl.java
+4
-2
WebMvcConfig.java
src/main/java/com/egolm/film/config/WebMvcConfig.java
+5
-3
No files found.
src/main/java/com/egolm/film/api/user/service/impl/UserReviewServiceImpl.java
View file @
6d170d1f
...
@@ -72,7 +72,8 @@ public class UserReviewServiceImpl implements UserReviewService {
...
@@ -72,7 +72,8 @@ public class UserReviewServiceImpl implements UserReviewService {
+
"left join fc_film_review review on review.film_id = allot.film_id and review.uid = allot.uid and review.round = allot.review_round "
+
"left join fc_film_review review on review.film_id = allot.film_id and review.uid = allot.uid and review.round = allot.review_round "
+
"where "
+
"where "
+
"allot.uid = ? "
+
"allot.uid = ? "
+
"and review.state > 0"
+
StringUtil
.
join
(
" and "
,
" "
,
""
,
""
,
strs
);
+
"and review.state > 0"
+
StringUtil
.
join
(
" and "
,
" "
,
""
,
""
,
strs
);
return
jdbcTemplate
.
limit
(
sql
,
page
,
args
.
toArray
());
return
jdbcTemplate
.
limit
(
sql
,
page
,
args
.
toArray
());
}
}
...
@@ -121,7 +122,8 @@ public class UserReviewServiceImpl implements UserReviewService {
...
@@ -121,7 +122,8 @@ public class UserReviewServiceImpl implements UserReviewService {
+
"left join fc_film_review review on review.film_id = allot.film_id and review.uid = allot.uid and review.round = allot.review_round "
+
"left join fc_film_review review on review.film_id = allot.film_id and review.uid = allot.uid and review.round = allot.review_round "
+
"where "
+
"where "
+
"allot.uid = ? "
+
"allot.uid = ? "
+
"and review.state is null"
+
StringUtil
.
join
(
" and "
,
" "
,
""
,
""
,
strs
);
+
"and review.state is null"
+
StringUtil
.
join
(
" and "
,
" "
,
""
,
""
,
strs
);
return
jdbcTemplate
.
limit
(
sql
,
page
,
args
.
toArray
());
return
jdbcTemplate
.
limit
(
sql
,
page
,
args
.
toArray
());
}
}
...
...
src/main/java/com/egolm/film/config/WebMvcConfig.java
View file @
6d170d1f
...
@@ -87,12 +87,14 @@ public class WebMvcConfig extends WebMvcConfigurerAdapter {
...
@@ -87,12 +87,14 @@ public class WebMvcConfig extends WebMvcConfigurerAdapter {
HttpServletRequest
request
=
WebMvcConfig
.
getRequest
();
HttpServletRequest
request
=
WebMvcConfig
.
getRequest
();
if
(
request
!=
null
)
{
if
(
request
!=
null
)
{
Cookie
[]
cookies
=
request
.
getCookies
();
Cookie
[]
cookies
=
request
.
getCookies
();
if
(
cookies
!=
null
)
{
for
(
Cookie
cookie
:
cookies
)
{
for
(
Cookie
cookie
:
cookies
)
{
if
(
cookie
.
getName
().
equals
(
name
))
{
if
(
cookie
.
getName
().
equals
(
name
))
{
return
cookie
;
return
cookie
;
}
}
}
}
}
}
}
return
null
;
return
null
;
}
}
...
...
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