mysql+mybatis参数为一个集合或数组一个为其它类型Mybatis取值失败
dao层接口为:
List<Menu> listMenueByIdAndLevel(@Param("ids") List<Integer> ids,@Param("level") Integer level);
//Mapper.xml中collection="ids"有时会失效
//解决办法
ServiceImpl业务层
//将参数封装
Map params...
原创
2018-09-28 14:02:47 ·
544 阅读 ·
0 评论