Commit 464820bf authored by Quxl's avatar Quxl

x

parent 4ffdba2d
......@@ -127,11 +127,10 @@ public class UserReviewController {
@ApiImplicitParam(paramType = "query", dataType = "string", required = false, name = "review_text_2", value="评语2"),
@ApiImplicitParam(paramType = "query", dataType = "string", required = false, name = "review_text_3", value="评语3"),
@ApiImplicitParam(paramType = "query", dataType = "string", required = false, name = "review_text_4", value="评语4"),
@ApiImplicitParam(paramType = "query", dataType = "int", required = false, allowMultiple=true, name = "playatcor_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 = "string", required = false, allowMultiple=true, name = "ext_title", value="获奖标题 例如: 最佳男演员-张三"),
@ApiImplicitParam(paramType = "query", dataType = "double", required = false, allowMultiple=true, name = "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[] playatcor_id, Integer[] enroll_ext_id, Double[]enroll_ext_score) {
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, String[] ext_title, Double[] ext_score) {
LoginToken token = tokenService.getToken();
Integer user_id = (Integer)token.getId();
Fc_review_record ru = service.queryReviewRecord(user_id, review_id);
......@@ -143,13 +142,12 @@ public class UserReviewController {
ru.setReview_text_3(review_text_3);
ru.setReview_text_4(review_text_4);
List<Fc_review_record_ext> exts = new ArrayList<Fc_review_record_ext>();
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++) {
if(ext_title != null && ext_score != null && ext_title.length == ext_score.length) {
for(int i = 0; i < ext_title.length; i++) {
Fc_review_record_ext ext = new Fc_review_record_ext();
ext.setRecord_id(ru.getId());
ext.setEnroll_ext_id(enroll_ext_id[i]);
ext.setEnroll_ext_score(enroll_ext_score[i]);
ext.setPlayactor_id(playatcor_id[i]);
ext.setExt_title(ext_title[i]);
ext.setExt_score(ext_score[i]);
exts.add(ext);
}
} else {
......
......@@ -24,19 +24,14 @@ public class Fc_review_record_ext implements java.io.Serializable {
private Integer record_id;
/**
* 得奖人ID
* 获奖标题 例如: 最佳男演员-张三
*/
private Integer playactor_id;
private String ext_title;
/**
* 影片申报奖项ID
* 奖项评分
*/
private Integer enroll_ext_id;
/**
* 影片申报奖项评分
*/
private Double enroll_ext_score;
private Double ext_score;
/**
......@@ -50,16 +45,14 @@ public class Fc_review_record_ext implements java.io.Serializable {
* 全参数构造方法
* @param id 影片ID
* @param record_id 评委评审记录ID
* @param playactor_id 得奖人ID
* @param enroll_ext_id 影片申报奖项ID
* @param enroll_ext_score 影片申报奖项评分
* @param ext_title 获奖标题 例如: 最佳男演员-张三
* @param ext_score 奖项评分
*/
public Fc_review_record_ext(Integer id, Integer record_id, Integer playactor_id, Integer enroll_ext_id, Double enroll_ext_score) {
public Fc_review_record_ext(Integer id, Integer record_id, String ext_title, Double ext_score) {
this.id = id;
this.record_id = record_id;
this.playactor_id = playactor_id;
this.enroll_ext_id = enroll_ext_id;
this.enroll_ext_score = enroll_ext_score;
this.ext_title = ext_title;
this.ext_score = ext_score;
}
public void setId(Integer id) {
......@@ -78,28 +71,20 @@ public class Fc_review_record_ext implements java.io.Serializable {
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) {
this.enroll_ext_id = enroll_ext_id;
public void setExt_title(String ext_title) {
this.ext_title = ext_title;
}
public Integer getEnroll_ext_id() {
return enroll_ext_id;
public String getExt_title() {
return ext_title;
}
public void setEnroll_ext_score(Double enroll_ext_score) {
this.enroll_ext_score = enroll_ext_score;
public void setExt_score(Double ext_score) {
this.ext_score = ext_score;
}
public Double getEnroll_ext_score() {
return enroll_ext_score;
public Double getExt_score() {
return ext_score;
}
}
......
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