Commit 4ffdba2d authored by Quxl's avatar Quxl

x

parent 24a7c2af
...@@ -131,7 +131,7 @@ public class UserReviewController { ...@@ -131,7 +131,7 @@ public class UserReviewController {
@ApiImplicitParam(paramType = "query", dataType = "int", required = false, allowMultiple=true, name = "enroll_ext_id", value="参赛奖项ID"), @ApiImplicitParam(paramType = "query", dataType = "int", required = false, allowMultiple=true, name = "enroll_ext_id", value="参赛奖项ID"),
@ApiImplicitParam(paramType = "query", dataType = "double", required = false, allowMultiple=true, name = "enroll_ext_score", value="参赛奖项得分"), @ApiImplicitParam(paramType = "query", dataType = "double", required = false, allowMultiple=true, name = "enroll_ext_score", value="参赛奖项得分"),
}) })
public Object saveReviewRecord(Integer review_id, Integer review_state, Double review_score, String review_text, String review_text_1, String review_text_2, String review_text_3, String review_text_4, Integer[] enroll_ext_id, Double[]enroll_ext_score, String[] enroll_ext_text) { public Object saveReviewRecord(Integer review_id, Integer review_state, Double review_score, String review_text, String review_text_1, String review_text_2, String review_text_3, String review_text_4, Integer[] playatcor_id, Integer[] enroll_ext_id, Double[]enroll_ext_score) {
LoginToken token = tokenService.getToken(); LoginToken token = tokenService.getToken();
Integer user_id = (Integer)token.getId(); Integer user_id = (Integer)token.getId();
Fc_review_record ru = service.queryReviewRecord(user_id, review_id); Fc_review_record ru = service.queryReviewRecord(user_id, review_id);
...@@ -143,13 +143,13 @@ public class UserReviewController { ...@@ -143,13 +143,13 @@ public class UserReviewController {
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(enroll_ext_id != null && enroll_ext_score != null && enroll_ext_text != null && enroll_ext_id.length == enroll_ext_score.length && enroll_ext_score.length == enroll_ext_text.length) { if(enroll_ext_id != null && enroll_ext_score != null && playatcor_id != null && enroll_ext_id.length == enroll_ext_score.length && enroll_ext_score.length == playatcor_id.length) {
for(int i = 0; i < enroll_ext_id.length; i++) { for(int i = 0; i < enroll_ext_id.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.setEnroll_ext_id(enroll_ext_id[i]); ext.setEnroll_ext_id(enroll_ext_id[i]);
ext.setEnroll_ext_score(enroll_ext_score[i]); ext.setEnroll_ext_score(enroll_ext_score[i]);
ext.setEnroll_ext_text(enroll_ext_text[i]); ext.setPlayactor_id(playatcor_id[i]);
exts.add(ext); exts.add(ext);
} }
} else { } else {
......
...@@ -23,6 +23,11 @@ public class Fc_review_record_ext implements java.io.Serializable { ...@@ -23,6 +23,11 @@ public class Fc_review_record_ext implements java.io.Serializable {
*/ */
private Integer record_id; private Integer record_id;
/**
* 得奖人ID
*/
private Integer playactor_id;
/** /**
* 影片申报奖项ID * 影片申报奖项ID
*/ */
...@@ -33,11 +38,6 @@ public class Fc_review_record_ext implements java.io.Serializable { ...@@ -33,11 +38,6 @@ public class Fc_review_record_ext implements java.io.Serializable {
*/ */
private Double enroll_ext_score; private Double enroll_ext_score;
/**
* 评委审片结论
*/
private String enroll_ext_text;
/** /**
* 无参数构造方法 * 无参数构造方法
...@@ -50,16 +50,16 @@ public class Fc_review_record_ext implements java.io.Serializable { ...@@ -50,16 +50,16 @@ public class Fc_review_record_ext implements java.io.Serializable {
* 全参数构造方法 * 全参数构造方法
* @param id 影片ID * @param id 影片ID
* @param record_id 评委评审记录ID * @param record_id 评委评审记录ID
* @param playactor_id 得奖人ID
* @param enroll_ext_id 影片申报奖项ID * @param enroll_ext_id 影片申报奖项ID
* @param enroll_ext_score 影片申报奖项评分 * @param enroll_ext_score 影片申报奖项评分
* @param enroll_ext_text 评委审片结论
*/ */
public Fc_review_record_ext(Integer id, Integer record_id, Integer enroll_ext_id, Double enroll_ext_score, String enroll_ext_text) { public Fc_review_record_ext(Integer id, Integer record_id, Integer playactor_id, Integer enroll_ext_id, Double enroll_ext_score) {
this.id = id; this.id = id;
this.record_id = record_id; this.record_id = record_id;
this.playactor_id = playactor_id;
this.enroll_ext_id = enroll_ext_id; this.enroll_ext_id = enroll_ext_id;
this.enroll_ext_score = enroll_ext_score; this.enroll_ext_score = enroll_ext_score;
this.enroll_ext_text = enroll_ext_text;
} }
public void setId(Integer id) { public void setId(Integer id) {
...@@ -78,6 +78,14 @@ public class Fc_review_record_ext implements java.io.Serializable { ...@@ -78,6 +78,14 @@ public class Fc_review_record_ext implements java.io.Serializable {
return record_id; return record_id;
} }
public void setPlayactor_id(Integer playactor_id) {
this.playactor_id = playactor_id;
}
public Integer getPlayactor_id() {
return playactor_id;
}
public void setEnroll_ext_id(Integer enroll_ext_id) { public void setEnroll_ext_id(Integer enroll_ext_id) {
this.enroll_ext_id = enroll_ext_id; this.enroll_ext_id = enroll_ext_id;
} }
...@@ -94,13 +102,5 @@ public class Fc_review_record_ext implements java.io.Serializable { ...@@ -94,13 +102,5 @@ public class Fc_review_record_ext implements java.io.Serializable {
return enroll_ext_score; return enroll_ext_score;
} }
public void setEnroll_ext_text(String enroll_ext_text) {
this.enroll_ext_text = enroll_ext_text;
}
public String getEnroll_ext_text() {
return enroll_ext_text;
}
} }
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