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()
posted @ 2020-03-02 17:59  介寒食  阅读(1485)  评论(0编辑  收藏  举报