代码改变世界

Mybatis的批量CRUD

2016-03-17 11:53  VinpleZhang  阅读(280)  评论(0编辑  收藏  举报

CRUD与批量CRUD

分页前后缀(方言 Mysql与Oracle情况下不一样)

 

 

批量插入数据  http://chenzhou123520.iteye.com/blog/1583407/

亟待完善

 

批量删除

<update id="batchDeleteBlackWhiteRecordDefByRecordId"
parameterType="map">
delete from ht_black_white_record_def where record_id in
<foreach item="item" index="index" collection="Ids" open="("
separator="," close=")">
#{item}
</foreach>
</update>

 

批量修改同上