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
e6ade8ce
Commit
e6ade8ce
authored
Dec 24, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
331bd6c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-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
AdminReviewController.java
...a/com/egolm/film/api/web/admin/AdminReviewController.java
+15
-0
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
View file @
e6ade8ce
...
...
@@ -71,6 +71,8 @@ public interface ReviewService {
void
saveDoubtfulList
(
List
<
Fc_review_doubtful
>
doubtfulList
);
List
<
Map
<
String
,
Object
>>
queryDoubtfulListByFilmId
(
Integer
film_id
,
Integer
user_id
);
List
<
Map
<
String
,
Object
>>
queryDoubtfulListByReviewId
(
Integer
review_id
);
Fc_review_record
queryReviewRecord
(
Integer
user_id
,
Integer
review_id
);
...
...
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
e6ade8ce
...
...
@@ -206,6 +206,12 @@ public class ReviewServiceImpl implements ReviewService {
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
);
}
@Override
public
List
<
Map
<
String
,
Object
>>
queryDoubtfulListByReviewId
(
Integer
review_id
)
{
String
sql
=
"select rd.* from fc_review_doubtful rd rd.review_id = ?"
;
return
jdbcTemplate
.
queryForList
(
sql
,
review_id
);
}
@Override
public
Fc_review_record
queryReviewRecord
(
Integer
user_id
,
Integer
review_id
)
{
...
...
src/main/java/com/egolm/film/api/web/admin/AdminReviewController.java
View file @
e6ade8ce
...
...
@@ -13,6 +13,7 @@ import com.egolm.common.bean.Rjx;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.film.api.service.AdminTokenService
;
import
com.egolm.film.api.service.AdminUserService
;
import
com.egolm.film.api.service.FilmService
;
import
com.egolm.film.api.service.ReviewService
;
import
com.egolm.film.bean.Fc_admin
;
...
...
@@ -29,6 +30,9 @@ public class AdminReviewController {
@Autowired
ReviewService
reviewService
;
@Autowired
FilmService
filmService
;
@Autowired
AdminTokenService
tokenService
;
...
...
@@ -130,4 +134,15 @@ public class AdminReviewController {
return
Rjx
.
jsonOk
();
}
@ResponseBody
@PostMapping
(
"getDoubtfulList"
)
@ApiOperation
(
"查询审片评委"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"review_id"
,
value
=
"审片主表ID"
),
})
public
Object
getDoubtfulList
(
Integer
review_id
)
{
reviewService
.
queryDoubtfulListByReviewId
(
review_id
);
return
Rjx
.
jsonOk
();
}
}
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