<insert id="insertMerchant" parameterType="Merchant" useGeneratedKeys="true" keyProperty="id">
- <insert id="insertAndGetId" useGeneratedKeys="true" keyProperty="userId" parameterType="com.xf.mybatis.User">
- insert into user(userName,password,comment)
- values(#{userName},#{password},#{comment})
- </insert>