在xml文件中的insertSelective添加 useGeneratedKeys="true" keyProperty="id"
authGroupMapper.insertSelective(authGroup);
Integer recordId=authGroup.getId();/获取主键id
复制代码
转载于:https://juejin.im/post/5c3991946fb9a049be5db60b
在xml文件中的insertSelective添加 useGeneratedKeys="true" keyProperty="id"
authGroupMapper.insertSelective(authGroup);
Integer recordId=authGroup.getId();/获取主键id
复制代码
转载于:https://juejin.im/post/5c3991946fb9a049be5db60b