<insert id="xxxInsert" parameterClass="map">
<![CDATA[insert into YcYwManagerInfo(userId,twoCodeId) values(#userId#,#twoCodeId#) ]]>
<selectKey resultClass="int" keyProperty="id">
<![CDATA[SELECT @@IDENTITY AS id]]>
</selectKey>
</insert>
mybatis 返回插入成功后的自增ID
最新推荐文章于 2024-09-30 00:37:13 发布