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
278eaa5b
Commit
278eaa5b
authored
Jan 07, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
bfcb94b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
ReviewService.java
src/main/java/com/egolm/film/api/service/ReviewService.java
+4
-0
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+9
-0
AdminReviewController.java
...a/com/egolm/film/api/web/admin/AdminReviewController.java
+15
-1
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
View file @
278eaa5b
...
@@ -69,6 +69,8 @@ public interface ReviewService {
...
@@ -69,6 +69,8 @@ public interface ReviewService {
Page
page
);
Page
page
);
Fc_review
queryReview
(
Integer
film_id
,
Integer
enroll_type_id
);
Fc_review
queryReview
(
Integer
film_id
,
Integer
enroll_type_id
);
Fc_review
queryReviewById
(
Integer
review_id
);
void
saveDoubtfulList
(
List
<
Fc_review_doubtful
>
doubtfulList
);
void
saveDoubtfulList
(
List
<
Fc_review_doubtful
>
doubtfulList
);
...
@@ -90,6 +92,8 @@ public interface ReviewService {
...
@@ -90,6 +92,8 @@ public interface ReviewService {
void
tryNextRound
(
Integer
review_id
);
void
tryNextRound
(
Integer
review_id
);
void
save
(
Object
obj
);
void
saveReviewRecordIfNotExists
(
Integer
review_id
,
Integer
review_round
,
Integer
[]
user_id
);
void
saveReviewRecordIfNotExists
(
Integer
review_id
,
Integer
review_round
,
Integer
[]
user_id
);
void
deleteReviewRecord
(
Integer
review_id
,
Integer
review_round
,
Integer
[]
user_id
);
void
deleteReviewRecord
(
Integer
review_id
,
Integer
review_round
,
Integer
[]
user_id
);
...
...
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
278eaa5b
...
@@ -264,6 +264,11 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -264,6 +264,11 @@ public class ReviewServiceImpl implements ReviewService {
return
jdbcTemplate
.
queryForBean
(
sql
,
Fc_review
.
class
,
film_id
,
enroll_type_id
);
return
jdbcTemplate
.
queryForBean
(
sql
,
Fc_review
.
class
,
film_id
,
enroll_type_id
);
}
}
@Override
public
Fc_review
queryReviewById
(
Integer
review_id
)
{
return
jdbcTemplate
.
queryForBean
(
"select * from fc_review where id = ?"
,
Fc_review
.
class
,
review_id
);
}
@Override
@Override
public
void
saveDoubtfulList
(
List
<
Fc_review_doubtful
>
doubtfulList
)
{
public
void
saveDoubtfulList
(
List
<
Fc_review_doubtful
>
doubtfulList
)
{
jdbcTemplate
.
batchSave
(
doubtfulList
);
jdbcTemplate
.
batchSave
(
doubtfulList
);
...
@@ -610,6 +615,10 @@ public class ReviewServiceImpl implements ReviewService {
...
@@ -610,6 +615,10 @@ public class ReviewServiceImpl implements ReviewService {
jdbcTemplate
.
save
(
history
);
jdbcTemplate
.
save
(
history
);
}
}
public
void
save
(
Object
obj
)
{
jdbcTemplate
.
save
(
obj
);
}
@Override
@Override
@Transactional
@Transactional
public
void
saveReviewRecordIfNotExists
(
Integer
review_id
,
Integer
review_round
,
Integer
[]
user_id
)
{
public
void
saveReviewRecordIfNotExists
(
Integer
review_id
,
Integer
review_round
,
Integer
[]
user_id
)
{
...
...
src/main/java/com/egolm/film/api/web/admin/AdminReviewController.java
View file @
278eaa5b
package
com
.
egolm
.
film
.
api
.
web
.
admin
;
package
com
.
egolm
.
film
.
api
.
web
.
admin
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -19,6 +20,8 @@ import com.egolm.film.api.service.AdminUserService;
...
@@ -19,6 +20,8 @@ import com.egolm.film.api.service.AdminUserService;
import
com.egolm.film.api.service.FilmService
;
import
com.egolm.film.api.service.FilmService
;
import
com.egolm.film.api.service.ReviewService
;
import
com.egolm.film.api.service.ReviewService
;
import
com.egolm.film.bean.Fc_admin
;
import
com.egolm.film.bean.Fc_admin
;
import
com.egolm.film.bean.Fc_review
;
import
com.egolm.film.bean.Fc_review_history
;
import
com.egolm.film.bean.Fc_review_record
;
import
com.egolm.film.bean.Fc_review_record
;
import
com.egolm.film.bean.Fc_review_record_ext
;
import
com.egolm.film.bean.Fc_review_record_ext
;
import
com.egolm.film.config.XRException
;
import
com.egolm.film.config.XRException
;
...
@@ -187,13 +190,24 @@ public class AdminReviewController {
...
@@ -187,13 +190,24 @@ public class AdminReviewController {
}
}
@ResponseBody
@ResponseBody
@Transactional
@PostMapping
(
"toNextRound"
)
@PostMapping
(
"toNextRound"
)
@ApiOperation
(
"进入下一轮审片"
)
@ApiOperation
(
"进入下一轮审片"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"review_id"
,
value
=
"审片主表ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"review_id"
,
value
=
"审片主表ID"
),
})
})
public
Object
toNextRound
(
Integer
review_id
)
{
public
Object
toNextRound
(
Integer
review_id
)
{
Fc_review
review
=
reviewService
.
queryReviewById
(
review_id
);
Fc_review_history
history
=
new
Fc_review_history
();
history
.
setReview_id
(
review
.
getId
());
history
.
setEnroll_type_id
(
review
.
getEnroll_type_id
());
history
.
setFilm_id
(
review
.
getFilm_id
());
history
.
setReview_round
(
review
.
getReview_round
());
history
.
setReview_state
(
review
.
getReview_state
());
history
.
setCreate_time
(
new
Date
());
history
.
setOpt_state
(
review
.
getOpt_state
());
reviewService
.
toNextRound
(
review_id
);
reviewService
.
toNextRound
(
review_id
);
reviewService
.
save
(
history
);
return
Rjx
.
jsonOk
();
return
Rjx
.
jsonOk
();
}
}
...
@@ -206,7 +220,7 @@ public class AdminReviewController {
...
@@ -206,7 +220,7 @@ public class AdminReviewController {
})
})
public
Object
toNextRoundBatch
(
Integer
[]
review_id
)
{
public
Object
toNextRoundBatch
(
Integer
[]
review_id
)
{
for
(
Integer
id
:
review_id
)
{
for
(
Integer
id
:
review_id
)
{
reviewService
.
toNextRound
(
id
);
this
.
toNextRound
(
id
);
}
}
return
Rjx
.
jsonOk
();
return
Rjx
.
jsonOk
();
}
}
...
...
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