小么熊🐻 преди 3 години
родител
ревизия
35a78f12d7
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      twzd-service/src/main/resources/mapper/qustion/QuestionInfoMapper.xml

+ 1 - 1
twzd-service/src/main/resources/mapper/qustion/QuestionInfoMapper.xml

@@ -88,7 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         </where>
 
         <if test="isRand!=null and isRand!=''"> order by rand() </if>
-        <if test="isRand==null or isRand=='' and  sort!=null and sort!='' "> order by IFNULL(${sort},'a') </if>
+        <if test="isRand==null or isRand=='' and  sort!=null and sort!='' "> order by IFNULL(${sort},10000) </if>
     </select>