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 · 4299 阅读 · 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")StringdetailIds) throws Excepti原创 2016-10-27 20:12:52 · 7015 阅读 · 0 评论