Commit 44858b87 authored by Quxl's avatar Quxl

x

parent 1e8a51af
...@@ -135,15 +135,15 @@ public class AdminReviewController { ...@@ -135,15 +135,15 @@ public class AdminReviewController {
@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"),
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="review_round", value="分配评委的审片环节"), @ApiImplicitParam(paramType="query", dataType="int", required=true, name="review_round", value="分配评委的审片环节"),
@ApiImplicitParam(paramType="query", dataType="boolean", required=true, name="is_cancel", value="是否取消分配", allowMultiple=true), @ApiImplicitParam(paramType="query", dataType="string", required=true, name="is_cancel", value="是否取消分配", allowMultiple=true),
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="user_id", value="审片评委ID", allowMultiple=true), @ApiImplicitParam(paramType="query", dataType="int", required=true, name="user_id", value="审片评委ID", allowMultiple=true),
}) })
public Object allot(Boolean[] is_cancel, Integer review_id, Integer review_round, Integer[] user_id) { public Object allot(String[] is_cancel, Integer review_id, Integer review_round, Integer[] user_id) {
List<Integer> saveList = new ArrayList<Integer>(); List<Integer> saveList = new ArrayList<Integer>();
List<Integer> cancelList = new ArrayList<Integer>(); List<Integer> cancelList = new ArrayList<Integer>();
if(is_cancel != null) { if(is_cancel != null) {
for(int i = 0; i < is_cancel.length; i++) { for(int i = 0; i < is_cancel.length; i++) {
Boolean boo = is_cancel[i]; Boolean boo = Util.objTo(is_cancel[i], Boolean.class);
if(boo) { if(boo) {
cancelList.add(user_id[i]); cancelList.add(user_id[i]);
} else { } else {
......
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