插入成功后返回自增主键
<insert id="insertRole" parameterType="role" useGeneratedKeys="true" keyProperty="id">
insert into t_role(role_name,note) values (#{roleName},#{note})
</insert>
https://www.cnblogs.com/admol/articles/4248159.html
https://www.cnblogs.com/java-zhao/p/5594795.html