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
5fb59b65
Commit
5fb59b65
authored
Feb 26, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
6a57e180
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
33 deletions
+31
-33
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+25
-29
FilmController.java
src/main/java/com/egolm/film/api/web/FilmController.java
+6
-4
No files found.
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
5fb59b65
...
...
@@ -274,8 +274,7 @@ public class ReviewServiceImpl implements ReviewService {
@Override
@Transactional
public
void
toFirstRound
(
Long
member_film_id
)
{
Integer
count
=
jdbcTemplate
.
queryForInt
(
"select count(id) from fc_review where film_id = ?"
,
member_film_id
);
if
(
count
==
0
)
{
this
.
rmReviewData
(
member_film_id
);
List
<
Fc_member_film_enroll
>
enrolls
=
filmService
.
queryFilmEnrollList
(
member_film_id
);
Integer
enroll_type_id
=
null
;
for
(
Fc_member_film_enroll
enroll
:
enrolls
)
{
...
...
@@ -303,9 +302,6 @@ public class ReviewServiceImpl implements ReviewService {
review
.
setCreate_time
(
now
);
review
.
setFrom_round
(
0
);
jdbcTemplate
.
save
(
review
);
}
else
{
throw
new
XRException
(
"该影片已存在审片流程"
);
}
}
public
void
toRound
(
Integer
review_id
,
Integer
review_round
)
{
...
...
src/main/java/com/egolm/film/api/web/FilmController.java
View file @
5fb59b65
...
...
@@ -182,14 +182,16 @@ public class FilmController {
String
create_ip
=
WebMvcConfig
.
getRemoteIp
();
filmService
.
saveCreateBase
(
filmBase
.
getId
(),
admin_id
,
member_id
,
create_ip
);
}
else
{
boolean
isBeginReview
=
reviewService
.
isBeginReview
(
filmBase
.
getId
());
Fc_member_film
film
=
filmService
.
queryMemberFilmById
(
filmBase
.
getId
());
boolean
isInitReview
=
film
.
getEnroll_type_name
()
!=
null
&&
!
film
.
getEnroll_type_name
().
equals
(
filmBase
.
getEnroll_type_name
())
&&
!
reviewService
.
isBeginReview
(
filmBase
.
getId
());
filmService
.
updateFilmBase
(
filmBase
);
if
(
isInitReview
)
{
if
(
isBeginReview
)
{
if
(
film
.
getEnroll_type_name
()
!=
null
&&
!
film
.
getEnroll_type_name
().
equals
(
filmBase
.
getEnroll_type_name
()))
{
throw
new
XRException
(
"审片流程已经开始,不能修改影片性质"
);
}
}
else
if
(
film
.
getApply_state
().
intValue
()
==
2
)
{
reviewService
.
rmReviewData
(
filmBase
.
getId
());
reviewService
.
toFirstRound
(
filmBase
.
getId
());
}
else
{
throw
new
XRException
(
"影片已经进入审片流程,不能修改影片性质"
);
}
}
filmService
.
initKeywords
(
filmBase
.
getId
());
...
...
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