Commit cf40eebc authored by Quxl's avatar Quxl

x

parent 076ba61e
...@@ -225,7 +225,7 @@ public class ReviewServiceImpl implements ReviewService { ...@@ -225,7 +225,7 @@ public class ReviewServiceImpl implements ReviewService {
Map<Integer, Integer> map = new HashMap<Integer, Integer>(); Map<Integer, Integer> map = new HashMap<Integer, Integer>();
for(Fc_review_record record : records) { for(Fc_review_record record : records) {
Integer review_state = record.getReview_state();; Integer review_state = record.getReview_state();;
if(review_state.intValue() <= 1) { if(review_state == null) {
return null; return null;
} }
map.put(review_state, map.get(review_state) == null ? 1 : (map.get(review_state) + 1)); map.put(review_state, map.get(review_state) == null ? 1 : (map.get(review_state) + 1));
......
...@@ -8,6 +8,7 @@ import org.springframework.web.bind.annotation.ResponseBody; ...@@ -8,6 +8,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import com.egolm.common.bean.Rjx; import com.egolm.common.bean.Rjx;
import com.egolm.common.jdbc.JdbcTemplate; import com.egolm.common.jdbc.JdbcTemplate;
import com.egolm.film.api.service.ReviewService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
...@@ -20,12 +21,14 @@ public class WebUtilController { ...@@ -20,12 +21,14 @@ public class WebUtilController {
@Autowired @Autowired
JdbcTemplate jdbcTemplate; JdbcTemplate jdbcTemplate;
@Autowired
ReviewService service;
@ResponseBody @ResponseBody
@PostMapping("init") @PostMapping("tryNextRound")
@ApiOperation("生产环境部署时,已初审完部分数据的审片初始化工作") @ApiOperation("尝试进入下一轮评选")
public Object initPassList() { public Object tryNextRound(Integer review_id) {
service.tryNextRound(review_id);
return Rjx.jsonOk(); return Rjx.jsonOk();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment