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
6f2ff710
Commit
6f2ff710
authored
Dec 21, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
3c700d74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
8 deletions
+23
-8
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+23
-8
No files found.
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
6f2ff710
...
...
@@ -327,13 +327,13 @@ public class ReviewServiceImpl implements ReviewService {
System
.
out
.
println
(
new
ReviewServiceImpl
().
reviewStateElection
(
records
));
}
private
void
transfer_4_
Flow
(
Fc_review
review
)
{
private
void
transfer_4_
flow_4
(
Fc_review
review
)
{
Date
now
=
new
Date
();
jdbcTemplate
.
executeUpdate
(
"update fc_review set opt_state = 3, review_state = 2 where id = ?"
,
review
.
getId
());
Fc_review
review_new
=
new
Fc_review
();
review_new
.
setFilm_id
(
review
.
getFilm_id
());
review_new
.
setEnroll_type_id
(
4
);
review_new
.
setReview_round
(
1
);
review_new
.
setReview_round
(
4
);
review_new
.
setPush_time
(
now
);
review_new
.
setAllot_state
(
0
);
review_new
.
setOpt_state
(
0
);
...
...
@@ -342,6 +342,21 @@ public class ReviewServiceImpl implements ReviewService {
jdbcTemplate
.
save
(
review
);
}
private
void
transfer_4_flow_5
(
Fc_review
review
)
{
Date
now
=
new
Date
();
jdbcTemplate
.
executeUpdate
(
"update fc_review set opt_state = 3, review_state = 2 where id = ?"
,
review
.
getId
());
Fc_review
review_new
=
new
Fc_review
();
review_new
.
setFilm_id
(
review
.
getFilm_id
());
review_new
.
setEnroll_type_id
(
4
);
review_new
.
setReview_round
(
5
);
review_new
.
setPush_time
(
now
);
review_new
.
setAllot_state
(
0
);
review_new
.
setOpt_state
(
3
);
review_new
.
setReview_state
(
1
);
review_new
.
setCreate_time
(
now
);
jdbcTemplate
.
save
(
review
);
}
private
Integer
queryRoundReviewCount
(
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
);
}
...
...
@@ -425,7 +440,7 @@ public class ReviewServiceImpl implements ReviewService {
if
(
review_state
.
intValue
()
==
3
)
{
//参赛,等待管理员分配进入下一轮评选
jdbcTemplate
.
executeUpdate
(
"update fc_review set opt_state = 2, review_state = 3 where id = ?"
,
review
.
getId
());
}
else
if
(
review_state
.
intValue
()
==
5
)
{
//参展,结束当前流程,启动新参展流程
this
.
transfer_4_
Flow
(
review
);
this
.
transfer_4_
flow_4
(
review
);
}
else
{
throw
new
XRException
(
"亚新第2轮审片结论错误"
);
}
...
...
@@ -445,7 +460,7 @@ public class ReviewServiceImpl implements ReviewService {
if
(
review_state
.
intValue
()
==
3
)
{
//参赛,自动进入下一轮评选
this
.
toNextRound
(
review
.
getId
());
}
else
if
(
review_state
.
intValue
()
==
5
)
{
//参展,结束当前流程,启动新参展流程
this
.
transfer_4_
Flow
(
review
);
this
.
transfer_4_
flow_5
(
review
);
}
else
{
throw
new
XRException
(
"亚新第5轮审片结论错误"
);
}
...
...
@@ -488,7 +503,7 @@ public class ReviewServiceImpl implements ReviewService {
if
(
review_state
.
intValue
()
==
3
)
{
this
.
toNextRound
(
review
.
getId
());
}
else
if
(
review_state
.
intValue
()
==
5
)
{
//参展,结束当前流程,启动新参展流程
this
.
transfer_4_
Flow
(
review
);
this
.
transfer_4_
flow_5
(
review
);
}
else
{
throw
new
XRException
(
"金爵短片5轮审片结论错误"
);
}
...
...
@@ -506,7 +521,7 @@ public class ReviewServiceImpl implements ReviewService {
if
(
review_state
.
intValue
()
==
3
||
review_state
.
intValue
()
==
4
)
{
//参赛 //参赛备选
this
.
toNextRound
(
review
.
getId
());
}
else
if
(
review_state
.
intValue
()
==
5
)
{
//参展,结束当前流程,启动新参展流程
this
.
transfer_4_
Flow
(
review
);
this
.
transfer_4_
flow_4
(
review
);
}
else
{
throw
new
XRException
(
"金爵长片2轮审片结论错误"
);
}
...
...
@@ -514,7 +529,7 @@ public class ReviewServiceImpl implements ReviewService {
if
(
review_state
.
intValue
()
==
3
)
{
this
.
toNextRound
(
review
.
getId
());
}
else
if
(
review_state
.
intValue
()
==
5
)
{
//参展,结束当前流程,启动新参展流程
this
.
transfer_4_
Flow
(
review
);
this
.
transfer_4_
flow_4
(
review
);
}
else
{
throw
new
XRException
(
"金爵长片3轮审片结论错误"
);
}
...
...
@@ -528,7 +543,7 @@ public class ReviewServiceImpl implements ReviewService {
if
(
review_state
.
intValue
()
==
3
)
{
this
.
toNextRound
(
review
.
getId
());
}
else
if
(
review_state
.
intValue
()
==
5
)
{
//参展,结束当前流程,启动新参展流程
this
.
transfer_4_
Flow
(
review
);
this
.
transfer_4_
flow_5
(
review
);
}
else
{
throw
new
XRException
(
"金爵长片5轮审片结论错误"
);
}
...
...
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