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
4bd10bfd
Commit
4bd10bfd
authored
Dec 06, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
4e580fc1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-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
+13
-0
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
View file @
4bd10bfd
...
@@ -18,4 +18,6 @@ public interface ReviewService {
...
@@ -18,4 +18,6 @@ public interface ReviewService {
void
saveDoubtful
(
Fc_review_doubtful
doubtful
);
void
saveDoubtful
(
Fc_review_doubtful
doubtful
);
List
<
Map
<
String
,
Object
>>
queryDoubtfulListByFilmId
(
Integer
film_id
,
Integer
user_id
);
}
}
\ No newline at end of file
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
4bd10bfd
...
@@ -75,5 +75,11 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -75,5 +75,11 @@ public class ReviewServiceImpl implements ReviewService {
jdbcTemplate
.
save
(
doubtful
);
jdbcTemplate
.
save
(
doubtful
);
}
}
@Override
public
List
<
Map
<
String
,
Object
>>
queryDoubtfulListByFilmId
(
Integer
film_id
,
Integer
user_id
)
{
String
sql
=
"select rd.* from fc_review_doubtful rd, fc_review r where rd.review_id = r.id and r.film_id = ? and rd.user_id = ?"
;
return
jdbcTemplate
.
queryForList
(
sql
,
film_id
,
user_id
);
}
}
}
src/main/java/com/egolm/film/api/web/user/UserReviewController.java
View file @
4bd10bfd
...
@@ -83,4 +83,17 @@ public class UserReviewController {
...
@@ -83,4 +83,17 @@ public class UserReviewController {
service
.
saveDoubtful
(
doubtful
);
service
.
saveDoubtful
(
doubtful
);
return
Rjx
.
jsonOk
().
setData
(
doubtful
);
return
Rjx
.
jsonOk
().
setData
(
doubtful
);
}
}
@ResponseBody
@PostMapping
(
"doubtful_list"
)
@ApiOperation
(
"查询疑点记录"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"review_id"
,
value
=
"审片ID"
),
})
public
Object
getDoubtfulList
(
Integer
film_id
)
{
LoginToken
token
=
tokenService
.
getToken
();
Integer
user_id
=
(
Integer
)
token
.
getId
();
List
<
Map
<
String
,
Object
>>
list
=
service
.
queryDoubtfulListByFilmId
(
film_id
,
user_id
);
return
Rjx
.
jsonOk
().
setData
(
list
);
}
}
}
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