mybatis in 查询 限制in的数量


    List<Testcl> test(List<String> list);
<select id="test" resultMap="Model"> select * from t_test where n_yx = 1 and c_id in <foreach collection="list" item="id" index="index" open="(" close=")" separator=","> #{id} </foreach> order by d_create </select>

 对集合分组

Lists.partition()


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM