关于java:mybatis传入对象直接用其对象的属性即可

6次阅读

共计 97 个字符,预计需要花费 1 分钟才能阅读完成。

name 为一个对象的属性

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