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
fce8cb5c
Commit
fce8cb5c
authored
Dec 24, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
415998e5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
ReviewService.java
src/main/java/com/egolm/film/api/service/ReviewService.java
+2
-2
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+4
-4
AdminReviewController.java
...a/com/egolm/film/api/web/admin/AdminReviewController.java
+3
-3
UserReviewController.java
...ava/com/egolm/film/api/web/user/UserReviewController.java
+1
-1
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
View file @
fce8cb5c
...
@@ -70,9 +70,9 @@ public interface ReviewService {
...
@@ -70,9 +70,9 @@ public interface ReviewService {
void
saveDoubtfulList
(
List
<
Fc_review_doubtful
>
doubtfulList
);
void
saveDoubtfulList
(
List
<
Fc_review_doubtful
>
doubtfulList
);
List
<
Map
<
String
,
Object
>>
queryDoubtfulListByFilmId
(
Integer
film_id
,
Integer
user_id
);
List
<
Map
<
String
,
Object
>>
queryDoubtfulListByFilmId
ForUser
(
Integer
film_id
,
Integer
user_id
);
List
<
Map
<
String
,
Object
>>
queryDoubtfulListBy
ReviewId
(
Integer
review
_id
);
List
<
Map
<
String
,
Object
>>
queryDoubtfulListBy
FilmIdId
(
Integer
film
_id
);
Fc_review_record
queryReviewRecord
(
Integer
user_id
,
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 @
fce8cb5c
...
@@ -202,15 +202,15 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -202,15 +202,15 @@ public class ReviewServiceImpl implements ReviewService {
}
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
queryDoubtfulListByFilmId
(
Integer
film_id
,
Integer
user_id
)
{
public
List
<
Map
<
String
,
Object
>>
queryDoubtfulListByFilmId
ForUser
(
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 = ?"
;
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
);
return
jdbcTemplate
.
queryForList
(
sql
,
film_id
,
user_id
);
}
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
queryDoubtfulListBy
ReviewId
(
Integer
review
_id
)
{
public
List
<
Map
<
String
,
Object
>>
queryDoubtfulListBy
FilmIdId
(
Integer
film
_id
)
{
String
sql
=
"select rd.* from fc_review_doubtful rd
rd.review
_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
,
review
_id
);
return
jdbcTemplate
.
queryForList
(
sql
,
film
_id
);
}
}
@Override
@Override
...
...
src/main/java/com/egolm/film/api/web/admin/AdminReviewController.java
View file @
fce8cb5c
...
@@ -186,10 +186,10 @@ public class AdminReviewController {
...
@@ -186,10 +186,10 @@ public class AdminReviewController {
@PostMapping
(
"getDoubtfulList"
)
@PostMapping
(
"getDoubtfulList"
)
@ApiOperation
(
"查询疑点列表"
)
@ApiOperation
(
"查询疑点列表"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"
review
_id"
,
value
=
"审片主表ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"
film
_id"
,
value
=
"审片主表ID"
),
})
})
public
Object
getDoubtfulList
(
Integer
review
_id
)
{
public
Object
getDoubtfulList
(
Integer
film
_id
)
{
List
<
Map
<
String
,
Object
>>
list
=
reviewService
.
queryDoubtfulListBy
ReviewId
(
review
_id
);
List
<
Map
<
String
,
Object
>>
list
=
reviewService
.
queryDoubtfulListBy
FilmIdId
(
film
_id
);
return
Rjx
.
jsonOk
().
setData
(
list
);
return
Rjx
.
jsonOk
().
setData
(
list
);
}
}
...
...
src/main/java/com/egolm/film/api/web/user/UserReviewController.java
View file @
fce8cb5c
...
@@ -112,7 +112,7 @@ public class UserReviewController {
...
@@ -112,7 +112,7 @@ public class UserReviewController {
public
Object
getDoubtfulList
(
Integer
film_id
)
{
public
Object
getDoubtfulList
(
Integer
film_id
)
{
LoginToken
token
=
tokenService
.
getToken
();
LoginToken
token
=
tokenService
.
getToken
();
Integer
user_id
=
(
Integer
)
token
.
getId
();
Integer
user_id
=
(
Integer
)
token
.
getId
();
List
<
Map
<
String
,
Object
>>
list
=
service
.
queryDoubtfulListByFilmId
(
film_id
,
user_id
);
List
<
Map
<
String
,
Object
>>
list
=
service
.
queryDoubtfulListByFilmId
ForUser
(
film_id
,
user_id
);
return
Rjx
.
jsonOk
().
setData
(
list
);
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