mybatis传入对象直接用其对象的属性即可

name为一个对象的属性

<select id="queryIdByName" resultType="int">
    select id  from role where name = #{name};
</select>

评论

暂无评论