大意冷风

文章
5
资源
0
加入时间
3年2月2天

Mybatis遍历查询 ——foreach

第一步:  在xxxMapper接口中添加一个函数,返回一个list,这里的参数是一个integer类型的集合public List<Emp> findEmpByList(@Param("list") List<Integer> list);第二步:  在xxxMapper.xml 中添加statement语句(SQL语句)。 如SQL语句:s...