Open Ambition9186 opened 11 months ago
想要排序时根据一组值置顶: SELECT * FROM user ORDER BY CASE WHEN id IN (13349, 13348, 13347,13346,13345,13344,13343,13342,13341) THEN 0 ELSE 1 END,id;
可以自己实现
这个并不能返回Dao
想要排序时根据一组值置顶: SELECT * FROM user ORDER BY CASE WHEN id IN (13349, 13348, 13347,13346,13345,13344,13343,13342,13341) THEN 0 ELSE 1 END,id;