You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.0 KiB
51 lines
1.0 KiB
package com.bupt.note.dto;
|
|
|
|
import com.bupt.note.Model.Rating;
|
|
|
|
public class RatingForm {
|
|
private Integer score1;
|
|
private Integer score2;
|
|
private Integer score3;
|
|
private Long paperId;
|
|
|
|
public Integer getScore1() {
|
|
return score1;
|
|
}
|
|
|
|
public void setScore1(Integer score1) {
|
|
this.score1 = score1;
|
|
}
|
|
|
|
public Integer getScore2() {
|
|
return score2;
|
|
}
|
|
|
|
public void setScore2(Integer score2) {
|
|
this.score2 = score2;
|
|
}
|
|
|
|
public Integer getScore3() {
|
|
return score3;
|
|
}
|
|
|
|
public void setScore3(Integer score3) {
|
|
this.score3 = score3;
|
|
}
|
|
|
|
public Long getPaperId() {
|
|
return paperId;
|
|
}
|
|
|
|
public void setPaperId(Long paperId) {
|
|
this.paperId = paperId;
|
|
}
|
|
|
|
public Rating toRating(){
|
|
Rating rating=new Rating();
|
|
rating.setPaperId(this.paperId);
|
|
rating.setScore1(this.score1);
|
|
rating.setScore2(this.score2);
|
|
rating.setScore3(this.score3);
|
|
return rating;
|
|
}
|
|
}
|
|
|