Commit e9ac9bf0 authored by Quxl's avatar Quxl

x

parent b304a3f7
......@@ -139,10 +139,11 @@ public class AdminReviewController {
@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) {
if(!is_cancel) {
reviewService.saveReviewRecordIfNotExists(review_id, review_round, user_id);
} else {
is_cancel = is_cancel == null ? false : is_cancel;
if(is_cancel) {
reviewService.deleteReviewRecord(review_id, review_round, user_id);
} else {
reviewService.saveReviewRecordIfNotExists(review_id, review_round, user_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