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