Doma使用心得
java_陈序猿
工作总结积累
展开
-
指定Doma使用我的update或是insert
在注释后面加上:sqlFile=true 就行了 例子: @Update(sqlFile=true) int updateRoom(TblplaybackroomBo backroomBo);原创 2016-07-05 08:55:35 · 1059 阅读 · 0 评论 -
Doma 参数传入至sql文中 , 模糊查询 和if 判断
参数传入至sql文中 例子:gift_id = /* id */1模糊查询 和if 判断 例子:/*%if roomName != null*/and tb.playback_name like /* @contain(roomName) */'%%' escape '$'/*%end */原创 2016-07-05 08:58:25 · 1832 阅读 · 0 评论 -
mybatis in集合使用和小于大于转义
void changeGroups(@Param("ids") List<Long> groupIds);in<foreach item="tagName" index="index" collection="ids" open="(" separator="," close=")"> #{tagName}</foreach...原创 2017-02-16 11:12:32 · 1412 阅读 · 0 评论