|
@@ -601,40 +601,6 @@
|
|
|
</if>
|
|
|
group by t.subject_code
|
|
|
</select>
|
|
|
- <select id="examRoomScannedPage" resultType="cn.com.qmth.scancentral.vo.examroom.ExamRoomScannedVo">
|
|
|
- select tm.* from(
|
|
|
- select t.subject_code,s.name subjectName,t.campus_code,t.exam_site,t.exam_site_name,t.exam_room,
|
|
|
- sum(case when t.status='SCANNED' then 1 else 0 end) scannedCount
|
|
|
- from sc_student t inner join sc_subject s on t.exam_id=s.exam_id and t.subject_code=s.code
|
|
|
- where t.exam_id=#{req.examId}
|
|
|
- <if test="req.campusCode != null and req.campusCode !=''">
|
|
|
- and t.campus_code=#{req.campusCode}
|
|
|
- </if>
|
|
|
- <if test="req.subjectCode != null and req.subjectCode !=''">
|
|
|
- and t.subject_code=#{req.subjectCode}
|
|
|
- </if>
|
|
|
- <if test="req.examSite != null and req.examSite !=''">
|
|
|
- and t.exam_site=#{req.examSite}
|
|
|
- </if>
|
|
|
- <if test="req.examRoom != null and req.examRoom !=''">
|
|
|
- and t.exam_room=#{req.examRoom}
|
|
|
- </if>
|
|
|
- <if test="req.province != null and req.province !=''">
|
|
|
- and t.province=#{req.province}
|
|
|
- </if>
|
|
|
- group by t.subject_code,t.campus_code,t.exam_site,t.exam_site_name,t.exam_room
|
|
|
- ) tm
|
|
|
- where 1=1
|
|
|
- <if test="req.scanned != null">
|
|
|
- <if test="req.scanned">
|
|
|
- and tm.scannedCount>0
|
|
|
- </if>
|
|
|
- <if test="!req.scanned">
|
|
|
- and tm.scannedCount=0
|
|
|
- </if>
|
|
|
- </if>
|
|
|
- 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,su.name subjectName
|
|
|
from sc_student t
|