瀏覽代碼

3.2.1-修复bug

xiaof 2 年之前
父節點
當前提交
d687fc01a8

+ 2 - 2
distributed-print-business/src/main/resources/mapper/ExamStudentMapper.xml

@@ -101,14 +101,14 @@
                 and es.school_id = #{schoolId}
             </if>
             <if test="examDetailCourseIds != null and examDetailCourseIds != '' and examDetailCourseIds.size > 0">
-                AND edc.id IN
+                AND es.exam_detail_course_id IN
                 <foreach collection="examDetailCourseIds" item="examDetailCourseId" index="index" open="(" separator=","
                          close=")">
                     #{examDetailCourseId}
                 </foreach>
             </if>
         </where>
-        order by edc.course_code, 0+ cast(es.site_number as char)
+        order by edc.course_code, 0+ cast(es.site_number as char), es.ticket_number
     </select>
     <select id="listStudentByPrintPlanIdAndSyncStatus"
             resultType="com.qmth.distributed.print.business.bean.dto.SyncExamStudentDto">

+ 1 - 1
distributed-print-business/src/main/resources/mapper/ExamTaskMapper.xml

@@ -581,7 +581,7 @@
                 </foreach>
             </if>
         </where>
-        order by a.create_time desc
+        order by a.create_time desc, a.paper_number desc
     </select>
     <select id="listPaperNumbers" resultType="com.qmth.distributed.print.business.bean.dto.RelatePaperDto">
         SELECT