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
a4ce646b
Commit
a4ce646b
authored
Dec 12, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
396f2daa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
VoteServiceImpl.java
...java/com/egolm/film/api/service/impl/VoteServiceImpl.java
+10
-2
No files found.
src/main/java/com/egolm/film/api/service/impl/VoteServiceImpl.java
View file @
a4ce646b
...
...
@@ -38,7 +38,6 @@ public class VoteServiceImpl implements VoteService {
}
@Override
@Transactional
public
void
toNextRound
(
Integer
review_id
)
{
Integer
count
=
jdbcTemplate
.
queryForInt
(
"select count(*) from fc_review_record where review_id = ?"
,
review_id
);
Integer
allot_state
=
count
>
0
?
1
:
0
;
...
...
@@ -92,13 +91,22 @@ public class VoteServiceImpl implements VoteService {
Integer
review_round
=
review
.
getReview_round
();
Integer
review_state
=
this
.
reviewStateElection
(
records
);
if
(
review_state
==
null
)
{
//没有审完
return
;
}
else
if
(
review_state
==
-
1
)
{
//审片结果有争议,等待增加新评委或管理员决定本轮最终结果
jdbcTemplate
.
executeUpdate
(
"update fc_review set state = 1 where id = ?"
,
review
.
getId
());
}
else
if
((
enroll_type_id
.
intValue
()
==
2
||
enroll_type_id
.
intValue
()
==
4
)
&&
(
review_round
==
2
||
review_round
==
3
))
{
//理员决定是否晋级下一轮评选
jdbcTemplate
.
executeUpdate
(
"update fc_review set state = 2 where id = ?"
,
review
.
getId
());
}
else
{
this
.
toNextRound
(
review
.
getId
());
//第一轮审片完成,进入下一轮
if
(
review_round
<
6
)
{
//自动进入下一轮评选
this
.
toNextRound
(
review
.
getId
());
}
else
{
//已经是最后一轮评选
jdbcTemplate
.
executeUpdate
(
"update fc_review set state = 3 where id = ?"
,
review
.
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