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