mySql传过来的一List<Id>进行匹配和排序

select * from user a  where a.is_del=0 and  a.id in

 
 
 

select * from user a  where a.is_del=0 and  a.id in(1,2,3)order by field(a.id,3,2,1)

猜你喜欢

转载自blog.csdn.net/LoveEate/article/details/82216260