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
3c700d74
Commit
3c700d74
authored
Dec 21, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
7b1cae75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+3
-3
No files found.
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
3c700d74
...
...
@@ -342,8 +342,8 @@ public class ReviewServiceImpl implements ReviewService {
jdbcTemplate
.
save
(
review
);
}
private
Integer
query
User
Count
(
Integer
review_id
,
Integer
review_round
)
{
return
jdbcTemplate
.
queryForInt
(
"select count(*) from fc_review_
round
where review_id = ? and review_round = ?"
,
review_id
,
review_round
);
private
Integer
query
RoundReview
Count
(
Integer
review_id
,
Integer
review_round
)
{
return
jdbcTemplate
.
queryForInt
(
"select count(*) from fc_review_
history
where review_id = ? and review_round = ?"
,
review_id
,
review_round
);
}
@Override
...
...
@@ -378,7 +378,7 @@ public class ReviewServiceImpl implements ReviewService {
jdbcTemplate
.
save
(
history
);
if
(
review_state
.
intValue
()
==
-
1
)
{
//争议
if
(
enroll_type_id
.
intValue
()
==
4
&&
review_round
.
intValue
()
==
4
&&
this
.
query
UserCount
(
review
.
getId
(),
review_round
)
>=
4
)
{
if
(
enroll_type_id
.
intValue
()
==
4
&&
review_round
.
intValue
()
==
4
&&
this
.
query
RoundReviewCount
(
review
.
getId
(),
review_round
)
>=
2
)
{
//展映把关已经产生两次争议,需要审片委员会介入
this
.
toNextRound
(
review
.
getId
());
}
else
if
(
enroll_type_id
.
intValue
()
==
4
&&
review_round
.
intValue
()
==
5
)
{
throw
new
XRException
(
"展映影片把关存争议,选片委员会介入后不允许产生有争议结论"
);
...
...
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