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
e840ffab
Commit
e840ffab
authored
Oct 29, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
ac0a86cc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
28 deletions
+0
-28
UserReviewService.java
...va/com/egolm/film/api/user/service/UserReviewService.java
+0
-2
UserReviewServiceImpl.java
...olm/film/api/user/service/impl/UserReviewServiceImpl.java
+0
-26
No files found.
src/main/java/com/egolm/film/api/user/service/UserReviewService.java
View file @
e840ffab
...
...
@@ -14,8 +14,6 @@ public interface UserReviewService {
List
<
Map
<
String
,
Object
>>
limitUnviewByUserId
(
Integer
user_id
,
Page
page
);
Map
<
String
,
Object
>
queryAllotDetailByFilmId
(
Long
film_id
);
Long
queryMemberFilmIdByFilmId
(
Long
film_id
);
List
<
Fc_film_review
>
queryRoundReviewListByUserId
(
Integer
user_id
,
Integer
round
,
Long
film_id
);
...
...
src/main/java/com/egolm/film/api/user/service/impl/UserReviewServiceImpl.java
View file @
e840ffab
...
...
@@ -61,32 +61,6 @@ public class UserReviewServiceImpl implements UserReviewService {
return
jdbcTemplate
.
limit
(
sql
,
page
,
user_id
);
}
@Override
public
Map
<
String
,
Object
>
queryAllotDetailByFilmId
(
Long
film_id
)
{
String
sql
=
""
+
"SELECT "
+
"allot.*, "
+
"review.round, "
+
"review.review_time, "
+
"review.state, "
+
"review.veto, "
+
"review.video_intro, "
+
"review.video_features, "
+
"review.select_result, "
+
"review.award_1_score, "
+
"review.award_2_score, "
+
"review.award_3_score, "
+
"review.award_4_score, "
+
"review.award_5_score, "
+
"user.realname "
+
"FROM fc_film_allot as allot "
+
"LEFT JOIN fc_film_review as review on allot.film_id = review.film_id and allot.review_round = review.round and allot.uid = review.uid "
+
"LEFT JOIN fc_user as user on allot.uid = user.uid "
+
"WHERE "
+
"allot.film_id = '?'"
;
return
jdbcTemplate
.
queryForMap
(
sql
,
film_id
);
}
@Override
public
Long
queryMemberFilmIdByFilmId
(
Long
film_id
)
{
String
sql
=
"select mf.id from fc_member_film mf, fc_film f where mf.film_no = f.film_no and f.id = ?"
;
...
...
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