wangliang 4 gadi atpakaļ
vecāks
revīzija
9ea70e2ee6

+ 22 - 0
teachcloud-report-business/src/main/java/com/qmth/teachcloud/report/business/bean/result/TAExamCourseCollegeInspectResult.java

@@ -25,6 +25,28 @@ public class TAExamCourseCollegeInspectResult extends TAExamCourseCollegeInspect
     @ApiModelProperty(value = "学院名称")
     private String collegeName;
 
+    @ApiModelProperty(value = "考试时间")
+    private String examTime;
+
+    @ApiModelProperty(value = "考试名称")
+    private String examName;
+
+    public String getExamTime() {
+        return examTime;
+    }
+
+    public void setExamTime(String examTime) {
+        this.examTime = examTime;
+    }
+
+    public String getExamName() {
+        return examName;
+    }
+
+    public void setExamName(String examName) {
+        this.examName = examName;
+    }
+
     @Override
     public Long getCollegeId() {
         return collegeId;

+ 5 - 1
teachcloud-report-business/src/main/resources/mapper/TAExamCourseCollegeInspectMapper.xml

@@ -47,9 +47,13 @@
             round(convert(current_median,decimal(10,4)),2) AS median,
             round(convert(current_lower_quartile,decimal(10,4)),2) AS lowerQuartile,
             current_mode,
-            round(convert(current_standard_deviation,decimal(10,4)),2) AS standardDeviation
+            round(convert(current_standard_deviation,decimal(10,4)),2) AS standardDeviation,
+            tbe.exam_time as examTime,
+            tbe.exam_name as examName
         FROM
             t_a_exam_course taec
+            join t_b_exam tbe
+            on tbe.id = taec.exam_id
         <where>
             <if test="courseCode != null and courseCode != ''">
                 and taec.course_code = #{courseCode}