@ -290,7 +290,7 @@ public class PaperManager {
//回答列表
QueryWrapper<ElQuAnswer> wrapper = new QueryWrapper<>();
wrapper.lambda().eq(ElQuAnswer::getQuId, item.getQuId());
wrapper.last(" ORDER BY RAND() ");
wrapper.last(" ORDER BY RANDOM() ");
List<ElQuAnswer> answerList = quAnswerService.list(wrapper);
if (CollUtil.isNotEmpty(answerList)) {
int ii = 0;
@ -51,7 +51,7 @@
AND a.id NOT IN
<foreach item="item" collection="excludes" separator="," open="(" close=")" index="">'${item}'</foreach>
</if>
ORDER BY RAND()
ORDER BY RANDOM()
LIMIT ${size}
</select>