Parcourir la source

错题 收藏排序

zhangbin il y a 1 an
Parent
commit
5eb08caba6

+ 5 - 1
nbjk-service/src/main/resources/mapper/question/QuestionInfoNewMapper.xml

@@ -169,7 +169,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 #{id}
             </foreach>
         </where>
-        order by number
+        order by FIELD(id,
+        <foreach collection="array" item="id" index="index" open="" close="" separator=",">
+            #{id}
+        </foreach>
+        )
     </select>