1 <insert id="insertSelective" parameterType="com.xxx.model.XDetail" useGeneratedKeys="true" keyProperty="id">
主要依靠useGeneratedKeys="true" keyProperty="id"实现
1 <insert id="insertSelective" parameterType="com.xxx.model.XDetail" useGeneratedKeys="true" keyProperty="id">
主要依靠useGeneratedKeys="true" keyProperty="id"实现