xiatian 8 miesięcy temu
rodzic
commit
f723117692

+ 8 - 0
src/main/java/cn/com/qmth/scancentral/vo/student/StudentPageVo.java

@@ -168,4 +168,12 @@ public class StudentPageVo {
         this.device = device;
     }
 
+    public String getDeviceName() {
+        return deviceName;
+    }
+
+    public void setDeviceName(String deviceName) {
+        this.deviceName = deviceName;
+    }
+
 }

+ 2 - 1
src/main/resources/mapper/StudentMapper.xml

@@ -660,9 +660,10 @@
         order by tm.subject_code,tm.subjectName,tm.campus_code,tm.exam_site,tm.exam_room
     </select>
     <select id="studentPage" resultType="cn.com.qmth.scancentral.vo.student.StudentPageVo">
-        select t.*,ss.device_name
+        select t.*,ss.device_name,su.name subjectName
         from sc_student t
         left join sc_scanner ss on t.device=ss.device
+        left join sc_subject su on t.exam_id=su.exam_id and t.subject_code=su.code
         where t.exam_id=#{req.examId}
         <if test="req.campusCode != null and req.campusCode !=''">
             and t.campus_code=#{req.campusCode}