RoleMapper接口增加接口方法
2.单元测试
返回自增主键
1.RoleMapper接口增加接口方法
2.单元测试
返回非自增主键
1.RoleMapper接口增加接口方法
2.单元测试
概述
@Insert...({ "insert into sys_role(id, role_name, enabled, create_by, create_time) values(#{id}, #{roleName}, #...({ "insert into sys_role(role_name, enabled, create_by, create_time) values(#{roleName}, #{enabled},...({ "insert into sys_role(role_name, enabled, create_by, create_time) values(#{roleName}, #{enabled},...#{createBy}, #{createTime, jdbcType=TIMESTAMP})" })
@SelectKey(statement = "SELECT LAST_INSERT_ID