81,092
社区成员
发帖
与我相关
我的任务
分享
<insert id="insertUser" useGeneratedKeys="true" keyProperty="userId" parameterType="com.domain.User">
insert into user(userName,password)
values(#{userName},#{password})
</insert>
userDao.insertUser(user);//插入操作
//插入B表逻辑,其中id为user.getUserId();