1.当dao层传递多个参数是会报错
org.apache.ibatis.binding.BindingException: Parameter 'productAttributeCategoryId' not found. Available parameters are [arg1, arg0, param1, param2]
翻译如下
org.apache.ibatis.binding.bindingException:找不到参数“productAttributeCategoryID”。可用参数有[arg1、arg0、param1、param2]
所以sql语句改成如下
select * from pms_product_attribute
where product_attribute_category_id=#{arg0}
and type=#{arg1}