版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lm9521/article/details/86575574
方法一:
添加 @Param 注解
dao层接口:
List<SysMenu> queryListParentIdAndMenuType(@Param(value = "parentId") Long parentId,@Param(value = "menuType") Integer menuType);
方法二:
mapper.xml 文件 参数 用 0 1 ... 依次 代替
select * from sys_menu where parent_id = #{0} and menu_type = #{1} order by order_num asc
如果有别的方法欢迎大家提出来评论,一起交流学习 。谢谢