Commit cf40eebc authored by Quxl's avatar Quxl

x

parent 076ba61e
......@@ -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));
......
......@@ -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();
}
}
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