mybatis 批量插入list集合 Parameter 'interacId' not found. Available parameters are [list, collection]报错

关键点在标注的位置:  参数类型 

collection为list   list并不是你传入的参数的变量名,我传入的变量名为lists 直接写成  list即可;

不要使用那个原生的 if(“test= xxx!=null and xxx!=''”);写成最简约的。

猜你喜欢

转载自blog.csdn.net/weixin_37020977/article/details/84106917
今日推荐