mybatis中insert插入之后返回主键useGeneratedKeys="true" keyProperty="id"
useGeneratedKeys="true" keyProperty="id"
<insert id="InsertYyzz" parameterType="java.util.Map" useGeneratedKeys="true" keyProperty="id">
INSERT INTO business_licence
(registerNum_id,companyName,companyType,companyLocation,legalUser,CreateDate,DateLimit,registMoney,picture_url,baidu_result)
VALUES(#{registerNum},#{companyName},#{companyType},#{companyLocation},#{legalUser},#{createDate},#{dateLimit},#{registMoney},#{pictureUrl},#{baidu_result});
</insert>