|
@@ -1,10 +1,13 @@
|
|
|
package com.qmth.teachcloud.report.business.bean.result;
|
|
|
|
|
|
+import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
|
+import com.qmth.teachcloud.report.business.enums.SemesterEnum;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
|
import java.util.List;
|
|
|
+import java.util.Objects;
|
|
|
|
|
|
/**
|
|
|
* @Date: 2021/6/9.
|
|
@@ -26,6 +29,9 @@ public class ExamInfo {
|
|
|
@ApiModelProperty(value = "课程信息")
|
|
|
private List<CourseInfo> courseInfo;
|
|
|
|
|
|
+ @ApiModelProperty(value = "学期(title)")
|
|
|
+ private String semester;
|
|
|
+
|
|
|
public Long getExamId() {
|
|
|
return examId;
|
|
|
}
|
|
@@ -65,4 +71,16 @@ public class ExamInfo {
|
|
|
public void setCourseInfo(List<CourseInfo> courseInfo) {
|
|
|
this.courseInfo = courseInfo;
|
|
|
}
|
|
|
+
|
|
|
+ public String getSemester() {
|
|
|
+ if (Objects.nonNull(semester)) {
|
|
|
+ return SemesterEnum.valueOf(semester).getTitle();
|
|
|
+ } else {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSemester(String semester) {
|
|
|
+ this.semester = semester;
|
|
|
+ }
|
|
|
}
|