|
@@ -2,6 +2,8 @@ package com.qmth.teachcloud.report.business.bean.result;
|
|
|
|
|
|
import com.qmth.teachcloud.common.annotation.ExcelProperty;
|
|
import com.qmth.teachcloud.common.annotation.ExcelProperty;
|
|
import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
|
|
+import com.qmth.teachcloud.report.business.enums.SemesterEnum;
|
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
import java.util.Objects;
|
|
import java.util.Objects;
|
|
@@ -13,41 +15,51 @@ public class TeachCollegeResult {
|
|
|
|
|
|
@ExcelProperty(name = "学期", width = 30, index = 1)
|
|
@ExcelProperty(name = "学期", width = 30, index = 1)
|
|
private String semester;
|
|
private String semester;
|
|
|
|
+
|
|
@ExcelProperty(name = "考试名称", width = 30, index = 2)
|
|
@ExcelProperty(name = "考试名称", width = 30, index = 2)
|
|
private String examName;
|
|
private String examName;
|
|
- @ExcelProperty(name = "课程代码", width = 30, index = 3)
|
|
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty(value = "科目编码")
|
|
private String courseCode;
|
|
private String courseCode;
|
|
- @ExcelProperty(name = "课程名称", width = 30, index = 4)
|
|
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty(value = "科目名称")
|
|
private String courseName;
|
|
private String courseName;
|
|
- @ExcelProperty(name = "准考证号", width = 30, index = 5)
|
|
|
|
|
|
+ @ExcelProperty(name = "课程(代码)", width = 40, index = 3)
|
|
|
|
+ private String courseNameCode;
|
|
|
|
+
|
|
|
|
+ @ExcelProperty(name = "准考证号", width = 30, index = 4)
|
|
private String ticketNumber;
|
|
private String ticketNumber;
|
|
- @ExcelProperty(name = "学号", width = 30, index = 6)
|
|
|
|
|
|
+ @ExcelProperty(name = "学号", width = 30, index = 5)
|
|
private String studentCode;
|
|
private String studentCode;
|
|
- @ExcelProperty(name = "姓名", width = 30, index = 7)
|
|
|
|
|
|
+ @ExcelProperty(name = "姓名", width = 30, index = 6)
|
|
private String name;
|
|
private String name;
|
|
private Boolean current;
|
|
private Boolean current;
|
|
- @ExcelProperty(name = "考试类型", width = 30, index = 8)
|
|
|
|
|
|
+ @ExcelProperty(name = "考试类型", width = 30, index = 7)
|
|
private String currentStr;
|
|
private String currentStr;
|
|
- @ExcelProperty(name = "客观总分", width = 30, index = 9)
|
|
|
|
|
|
+ @ExcelProperty(name = "客观总分", width = 30, index = 8)
|
|
private BigDecimal objectiveScore;
|
|
private BigDecimal objectiveScore;
|
|
- @ExcelProperty(name = "主观总分", width = 30, index = 10)
|
|
|
|
|
|
+ @ExcelProperty(name = "主观总分", width = 30, index = 9)
|
|
private BigDecimal subjectiveScore;
|
|
private BigDecimal subjectiveScore;
|
|
- @ExcelProperty(name = "卷面总分", width = 30, index = 11)
|
|
|
|
|
|
+ @ExcelProperty(name = "卷面总分", width = 30, index = 10)
|
|
private BigDecimal totalScore;
|
|
private BigDecimal totalScore;
|
|
- @ExcelProperty(name = "赋分总分", width = 30, index = 12)
|
|
|
|
|
|
+ @ExcelProperty(name = "赋分总分", width = 30, index = 11)
|
|
private BigDecimal assignedScore;
|
|
private BigDecimal assignedScore;
|
|
private String clazzCode;
|
|
private String clazzCode;
|
|
- @ExcelProperty(name = "班级", width = 30, index = 13)
|
|
|
|
|
|
+ @ExcelProperty(name = "班级", width = 30, index = 12)
|
|
private String clazzName;
|
|
private String clazzName;
|
|
- @ExcelProperty(name = "开课学院", width = 30, index = 14)
|
|
|
|
|
|
+ @ExcelProperty(name = "开课学院", width = 30, index = 13)
|
|
private String teachCollegeName;
|
|
private String teachCollegeName;
|
|
- @ExcelProperty(name = "考查学院", width = 30, index = 15)
|
|
|
|
|
|
+ @ExcelProperty(name = "考查学院", width = 30, index = 14)
|
|
private String inspectCollegeName;
|
|
private String inspectCollegeName;
|
|
- @ExcelProperty(name = "任课老师", width = 30, index = 16)
|
|
|
|
|
|
+ @ExcelProperty(name = "任课老师", width = 30, index = 15)
|
|
private String teacherName;
|
|
private String teacherName;
|
|
|
|
|
|
public String getSemester() {
|
|
public String getSemester() {
|
|
- return semester;
|
|
|
|
|
|
+ if (Objects.nonNull(semester)) {
|
|
|
|
+ return SemesterEnum.valueOf(semester).getTitle();
|
|
|
|
+ } else {
|
|
|
|
+ return semester;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
public void setSemester(String semester) {
|
|
public void setSemester(String semester) {
|
|
@@ -70,6 +82,18 @@ public class TeachCollegeResult {
|
|
this.courseCode = courseCode;
|
|
this.courseCode = courseCode;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public String getCourseNameCode() {
|
|
|
|
+ if (Objects.nonNull(courseCode) && Objects.nonNull(courseName)) {
|
|
|
|
+ return courseName + "(" + courseCode + ")";
|
|
|
|
+ } else {
|
|
|
|
+ return courseNameCode;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setCourseNameCode(String courseNameCode) {
|
|
|
|
+ this.courseNameCode = courseNameCode;
|
|
|
|
+ }
|
|
|
|
+
|
|
public String getCourseName() {
|
|
public String getCourseName() {
|
|
return courseName;
|
|
return courseName;
|
|
}
|
|
}
|