Mybatis使用问题汇总-采坑和实践
xlecho编辑整理,欢迎转载,转载请声明文章来源。欢迎添加echo微信交流学习。 百战不败,依不自称常胜,百败不颓,依能奋力前行。——这才是真正的堪称强大!! JDK1.8分组问题产生的SQL需求 需求一 传入的值数据结构为:List(Map) Dao层的代码: List<RecordPo> selectConditionRecord(List<Map<String, String>> list); xml层代码: <select id="selectConditionRecord" resultMap="BaseResultMap" parameterType="java.util.List"> <foreach collection="list" item="item" index="index" separator=";"> select * from RECORD <where> <if test="item.code != null and item.code != ''"> code = ...