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
af4628b5
Commit
af4628b5
authored
Oct 29, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改审片API
parent
7e8a5ef3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
79 additions
and
15 deletions
+79
-15
UserReviewController.java
...in/java/com/egolm/film/api/user/UserReviewController.java
+72
-15
UserReviewService.java
...va/com/egolm/film/api/user/service/UserReviewService.java
+2
-0
UserReviewServiceImpl.java
...olm/film/api/user/service/impl/UserReviewServiceImpl.java
+5
-0
No files found.
src/main/java/com/egolm/film/api/user/UserReviewController.java
View file @
af4628b5
...
@@ -14,9 +14,9 @@ import com.egolm.common.jdbc.Page;
...
@@ -14,9 +14,9 @@ import com.egolm.common.jdbc.Page;
import
com.egolm.film.api.member.service.MemberService
;
import
com.egolm.film.api.member.service.MemberService
;
import
com.egolm.film.api.user.service.UserReviewService
;
import
com.egolm.film.api.user.service.UserReviewService
;
import
com.egolm.film.api.user.service.UserTokenService
;
import
com.egolm.film.api.user.service.UserTokenService
;
import
com.egolm.film.bean.Fc_film
;
import
com.egolm.film.bean.Fc_film_doubtful_point
;
import
com.egolm.film.bean.Fc_film_doubtful_point
;
import
com.egolm.film.bean.Fc_film_review
;
import
com.egolm.film.bean.Fc_film_review
;
import
com.egolm.film.bean.Fc_member_film
;
import
com.egolm.film.bean.Fc_member_film_director
;
import
com.egolm.film.bean.Fc_member_film_director
;
import
com.egolm.film.bean.Fc_member_film_issuer
;
import
com.egolm.film.bean.Fc_member_film_issuer
;
import
com.egolm.film.bean.Fc_member_film_playactor
;
import
com.egolm.film.bean.Fc_member_film_playactor
;
...
@@ -38,6 +38,9 @@ public class UserReviewController {
...
@@ -38,6 +38,9 @@ public class UserReviewController {
@Autowired
@Autowired
private
UserReviewService
reviewService
;
private
UserReviewService
reviewService
;
@Autowired
private
MemberService
memberService
;
@ResponseBody
@ResponseBody
@PostMapping
(
"review_list"
)
@PostMapping
(
"review_list"
)
...
@@ -74,35 +77,89 @@ public class UserReviewController {
...
@@ -74,35 +77,89 @@ public class UserReviewController {
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
}
}
@Autowired
private
MemberService
memberService
;
@ResponseBody
@ResponseBody
@PostMapping
(
"
allot
_detail"
)
@PostMapping
(
"
member_apply
_detail"
)
@ApiOperation
(
"
影片信息详情
"
)
@ApiOperation
(
"
查询申报影片详细信息
"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"film_id"
,
value
=
"影片ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"film_id"
,
value
=
"影片ID"
),
})
})
public
Object
getAllotDetail
(
Long
film_id
)
{
public
Object
getAllotDetail
(
Long
film_id
)
{
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
user_id
=
(
Integer
)
loginToken
.
getId
();
Map
<
String
,
Object
>
map
=
reviewService
.
queryAllotDetailByFilmId
(
film_id
);
Long
member_film_id
=
reviewService
.
queryMemberFilmIdByFilmId
(
film_id
);
Long
member_film_id
=
reviewService
.
queryMemberFilmIdByFilmId
(
film_id
);
Fc_member_film
memberFilm
=
memberService
.
queryMemberFilmById
(
member_film_id
);
List
<
Fc_member_film_director
>
directorList
=
memberService
.
queryMemberFilmDirectorList
(
member_film_id
);
List
<
Fc_member_film_director
>
directorList
=
memberService
.
queryMemberFilmDirectorList
(
member_film_id
);
List
<
Fc_member_film_issuer
>
issuerList
=
memberService
.
queryMemberFilmIssuerList
(
member_film_id
);
List
<
Fc_member_film_issuer
>
issuerList
=
memberService
.
queryMemberFilmIssuerList
(
member_film_id
);
List
<
Fc_member_film_playactor
>
playactorList
=
memberService
.
queryMemberFilmPlayactorList
(
member_film_id
);
List
<
Fc_member_film_playactor
>
playactorList
=
memberService
.
queryMemberFilmPlayactorList
(
member_film_id
);
List
<
Fc_member_film_show
>
showList
=
memberService
.
queryMemberFilmShowList
(
member_film_id
);
List
<
Fc_member_film_show
>
showList
=
memberService
.
queryMemberFilmShowList
(
member_film_id
);
Integer
round
=
(
Integer
)
map
.
get
(
"round"
);
List
<
Fc_film_review
>
reviewList
=
reviewService
.
queryRoundReviewListByUserId
(
user_id
,
round
,
film_id
);
List
<
Fc_film_doubtful_point
>
doubtfulList
=
reviewService
.
queryDoubtfulListByUserId
(
user_id
,
film_id
);
return
Rjx
.
jsonOk
()
return
Rjx
.
jsonOk
()
.
setData
(
map
)
.
setData
(
memberFilm
)
.
set
(
"member_film_id"
,
member_film_id
)
.
set
(
"directorList"
,
directorList
)
.
set
(
"directorList"
,
directorList
)
.
set
(
"issuerList"
,
issuerList
)
.
set
(
"issuerList"
,
issuerList
)
.
set
(
"playactorList"
,
playactorList
)
.
set
(
"playactorList"
,
playactorList
)
.
set
(
"showList"
,
showList
)
.
set
(
"showList"
,
showList
)
.
set
(
"reviewList"
,
reviewList
)
;
.
set
(
"doubtfulList"
,
doubtfulList
);
}
@ResponseBody
@PostMapping
(
"review_list"
)
@ApiOperation
(
"查询评审记录列表"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
false
,
name
=
"film_id"
,
value
=
"影片ID"
),
})
public
Object
getReviewList
(
Long
film_id
)
{
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
user_id
=
(
Integer
)
loginToken
.
getId
();
Integer
round
=
reviewService
.
queryRound
(
user_id
,
film_id
);
List
<
Fc_film_review
>
reviewList
=
reviewService
.
queryRoundReviewListByUserId
(
user_id
,
round
,
film_id
);
return
Rjx
.
jsonOk
().
setData
(
reviewList
);
}
@ResponseBody
@PostMapping
(
"doubtful_list"
)
@ApiOperation
(
"查询疑点列表"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
false
,
name
=
"film_id"
,
value
=
"影片ID"
),
})
public
Object
getDoubtfulList
(
Long
film_id
)
{
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
user_id
=
(
Integer
)
loginToken
.
getId
();
List
<
Fc_film_doubtful_point
>
doubtfulList
=
reviewService
.
queryDoubtfulListByUserId
(
user_id
,
film_id
);
return
Rjx
.
jsonOk
().
setData
(
doubtfulList
);
}
@ResponseBody
@PostMapping
(
"doubtful_append"
)
@ApiOperation
(
"增加疑点"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
false
,
name
=
"film_id"
,
value
=
"影片ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"content"
,
value
=
"疑点说明"
),
})
public
Object
doubtfulAppend
(
Long
film_id
,
String
content
)
{
return
Rjx
.
jsonOk
();
}
@ResponseBody
@PostMapping
(
"do_reject"
)
@ApiOperation
(
"审片否决"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
false
,
name
=
"film_id"
,
value
=
"影片ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"veto"
,
value
=
"否决理由"
),
})
public
Object
doReject
(
Long
film_id
,
String
veto
)
{
return
Rjx
.
jsonOk
();
}
@ResponseBody
@PostMapping
(
"do_pass"
)
@ApiOperation
(
"审片通过"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"film_id"
,
value
=
"影片ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"float"
,
required
=
true
,
name
=
"score"
,
value
=
"评分"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"content"
,
value
=
"选片结论"
),
})
public
Object
doPass
(
Long
film_id
,
Double
score
,
String
content
)
{
return
Rjx
.
jsonOk
();
}
}
}
}
src/main/java/com/egolm/film/api/user/service/UserReviewService.java
View file @
af4628b5
...
@@ -24,4 +24,6 @@ public interface UserReviewService {
...
@@ -24,4 +24,6 @@ public interface UserReviewService {
Fc_film
queryFilmById
(
Long
film_id
);
Fc_film
queryFilmById
(
Long
film_id
);
Integer
queryRound
(
Integer
user_id
,
Long
film_id
);
}
}
src/main/java/com/egolm/film/api/user/service/impl/UserReviewServiceImpl.java
View file @
af4628b5
...
@@ -109,5 +109,10 @@ public class UserReviewServiceImpl implements UserReviewService {
...
@@ -109,5 +109,10 @@ public class UserReviewServiceImpl implements UserReviewService {
public
Fc_film
queryFilmById
(
Long
film_id
)
{
public
Fc_film
queryFilmById
(
Long
film_id
)
{
return
jdbcTemplate
.
queryForBean
(
"select * from fc_film where id = ?"
,
Fc_film
.
class
,
film_id
);
return
jdbcTemplate
.
queryForBean
(
"select * from fc_film where id = ?"
,
Fc_film
.
class
,
film_id
);
}
}
@Override
public
Integer
queryRound
(
Integer
user_id
,
Long
film_id
)
{
return
jdbcTemplate
.
queryForInt
(
"select round from fc_film_allot where film_id = ? and uid = ?"
,
film_id
,
user_id
);
}
}
}
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