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
77df8071
Commit
77df8071
authored
Apr 03, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
bb93922e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
ReviewService.java
src/main/java/com/egolm/film/api/service/ReviewService.java
+2
-0
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+6
-0
UserReviewController.java
...ava/com/egolm/film/api/web/user/UserReviewController.java
+11
-0
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
View file @
77df8071
...
...
@@ -76,6 +76,8 @@ public interface ReviewService {
List
<
Map
<
String
,
Object
>>
queryDoubtfulListByFilmIdForUser
(
Integer
film_id
,
Integer
user_id
);
List
<
Map
<
String
,
Object
>>
queryDoubtfulListByFilmIdForUser
(
Integer
film_id
);
List
<
Map
<
String
,
Object
>>
queryDoubtfulListByFilmIdId
(
Integer
film_id
);
Fc_review_record
queryCurrentReviewRecord
(
Integer
user_id
,
Integer
review_id
);
...
...
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
77df8071
...
...
@@ -245,6 +245,12 @@ public class ReviewServiceImpl implements ReviewService {
return
jdbcTemplate
.
queryForList
(
sql
,
film_id
,
user_id
);
}
@Override
public
List
<
Map
<
String
,
Object
>>
queryDoubtfulListByFilmIdForUser
(
Integer
film_id
)
{
String
sql
=
"select rd.* from fc_review_doubtful rd, fc_review r where rd.review_id = r.id and r.film_id = ?"
;
return
jdbcTemplate
.
queryForList
(
sql
,
film_id
);
}
@Override
public
List
<
Map
<
String
,
Object
>>
queryDoubtfulListByFilmIdId
(
Integer
film_id
)
{
String
sql
=
"select rd.*, r.film_id, u.username, ug.group_name from fc_review_doubtful rd left join fc_user u on u.uid = rd.user_id left join fc_user_group ug on ug.group_id = u.group_id, fc_review r where rd.review_id = r.id and r.film_id = ?"
;
...
...
src/main/java/com/egolm/film/api/web/user/UserReviewController.java
View file @
77df8071
...
...
@@ -143,6 +143,17 @@ public class UserReviewController {
return
Rjx
.
jsonOk
().
setData
(
list
);
}
@ResponseBody
@PostMapping
(
"doubtful_list_all"
)
@ApiOperation
(
"查询疑点记录"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"review_id"
,
value
=
"审片ID"
),
})
public
Object
getDoubtfulListAll
(
Integer
film_id
)
{
List
<
Map
<
String
,
Object
>>
list
=
service
.
queryDoubtfulListByFilmIdForUser
(
film_id
);
return
Rjx
.
jsonOk
().
setData
(
list
);
}
@ResponseBody
@PostMapping
(
"doubtful_del"
)
@ApiOperation
(
"删除疑点记录"
)
...
...
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