xml文件中field()函数使用错误导致报错
//错误
order by FIELD(c.id,
<foreach collection="ids" item="id" open="(" close=")" separator=",">
#{id}
//正确
order by FIELD(c.id,
<foreach collection="ids" item="id" separator=",">
#{id}