|
@@ -5,6 +5,8 @@ import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
import java.util.Date;
|
|
|
+import java.util.Objects;
|
|
|
+import java.util.Optional;
|
|
|
|
|
|
/**
|
|
|
* @Author: cy
|
|
@@ -65,6 +67,9 @@ public class CourseStudent implements Serializable {
|
|
|
@ApiModelProperty(value = "老师评价 0:未评价 1:已评价")
|
|
|
private Integer teacherReplied;
|
|
|
|
|
|
+ @ApiModelProperty(value = "课程名称")
|
|
|
+ private String courseName;
|
|
|
+
|
|
|
public Integer getStudentReplied() {
|
|
|
return studentReplied;
|
|
|
}
|
|
@@ -154,7 +159,8 @@ public class CourseStudent implements Serializable {
|
|
|
}
|
|
|
|
|
|
public String getName() {
|
|
|
- return name;
|
|
|
+
|
|
|
+ return Optional.ofNullable(name).orElse(getCourseName());
|
|
|
}
|
|
|
|
|
|
public void setName(String name) {
|
|
@@ -208,5 +214,13 @@ public class CourseStudent implements Serializable {
|
|
|
public void setImGroupId(String imGroupId) {
|
|
|
this.imGroupId = imGroupId;
|
|
|
}
|
|
|
+
|
|
|
+ public String getCourseName() {
|
|
|
+ return courseName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCourseName(String courseName) {
|
|
|
+ this.courseName = courseName;
|
|
|
+ }
|
|
|
}
|
|
|
|