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
b9475773
Commit
b9475773
authored
Feb 20, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
7fdbc579
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
ReviewService.java
src/main/java/com/egolm/film/api/service/ReviewService.java
+2
-0
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+5
-0
FilmController.java
src/main/java/com/egolm/film/api/web/FilmController.java
+10
-0
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
View file @
b9475773
...
@@ -133,5 +133,7 @@ public interface ReviewService {
...
@@ -133,5 +133,7 @@ public interface ReviewService {
List
<
Map
<
String
,
Object
>>
queryDisputeCount
();
List
<
Map
<
String
,
Object
>>
queryDisputeCount
();
boolean
isBeginReview
(
Long
film_id
);
}
}
\ No newline at end of file
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
b9475773
...
@@ -682,4 +682,9 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -682,4 +682,9 @@ public class ReviewServiceImpl implements ReviewService {
return
jdbcTemplate
.
queryForList
(
sql
);
return
jdbcTemplate
.
queryForList
(
sql
);
}
}
@Override
public
boolean
isBeginReview
(
Long
film_id
)
{
return
jdbcTemplate
.
queryForInt
(
"select count(rr.id) from fc_review_record rr, fc_review r where rr.review_id = r.id and r.film_id = "
+
film_id
)
>
0
;
}
}
}
\ No newline at end of file
src/main/java/com/egolm/film/api/web/FilmController.java
View file @
b9475773
...
@@ -23,6 +23,7 @@ import com.egolm.film.bean.Fc_member_film_show;
...
@@ -23,6 +23,7 @@ import com.egolm.film.bean.Fc_member_film_show;
import
com.egolm.film.bean.Fc_review
;
import
com.egolm.film.bean.Fc_review
;
import
com.egolm.film.bean.model.Fc_member_film_base_model
;
import
com.egolm.film.bean.model.Fc_member_film_base_model
;
import
com.egolm.film.config.WebMvcConfig
;
import
com.egolm.film.config.WebMvcConfig
;
import
com.egolm.film.config.XRException
;
import
com.egolm.film.model.LoginToken
;
import
com.egolm.film.model.LoginToken
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -161,6 +162,7 @@ public class FilmController {
...
@@ -161,6 +162,7 @@ public class FilmController {
}
}
@ResponseBody
@ResponseBody
@Transactional
@PostMapping
(
"save_film_base"
)
@PostMapping
(
"save_film_base"
)
@ApiOperation
(
"保存电影主要信息"
)
@ApiOperation
(
"保存电影主要信息"
)
public
Object
update_base
(
Fc_member_film_base_model
filmBase
)
{
public
Object
update_base
(
Fc_member_film_base_model
filmBase
)
{
...
@@ -179,6 +181,14 @@ public class FilmController {
...
@@ -179,6 +181,14 @@ 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
{
boolean
isBeginReview
=
reviewService
.
isBeginReview
(
filmBase
.
getId
());
if
(!
isBeginReview
)
{
reviewService
.
rmReviewData
(
filmBase
.
getId
());
reviewService
.
toFirstRound
(
filmBase
.
getId
());
}
else
{
throw
new
XRException
(
"影片已经进入审片流程,不能修改影片性质"
);
}
}
}
filmService
.
initKeywords
(
filmBase
.
getId
());
filmService
.
initKeywords
(
filmBase
.
getId
());
return
Rjx
.
jsonOk
().
set
(
"id"
,
filmBase
.
getId
());
return
Rjx
.
jsonOk
().
set
(
"id"
,
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