소스 검색

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

mingfu 1 주 전
부모
커밋
a99319f8eb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ie-system/src/main/resources/mapper/dz/DzSubjectMapper.xml

+ 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">