Pārlūkot izejas kodu

科目sort相同的按id稳定顺序

mingfu 1 nedēļu atpakaļ
vecāks
revīzija
a99319f8eb

+ 1 - 1
ie-system/src/main/resources/mapper/dz/DzSubjectMapper.xml

@@ -37,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="locations != null  and locations != ''"> and locations = #{locations}</if>
             <if test="examTypes != null  and examTypes != ''"> and exam_types  like concat('%', #{examTypes}, '%') </if>
         </where>
-        order by `sort`
+        order by `sort`, subject_id
     </select>
 
     <select id="selectDzSubjectBySubjectId" parameterType="Long" resultMap="DzSubjectResult">