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
610fc05a
Commit
610fc05a
authored
Feb 18, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
e7371ba4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+6
-2
No files found.
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
610fc05a
...
@@ -368,6 +368,9 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -368,6 +368,9 @@ public class ReviewServiceImpl implements ReviewService {
jdbcTemplate
.
executeUpdate
(
"update fc_review set opt_state = 3, review_state = 2 where id = ?"
,
review
.
getId
());
jdbcTemplate
.
executeUpdate
(
"update fc_review set opt_state = 3, review_state = 2 where id = ?"
,
review
.
getId
());
}
else
if
(
reviewState
==
-
1
)
{
//争议
}
else
if
(
reviewState
==
-
1
)
{
//争议
jdbcTemplate
.
executeUpdate
(
"update fc_review set opt_state = 1, allot_state = 0 where id = ?"
,
review
.
getId
());
jdbcTemplate
.
executeUpdate
(
"update fc_review set opt_state = 1, allot_state = 0 where id = ?"
,
review
.
getId
());
if
(
enrollType
==
2
&&
(
reviewRound
==
2
||
reviewRound
==
3
))
{
this
.
createAsiaNewReport
(
review
.
getId
().
intValue
(),
reviewRound
);
}
}
else
{
}
else
{
jdbcTemplate
.
executeUpdate
(
"update fc_review set opt_state = 2, review_state = ? where id = ?"
,
reviewState
,
review
.
getId
());
jdbcTemplate
.
executeUpdate
(
"update fc_review set opt_state = 2, review_state = ? where id = ?"
,
reviewState
,
review
.
getId
());
if
(
enrollType
==
1
)
{
if
(
enrollType
==
1
)
{
...
@@ -408,8 +411,7 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -408,8 +411,7 @@ public class ReviewServiceImpl implements ReviewService {
public
void
createAsiaNewReport
(
int
review_id
,
int
review_round
)
{
public
void
createAsiaNewReport
(
int
review_id
,
int
review_round
)
{
Fc_review
review
=
jdbcTemplate
.
queryForBean
(
"select * from fc_review where id = ?"
,
Fc_review
.
class
,
review_id
);
Fc_review
review
=
jdbcTemplate
.
queryForBean
(
"select * from fc_review where id = ?"
,
Fc_review
.
class
,
review_id
);
int
enrollType
=
review
.
getEnroll_type_id
();
int
enrollType
=
review
.
getEnroll_type_id
();
int
optState
=
review
.
getOpt_state
();
if
(
enrollType
==
2
)
{
if
(
enrollType
==
2
&&
((
review_round
==
2
&&
optState
==
2
||
review_round
>
2
)
||
(
review_round
==
3
&&
optState
==
2
||
review_round
>
3
)))
{
Fc_member_film
film
=
filmService
.
queryMemberFilmById
(
review
.
getFilm_id
().
longValue
());
Fc_member_film
film
=
filmService
.
queryMemberFilmById
(
review
.
getFilm_id
().
longValue
());
Fc_report_asia_new
asiaNew
=
new
Fc_report_asia_new
();
Fc_report_asia_new
asiaNew
=
new
Fc_report_asia_new
();
asiaNew
.
setReview_id
(
review_id
);
asiaNew
.
setReview_id
(
review_id
);
...
@@ -472,6 +474,7 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -472,6 +474,7 @@ public class ReviewServiceImpl implements ReviewService {
throw
new
XException
(
"生成亚新榜单中间结果错误"
,
e
);
throw
new
XException
(
"生成亚新榜单中间结果错误"
,
e
);
}
}
}
}
jdbcTemplate
.
executeUpdate
(
"delete from fc_report_asia_new where review_id = ?"
,
asiaNew
.
getReview_id
());
jdbcTemplate
.
save
(
asiaNew
);
jdbcTemplate
.
save
(
asiaNew
);
}
}
}
}
...
@@ -656,6 +659,7 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -656,6 +659,7 @@ public class ReviewServiceImpl implements ReviewService {
@Override
@Override
public
void
toType4
(
Integer
review_id
)
{
public
void
toType4
(
Integer
review_id
)
{
jdbcTemplate
.
executeUpdate
(
"delete from fc_report_asia_new where review_id = ?"
,
review_id
);
jdbcTemplate
.
executeUpdate
(
"update fc_review set enroll_type_id = 4 where id = ?"
,
review_id
);
jdbcTemplate
.
executeUpdate
(
"update fc_review set enroll_type_id = 4 where id = ?"
,
review_id
);
}
}
...
...
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