Răsfoiți Sursa

考务明细查询适用专业

xiaof 4 ani în urmă
părinte
comite
d77b332d6b

+ 11 - 0
distributed-print-business/src/main/java/com/qmth/distributed/print/business/bean/result/ExaminationDetailResult.java

@@ -28,6 +28,9 @@ public class ExaminationDetailResult {
     @ApiModelProperty(value = "试卷代码")
     private String paperNumber;
 
+    @ApiModelProperty(value = "适用专业")
+    private String specialty;
+
     @ApiModelProperty(value = "考点")
     private String examPlace;
 
@@ -99,6 +102,14 @@ public class ExaminationDetailResult {
         this.paperNumber = paperNumber;
     }
 
+    public String getSpecialty() {
+        return specialty;
+    }
+
+    public void setSpecialty(String specialty) {
+        this.specialty = specialty;
+    }
+
     public String getExamPlace() {
         return examPlace;
     }

+ 5 - 0
distributed-print-business/src/main/resources/mapper/ExamDetailMapper.xml

@@ -171,6 +171,7 @@
                    cou.course_code,
                    ')') AS courseNameCode,
             cou.paper_number AS paperNumber,
+            et.specialty,
             det.print_plan_id AS printPlanId,
             det.print_plan_name AS printPlanName,
             det.exam_start_time AS examStartTime,
@@ -186,6 +187,10 @@
             exam_detail det ON cou.exam_detail_id = det.id
                 AND stu.school_id = det.school_id
                 LEFT JOIN
+            exam_task et on cou.school_id = et.school_id
+                AND cou.course_code = et.course_code
+                AND cou.paper_number = et.paper_number
+                LEFT JOIN
             sys_user b on det.create_id = b.id
         <where>
             <if test="schoolId != null and schoolId > 0">