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
17d44df1
Commit
17d44df1
authored
Dec 06, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
f30421b2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
2 deletions
+14
-2
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
AdminAuthController.java
...ava/com/egolm/film/api/web/admin/AdminAuthController.java
+1
-1
UserReviewController.java
...ava/com/egolm/film/api/web/user/UserReviewController.java
+5
-1
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
View file @
17d44df1
...
@@ -12,4 +12,6 @@ public interface ReviewService {
...
@@ -12,4 +12,6 @@ public interface ReviewService {
List
<
Map
<
String
,
Object
>>
queryReviewList
(
boolean
is_review
,
Integer
user_id
,
Date
push_date
,
Integer
film_type_id
,
Integer
enroll_type_id
,
String
keyword
,
Page
page
);
List
<
Map
<
String
,
Object
>>
queryReviewList
(
boolean
is_review
,
Integer
user_id
,
Date
push_date
,
Integer
film_type_id
,
Integer
enroll_type_id
,
String
keyword
,
Page
page
);
Integer
queryReviewRound
(
Integer
film_id
,
Integer
enroll_type_id
);
}
}
\ No newline at end of file
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
17d44df1
...
@@ -60,5 +60,11 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -60,5 +60,11 @@ public class ReviewServiceImpl implements ReviewService {
return
jdbcTemplate
.
queryForList
(
"select * from enum_doubtful"
);
return
jdbcTemplate
.
queryForList
(
"select * from enum_doubtful"
);
}
}
@Override
public
Integer
queryReviewRound
(
Integer
film_id
,
Integer
enroll_type_id
)
{
String
sql
=
"select review_round from fc_review where film_id = ? and enroll_type_id = ?"
;
return
null
;
}
}
}
src/main/java/com/egolm/film/api/web/admin/AdminAuthController.java
View file @
17d44df1
...
@@ -193,7 +193,7 @@ public class AdminAuthController {
...
@@ -193,7 +193,7 @@ public class AdminAuthController {
public
Object
getAdminAuth
()
throws
FileNotFoundException
{
public
Object
getAdminAuth
()
throws
FileNotFoundException
{
Fc_admin
admin
=
(
Fc_admin
)
tokenService
.
getTokenObj
();
Fc_admin
admin
=
(
Fc_admin
)
tokenService
.
getTokenObj
();
List
<
Map
<
String
,
Object
>>
groupMenuList
=
service
.
queryGroupMenuList
(
admin
.
getGroup_id
());
List
<
Map
<
String
,
Object
>>
groupMenuList
=
service
.
queryGroupMenuList
(
admin
.
getGroup_id
());
return
Rjx
.
jsonOk
().
setData
(
groupMenuList
);
return
Rjx
.
jsonOk
().
set
(
"admin"
,
admin
).
set
Data
(
groupMenuList
);
}
}
@ResponseBody
@ResponseBody
...
...
src/main/java/com/egolm/film/api/web/user/UserReviewController.java
View file @
17d44df1
...
@@ -12,8 +12,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -12,8 +12,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.common.jdbc.JdbcTemplate
;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.film.api.service.FilmService
;
import
com.egolm.film.api.service.ReviewService
;
import
com.egolm.film.api.service.ReviewService
;
import
com.egolm.film.api.service.UserTokenService
;
import
com.egolm.film.api.service.UserTokenService
;
import
com.egolm.film.model.LoginToken
;
import
com.egolm.film.model.LoginToken
;
...
@@ -34,6 +34,9 @@ public class UserReviewController {
...
@@ -34,6 +34,9 @@ public class UserReviewController {
@Autowired
@Autowired
private
ReviewService
service
;
private
ReviewService
service
;
@Autowired
private
FilmService
filmService
;
@ResponseBody
@ResponseBody
@PostMapping
(
"review_list"
)
@PostMapping
(
"review_list"
)
@ApiOperation
(
"审核列表"
)
@ApiOperation
(
"审核列表"
)
...
@@ -67,6 +70,7 @@ public class UserReviewController {
...
@@ -67,6 +70,7 @@ public class UserReviewController {
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"date"
,
required
=
false
,
name
=
"play_time"
,
value
=
"播放时间{yyyy-MM-dd HH:mm:ss}"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"date"
,
required
=
false
,
name
=
"play_time"
,
value
=
"播放时间{yyyy-MM-dd HH:mm:ss}"
),
})
})
public
Object
saveDoubtful
(
Integer
film_id
,
Integer
enroll_type_id
,
Integer
doubtful_type_id
,
String
doubtful_text
,
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
Date
play_time
)
{
public
Object
saveDoubtful
(
Integer
film_id
,
Integer
enroll_type_id
,
Integer
doubtful_type_id
,
String
doubtful_text
,
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
Date
play_time
)
{
Integer
review_round
=
service
.
queryReviewRound
(
film_id
,
enroll_type_id
);
return
Rjx
.
jsonOk
();
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