Commit b21f5b4d authored by 刘鑫鹏's avatar 刘鑫鹏

新增最大分数限制字段

parent 72a2988d
......@@ -37,10 +37,14 @@ public class FormGroup {
*/
private int relevance;
/**
* 必填 0-必填 1-选填
*/
private int maxPoint;
public FormGroup() {
}
public FormGroup(int groupId, String groupTitle, int qnYear, int groupType, String questionId, int questionnaireId, int relevance) {
public FormGroup(int groupId, String groupTitle, int qnYear, int groupType, String questionId, int questionnaireId, int relevance,int maxPoint) {
this.groupId = groupId;
this.groupTitle = groupTitle;
this.qnYear = qnYear;
......@@ -48,6 +52,17 @@ public class FormGroup {
this.questionId = questionId;
this.questionnaireId = questionnaireId;
this.relevance = relevance;
this.maxPoint = maxPoint;
}
public int getMaxPoint() {
return maxPoint;
}
public void setMaxPoint(int maxPoint) {
this.maxPoint = maxPoint;
}
public int getGroupId() {
......
......@@ -43,6 +43,8 @@ public class FormOptionByGroup {
*/
private int relevance;
private int maxPoint;
/**
* 组下问题列表
*/
......@@ -51,7 +53,7 @@ public class FormOptionByGroup {
public FormOptionByGroup() {
}
public FormOptionByGroup(int groupId, String groupTitle, int qnYear, int groupType, String questionId, int questionnaireId, int relevance, List<FormOptionsDto> formOptions) {
public FormOptionByGroup(int groupId, String groupTitle, int qnYear, int groupType, String questionId, int questionnaireId, int relevance,int maxPoint, List<FormOptionsDto> formOptions) {
this.groupId = groupId;
this.groupTitle = groupTitle;
this.qnYear = qnYear;
......@@ -59,9 +61,18 @@ public class FormOptionByGroup {
this.questionId = questionId;
this.questionnaireId = questionnaireId;
this.relevance = relevance;
this.maxPoint=maxPoint;
this.formOptions = formOptions;
}
public int getMaxPoint() {
return maxPoint;
}
public void setMaxPoint(int maxPoint) {
this.maxPoint = maxPoint;
}
public int getGroupId() {
return groupId;
}
......
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