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
5fb59b65
Commit
5fb59b65
authored
Feb 26, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
6a57e180
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
33 deletions
+31
-33
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+25
-29
FilmController.java
src/main/java/com/egolm/film/api/web/FilmController.java
+6
-4
No files found.
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
5fb59b65
...
@@ -274,38 +274,34 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -274,38 +274,34 @@ public class ReviewServiceImpl implements ReviewService {
@Override
@Override
@Transactional
@Transactional
public
void
toFirstRound
(
Long
member_film_id
)
{
public
void
toFirstRound
(
Long
member_film_id
)
{
Integer
count
=
jdbcTemplate
.
queryForInt
(
"select count(id) from fc_review where film_id = ?"
,
member_film_id
);
this
.
rmReviewData
(
member_film_id
);
if
(
count
==
0
)
{
List
<
Fc_member_film_enroll
>
enrolls
=
filmService
.
queryFilmEnrollList
(
member_film_id
);
List
<
Fc_member_film_enroll
>
enrolls
=
filmService
.
queryFilmEnrollList
(
member_film_id
);
Integer
enroll_type_id
=
null
;
Integer
enroll_type_id
=
null
;
for
(
Fc_member_film_enroll
enroll
:
enrolls
)
{
for
(
Fc_member_film_enroll
enroll
:
enrolls
)
{
Integer
enroll_type_id_tmp
=
enroll
.
getEnroll_type_id
();
Integer
enroll_type_id_tmp
=
enroll
.
getEnroll_type_id
();
if
(
enroll_type_id_tmp
==
1
||
enroll_type_id_tmp
==
2
)
{
if
(
enroll_type_id_tmp
==
1
||
enroll_type_id_tmp
==
2
)
{
if
(
enroll_type_id
==
null
||
enroll_type_id
==
enroll_type_id_tmp
)
{
if
(
enroll_type_id
==
null
||
enroll_type_id
==
enroll_type_id_tmp
)
{
enroll_type_id
=
enroll_type_id_tmp
;
enroll_type_id
=
enroll_type_id_tmp
;
}
else
{
}
else
{
throw
new
XRException
(
"申报影片"
+
member_film_id
+
"中同时包含亚新和金爵流程"
);
throw
new
XRException
(
"申报影片"
+
member_film_id
+
"中同时包含亚新和金爵流程"
);
}
}
}
}
}
if
(
enroll_type_id
==
null
)
{
enroll_type_id
=
4
;
}
Date
now
=
new
Date
();
Fc_review
review
=
new
Fc_review
();
review
.
setFilm_id
(
member_film_id
.
intValue
());
review
.
setEnroll_type_id
(
enroll_type_id
);
review
.
setReview_round
(
0
);
review
.
setPush_time
(
now
);
review
.
setAllot_state
(
0
);
review
.
setOpt_state
(
2
);
review
.
setReview_state
(
0
);
review
.
setCreate_time
(
now
);
review
.
setFrom_round
(
0
);
jdbcTemplate
.
save
(
review
);
}
else
{
throw
new
XRException
(
"该影片已存在审片流程"
);
}
}
if
(
enroll_type_id
==
null
)
{
enroll_type_id
=
4
;
}
Date
now
=
new
Date
();
Fc_review
review
=
new
Fc_review
();
review
.
setFilm_id
(
member_film_id
.
intValue
());
review
.
setEnroll_type_id
(
enroll_type_id
);
review
.
setReview_round
(
0
);
review
.
setPush_time
(
now
);
review
.
setAllot_state
(
0
);
review
.
setOpt_state
(
2
);
review
.
setReview_state
(
0
);
review
.
setCreate_time
(
now
);
review
.
setFrom_round
(
0
);
jdbcTemplate
.
save
(
review
);
}
}
public
void
toRound
(
Integer
review_id
,
Integer
review_round
)
{
public
void
toRound
(
Integer
review_id
,
Integer
review_round
)
{
...
...
src/main/java/com/egolm/film/api/web/FilmController.java
View file @
5fb59b65
...
@@ -182,14 +182,16 @@ public class FilmController {
...
@@ -182,14 +182,16 @@ public class FilmController {
String
create_ip
=
WebMvcConfig
.
getRemoteIp
();
String
create_ip
=
WebMvcConfig
.
getRemoteIp
();
filmService
.
saveCreateBase
(
filmBase
.
getId
(),
admin_id
,
member_id
,
create_ip
);
filmService
.
saveCreateBase
(
filmBase
.
getId
(),
admin_id
,
member_id
,
create_ip
);
}
else
{
}
else
{
boolean
isBeginReview
=
reviewService
.
isBeginReview
(
filmBase
.
getId
());
Fc_member_film
film
=
filmService
.
queryMemberFilmById
(
filmBase
.
getId
());
Fc_member_film
film
=
filmService
.
queryMemberFilmById
(
filmBase
.
getId
());
boolean
isInitReview
=
film
.
getEnroll_type_name
()
!=
null
&&
!
film
.
getEnroll_type_name
().
equals
(
filmBase
.
getEnroll_type_name
())
&&
!
reviewService
.
isBeginReview
(
filmBase
.
getId
());
filmService
.
updateFilmBase
(
filmBase
);
filmService
.
updateFilmBase
(
filmBase
);
if
(
isInitReview
)
{
if
(
isBeginReview
)
{
if
(
film
.
getEnroll_type_name
()
!=
null
&&
!
film
.
getEnroll_type_name
().
equals
(
filmBase
.
getEnroll_type_name
()))
{
throw
new
XRException
(
"审片流程已经开始,不能修改影片性质"
);
}
}
else
if
(
film
.
getApply_state
().
intValue
()
==
2
)
{
reviewService
.
rmReviewData
(
filmBase
.
getId
());
reviewService
.
rmReviewData
(
filmBase
.
getId
());
reviewService
.
toFirstRound
(
filmBase
.
getId
());
reviewService
.
toFirstRound
(
filmBase
.
getId
());
}
else
{
throw
new
XRException
(
"影片已经进入审片流程,不能修改影片性质"
);
}
}
}
}
filmService
.
initKeywords
(
filmBase
.
getId
());
filmService
.
initKeywords
(
filmBase
.
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