Commit 16d2232e authored by Quxl's avatar Quxl

x

parent aaed1e6e
...@@ -192,19 +192,15 @@ public class AdminReviewController { ...@@ -192,19 +192,15 @@ public class AdminReviewController {
ru.setReview_text_3(review_text_3); ru.setReview_text_3(review_text_3);
ru.setReview_text_4(review_text_4); ru.setReview_text_4(review_text_4);
List<Fc_review_record_ext> exts = new ArrayList<Fc_review_record_ext>(); List<Fc_review_record_ext> exts = new ArrayList<Fc_review_record_ext>();
if(ext_title != null && ext_score != null) { if(ext_score != null) {
if(ext_title.length == ext_score.length) { for(int i = 0; i < ext_score.length; i++) {
for(int i = 0; i < ext_title.length; i++) { Fc_review_record_ext ext = new Fc_review_record_ext();
Fc_review_record_ext ext = new Fc_review_record_ext(); ext.setRecord_id(ru.getId());
ext.setRecord_id(ru.getId()); ext.setExt_title(ext_title[i]);
ext.setExt_title(ext_title[i]); ext.setExt_score(ext_score[i]);
ext.setExt_score(ext_score[i]); ext.setExt_type(ext_type[i]);
ext.setExt_type(ext_type[i]); ext.setExt_name(ext_name[i]);
ext.setExt_name(ext_name[i]); exts.add(ext);
exts.add(ext);
}
} else {
throw new XException("评奖项目参数数量错误");
} }
} }
reviewService.saveReviewRecord(ru, exts); reviewService.saveReviewRecord(ru, exts);
......
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