关于Mybatis的select 查询时 传递多个参数的4种方式

下面给你们总结了如下几种多参数传递的方法。java 方法1:顺序传参法 public User selectUser(String name, int deptId); <select id="selectUser" resultMap="UserResultMap"> select * from user where user_name = #{0} and dept_id =
相关文章
相关标签/搜索