List list-Arrays.asList(11,3,4);

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/bestxianfeng163/article/details/85233331

这个快速增加list数据

<select id="findByStudentIds" resultMap="resultMap">  
    select <include refid="columnsName"/> from t_student where student_id in (  
     <foreach collection="list" item="item" separator=",">  
        #{item}  
     </foreach>  
    )   
  </select>  

猜你喜欢

转载自blog.csdn.net/bestxianfeng163/article/details/85233331
今日推荐