mybatis
danchejikafo
这个作者很懒,什么都没留下…
展开
-
insert新建对象后,返回主键值
举例子: @Insert("insert into p_exchange_prop_log (userid,from_propid,to_propid,type,`describe`,`status`," + "exchange_time,real_user_name,real_moblie_phone,real_shipping_address,match_id)" + "values(#原创 2016-03-23 16:48:39 · 4251 阅读 · 0 评论 -
mybatis注解方式写 in语句
/** * @param detailIds'1,2,3' */ @Update("update web_1rmb_snatch_detail set status = 2 where id in (${detailIds})") public void setStatus(@Param("detailIds")String detailIds) throws Excepti原创 2016-10-27 20:12:52 · 6976 阅读 · 0 评论