
Mybatis
javashareauthor
分享让知识变得更加得有价值
展开
-
Mabatis的foreach标签使用
在批量执行插入操作的时候,一般使用Mabatis自带的foreach遍历集合从而插入数据。1、第一种方式<insert id="batchInsert" parameterType="com.vcredit.miaofen.service.kvop.model.JdKvopMsg" useGeneratedKeys="true"> insert into t_jd_kvo...原创 2018-08-09 17:36:35 · 1074 阅读 · 0 评论 -
mybatis中_parameter使用和常用sql
在用自动生成工具生成的mybatis代码中,总是能看到这样的情况,如下:<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.juhehl.kapu.pojo.TbCardExample" > select <if test="distinct" > ...转载 2019-06-20 16:10:51 · 3002 阅读 · 0 评论