标签:
<!-- 账户创建 -->
<insert id="create" parameterType="Account">
<selectKey keyProperty="id" order="AFTER" resultType="int">
select last_insert_id()
</selectKey>
<insert id="insert" parameterType="com.xk.cbs.ebms.department.po.dto.Department" useGeneratedKeys="true" keyProperty="id">
mybaties中的selectKey和useGeneratedKeys=true
标签:
原文地址:http://www.cnblogs.com/Eddyer/p/5783462.html