mybatis传入对象直接用其对象的属性即可
文章目录
name为一个对象的属性
<select id="queryIdByName" resultType="int">
select id from role where name = #{name};
</select>name为一个对象的属性
<select id="queryIdByName" resultType="int">
select id from role where name = #{name};
</select>
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论