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
cf40eebc
Commit
cf40eebc
authored
Dec 14, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
076ba61e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+1
-1
WebUtilController.java
.../java/com/egolm/film/api/web/admin/WebUtilController.java
+8
-5
No files found.
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
cf40eebc
...
...
@@ -225,7 +225,7 @@ public class ReviewServiceImpl implements ReviewService {
Map
<
Integer
,
Integer
>
map
=
new
HashMap
<
Integer
,
Integer
>();
for
(
Fc_review_record
record
:
records
)
{
Integer
review_state
=
record
.
getReview_state
();;
if
(
review_state
.
intValue
()
<=
1
)
{
if
(
review_state
==
null
)
{
return
null
;
}
map
.
put
(
review_state
,
map
.
get
(
review_state
)
==
null
?
1
:
(
map
.
get
(
review_state
)
+
1
));
...
...
src/main/java/com/egolm/film/api/web/admin/WebUtilController.java
View file @
cf40eebc
...
...
@@ -8,6 +8,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.common.jdbc.JdbcTemplate
;
import
com.egolm.film.api.service.ReviewService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -20,12 +21,14 @@ public class WebUtilController {
@Autowired
JdbcTemplate
jdbcTemplate
;
@ResponseBody
@PostMapping
(
"init"
)
@ApiOperation
(
"生产环境部署时,已初审完部分数据的审片初始化工作"
)
public
Object
initPassList
()
{
@Autowired
ReviewService
service
;
@ResponseBody
@PostMapping
(
"tryNextRound"
)
@ApiOperation
(
"尝试进入下一轮评选"
)
public
Object
tryNextRound
(
Integer
review_id
)
{
service
.
tryNextRound
(
review_id
);
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