Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
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
曲欣亮
member-api
Commits
f3873dc6
Commit
f3873dc6
authored
Feb 13, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
2264d609
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-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
+10
-0
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
View file @
f3873dc6
...
@@ -117,5 +117,7 @@ public interface ReviewService {
...
@@ -117,5 +117,7 @@ public interface ReviewService {
void
allotShowFilmUser
(
Integer
review_id
,
Integer
[]
user_id
);
void
allotShowFilmUser
(
Integer
review_id
,
Integer
[]
user_id
);
List
<
Map
<
String
,
Object
>>
queryUserShowList
(
Integer
user_id
);
}
}
\ No newline at end of file
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
f3873dc6
...
@@ -592,4 +592,10 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -592,4 +592,10 @@ public class ReviewServiceImpl implements ReviewService {
this
.
jdbcTemplate
.
batchSave
(
ufs
);
this
.
jdbcTemplate
.
batchSave
(
ufs
);
}
}
@Override
public
List
<
Map
<
String
,
Object
>>
queryUserShowList
(
Integer
user_id
)
{
String
sql
=
"select r.id review_id, mf.* from fc_review r left join fc_member_film mf on mf.id = r.film_id, fc_user_film uf where r.id = uf.review_id and uf.user_id = ?"
;
return
jdbcTemplate
.
queryForList
(
sql
,
user_id
);
}
}
}
\ No newline at end of file
src/main/java/com/egolm/film/api/web/user/UserReviewController.java
View file @
f3873dc6
...
@@ -80,6 +80,16 @@ public class UserReviewController {
...
@@ -80,6 +80,16 @@ public class UserReviewController {
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
}
}
@ResponseBody
@PostMapping
(
"show_list"
)
@ApiOperation
(
"看片列表"
)
public
Object
getReviewList
()
{
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
user_id
=
(
Integer
)
loginToken
.
getId
();
List
<
Map
<
String
,
Object
>>
list
=
service
.
queryUserShowList
(
user_id
);
return
Rjx
.
jsonOk
().
setData
(
list
);
}
@ResponseBody
@ResponseBody
@PostMapping
(
"doubtful_save"
)
@PostMapping
(
"doubtful_save"
)
@ApiOperation
(
"保存疑点记录"
)
@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