sql语句select * from producttg where hospitalcode in (1,2,3) 获取到的数据并不是按照条件1,2,3的顺序排列,如果要成下面形式(mybatis语句) select * from producttg where productno in ${productnolist} order by CHARINDEX(','+ltrim(productno)+',',',${productnostr}') 其中输入为productnolist(Str…