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
36a4bcb9
Commit
36a4bcb9
authored
Feb 28, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
9c8fb07c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
34 deletions
+35
-34
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+35
-34
No files found.
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
36a4bcb9
...
@@ -390,44 +390,45 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -390,44 +390,45 @@ public class ReviewServiceImpl implements ReviewService {
this
.
createAsiaNewReport
(
review
.
getId
().
intValue
(),
reviewRound
);
this
.
createAsiaNewReport
(
review
.
getId
().
intValue
(),
reviewRound
);
}
}
if
(
reviewState
==
0
)
{
if
(
reviewState
==
0
)
{
return
;
jdbcTemplate
.
executeUpdate
(
"update fc_review set opt_state = 0, review_state = 0 where id = ?"
,
review
.
getId
());
}
if
(
reviewState
==
2
)
{
//否决
jdbcTemplate
.
executeUpdate
(
"update fc_review set opt_state = 3, review_state = 2 where id = ?"
,
review
.
getId
());
}
else
if
(
reviewState
==
-
1
)
{
//争议
jdbcTemplate
.
executeUpdate
(
"update fc_review set opt_state = 1, allot_state = 0 where id = ?"
,
review
.
getId
());
}
else
{
}
else
{
jdbcTemplate
.
executeUpdate
(
"update fc_review set opt_state = 2, review_state = ? where id = ?"
,
reviewState
,
review
.
getId
());
if
(
reviewState
==
2
)
{
//否决
if
(
enrollType
==
1
)
{
jdbcTemplate
.
executeUpdate
(
"update fc_review set opt_state = 3, review_state = 2 where id = ?"
,
review
.
getId
());
if
(
reviewRound
==
6
&&
reviewState
==
1
)
{
}
else
if
(
reviewState
==
-
1
)
{
//争议
this
.
closeFlow
(
reviewState
,
review
.
getId
());
jdbcTemplate
.
executeUpdate
(
"update fc_review set opt_state = 1, allot_state = 0 where id = ?"
,
review
.
getId
());
}
else
if
(
reviewRound
==
5
&&
reviewState
==
5
)
{
}
else
{
this
.
toType4
(
review
.
getId
());
jdbcTemplate
.
executeUpdate
(
"update fc_review set opt_state = 2, review_state = ? where id = ?"
,
reviewState
,
review
.
getId
());
this
.
closeFlow
(
1
,
review
.
getId
());
if
(
enrollType
==
1
)
{
}
if
(
reviewRound
==
6
&&
reviewState
==
1
)
{
}
else
if
(
enrollType
==
2
)
{
this
.
closeFlow
(
reviewState
,
review
.
getId
());
if
(
reviewRound
==
6
&&
reviewState
==
1
)
{
}
else
if
(
reviewRound
==
5
&&
reviewState
==
5
)
{
this
.
closeFlow
(
reviewState
,
review
.
getId
());
this
.
toType4
(
review
.
getId
());
}
else
if
(
reviewRound
==
5
&&
reviewState
==
5
)
{
this
.
closeFlow
(
1
,
review
.
getId
());
this
.
toType4
(
review
.
getId
());
}
this
.
closeFlow
(
1
,
review
.
getId
());
}
else
if
(
enrollType
==
2
)
{
}
if
(
reviewRound
==
6
&&
reviewState
==
1
)
{
}
else
if
(
enrollType
==
4
)
{
this
.
closeFlow
(
reviewState
,
review
.
getId
());
if
((
reviewRound
==
4
||
reviewRound
==
5
)
&&
(
reviewState
==
1
||
reviewState
==
5
))
{
}
else
if
(
reviewRound
==
5
&&
reviewState
==
5
)
{
this
.
closeFlow
(
1
,
review
.
getId
());
this
.
toType4
(
review
.
getId
());
this
.
closeFlow
(
1
,
review
.
getId
());
}
}
else
if
(
enrollType
==
4
)
{
if
((
reviewRound
==
4
||
reviewRound
==
5
)
&&
(
reviewState
==
1
||
reviewState
==
5
))
{
this
.
closeFlow
(
1
,
review
.
getId
());
}
}
}
}
}
Integer
opt_state
=
jdbcTemplate
.
queryForInt
(
"select opt_state from fc_review where id = ?"
,
review
.
getId
());
Fc_review_history
history
=
new
Fc_review_history
();
history
.
setReview_id
(
review
.
getId
());
history
.
setEnroll_type_id
(
enrollType
);
history
.
setFilm_id
(
review
.
getFilm_id
());
history
.
setReview_round
(
reviewRound
);
history
.
setReview_state
(
reviewState
);
history
.
setCreate_time
(
new
Date
());
history
.
setOpt_state
(
opt_state
);
jdbcTemplate
.
save
(
history
);
}
}
Integer
opt_state
=
jdbcTemplate
.
queryForInt
(
"select opt_state from fc_review where id = ?"
,
review
.
getId
());
Fc_review_history
history
=
new
Fc_review_history
();
history
.
setReview_id
(
review
.
getId
());
history
.
setEnroll_type_id
(
enrollType
);
history
.
setFilm_id
(
review
.
getFilm_id
());
history
.
setReview_round
(
reviewRound
);
history
.
setReview_state
(
reviewState
);
history
.
setCreate_time
(
new
Date
());
history
.
setOpt_state
(
opt_state
);
jdbcTemplate
.
save
(
history
);
}
}
@Override
@Override
...
...
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