Commit 8fb85982 authored by Quxl's avatar Quxl

x

parent 747df373
...@@ -143,8 +143,10 @@ public class UserReviewController { ...@@ -143,8 +143,10 @@ public class UserReviewController {
@ApiImplicitParam(paramType = "query", dataType = "string", required = false, name = "review_text_4", value="评语4"), @ApiImplicitParam(paramType = "query", dataType = "string", required = false, name = "review_text_4", value="评语4"),
@ApiImplicitParam(paramType = "query", dataType = "string", required = false, allowMultiple=true, name = "ext_title", 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="奖项得分"), @ApiImplicitParam(paramType = "query", dataType = "double", required = false, allowMultiple=true, name = "ext_score", value="奖项得分"),
@ApiImplicitParam(paramType = "query", dataType = "string", required = false, allowMultiple=true, name = "ext_type", value="获奖类型"),
@ApiImplicitParam(paramType = "query", dataType = "string", required = false, allowMultiple=true, name = "ext_name", value="获奖人名称"),
}) })
public Object saveReviewRecord(Integer review_id, Long view_time, 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) { public Object saveReviewRecord(Integer review_id, Long view_time, 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, String[] ext_type, String[] ext_name, Double[] 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);
...@@ -165,6 +167,8 @@ public class UserReviewController { ...@@ -165,6 +167,8 @@ public class UserReviewController {
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_name(ext_name[i]);
exts.add(ext); exts.add(ext);
} }
} else { } else {
......
...@@ -24,6 +24,12 @@ public class Fc_review_record_ext implements java.io.Serializable { ...@@ -24,6 +24,12 @@ public class Fc_review_record_ext implements java.io.Serializable {
@Column(columnDefinition="double(10,2) COMMENT '奖项评分'") @Column(columnDefinition="double(10,2) COMMENT '奖项评分'")
private Double ext_score; private Double ext_score;
@Column(columnDefinition="varchar(255) COMMENT '演职员类型'")
private String ext_type;
@Column(columnDefinition="varchar(255) COMMENT '演职员名称'")
private String ext_name;
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
...@@ -57,5 +63,21 @@ public class Fc_review_record_ext implements java.io.Serializable { ...@@ -57,5 +63,21 @@ public class Fc_review_record_ext implements java.io.Serializable {
return ext_score; return ext_score;
} }
public void setExt_type(String ext_type) {
this.ext_type = ext_type;
}
public String getExt_type() {
return ext_type;
}
public void setExt_name(String ext_name) {
this.ext_name = ext_name;
}
public String getExt_name() {
return ext_name;
}
} }
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