只需在插入语句上配置:
useGeneratedKeys="true"
keyProperty ="id"
<insert id="insertSelectiveMemberAcc" useGeneratedKeys="true" keyProperty="id" parameterType="com.member.domain.MemberAccInfo"> insert into MEMBER_ACC_INFO </insert >
时间: 2024-12-16 03:12:13
只需在插入语句上配置:
useGeneratedKeys="true"
keyProperty ="id"
<insert id="insertSelectiveMemberAcc" useGeneratedKeys="true" keyProperty="id" parameterType="com.member.domain.MemberAccInfo"> insert into MEMBER_ACC_INFO </insert >