Commit 5abd32b7 authored by Quxl's avatar Quxl

x

parent 0a713dd1
......@@ -21,6 +21,7 @@ import com.egolm.film.api.service.ReviewService;
import com.egolm.film.bean.Fc_admin;
import com.egolm.film.bean.Fc_review_record;
import com.egolm.film.bean.Fc_review_record_ext;
import com.egolm.film.config.XRException;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
......@@ -152,7 +153,7 @@ public class AdminReviewController {
Integer[] user_id) {
List<Integer> saveList = new ArrayList<Integer>();
List<Integer> cancelList = new ArrayList<Integer>();
if(is_cancel != null) {
if(is_cancel != null && user_id != null && is_cancel.length == user_id.length) {
for(int i = 0; i < is_cancel.length; i++) {
Boolean boo = Util.objTo(is_cancel[i], Boolean.class);
if(boo) {
......@@ -161,6 +162,8 @@ public class AdminReviewController {
saveList.add(user_id[i]);
}
}
} else {
throw new XRException("参数不平衡");
}
if(saveList.size() > 0) {
reviewService.saveReviewRecordIfNotExists(review_id, review_round, saveList.toArray(new Integer[saveList.size()]));
......
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