Mybatis杂项
Mybatis杂项
Squirrel_Red
耐得住寂寞,守得住繁华。如此,甚好!
展开
-
mybatis中使用in查询时的注意事项
1. 当查询的参数只有一个时 findByIds(List<Long> ids) 1.a 如果参数的类型是List, 则在使用时,collection属性要必须指定为 list 复制代码 <select id="findByIdsMap" resultMap="BaseResultMap"> Select <inclu...原创 2019-04-13 11:10:18 · 182 阅读 · 0 评论 -
mybatis报错:
void updateFndContainerItems(List<Long> list); <update id="updateFndContainerItems"> update fnd_container_item set delete_flag = 1 where id in <foreach item="item" index=...原创 2019-04-13 08:50:09 · 231 阅读 · 0 评论