@Select("<script>" + "select \n" + "email \n" + "from sys_user\n" + "where id in \n" + " <foreach item='item' index='index' collection='ids' open='(' separator=',' close=')'>" + " #{item}" + " </foreach>" + "</script>" ) List<String> listEmailByIdBatch(@Param("ids") List<String> ids);
标签:List,ids,Param,sys,plus,sql,mybatis,id,Select From: https://blog.51cto.com/u_15862486/6969635