解决方案:
1、List<Orders> selectKeyList( List<Integer> ordersList);
在dao层添加注解@Param
2、
<foreach collection="ordersList" item="item" open="and id in(" separator="," close=")" >
#{item}
</foreach>
collection=”ordersList”应该改为collection=”list” 这样就能将错误改正
参考文章:
解决Parameter 'xxxList' not found. Available parameters are [Collection,list]